dbus-sysdeps-unix.h

Havoc Pennington hp at redhat.com
Tue Sep 12 08:14:38 PDT 2006


Havoc Pennington wrote:
> 
> I think just putting the definition of the struct in the -unix.c and in 
> -win.c makes sense, and make it the cleanest definition for each 
> platform.

I forgot we'd probably pass the struct by value in the API you proposed 
(which I agree is nicer).

So I guess just put this in the header, but no code should access the fd 
directly. You'll probably need an accessor like:
  _dbus_file_set_invalid(file, bool)
  bool _dbus_file_get_invalid(file)

Which internally would init it to -1

Havoc



More information about the dbus mailing list