dbus-sysdeps-unix.h

Peter Kümmel syntheticpp at gmx.net
Tue Sep 12 08:30:06 PDT 2006


Havoc Pennington wrote:
> 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)
> 

What about _dbus_is_valid_file as name?
So we also have a base name with a _file/_socket ending.

> Which internally would init it to -1
> 
> Havoc
> 
> 


-- 
Peter Kümmel


More information about the dbus mailing list