dbus-sysdeps-unix.h

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


Havoc Pennington wrote:
> Havoc Pennington wrote:
>>
>> I forgot we'd probably pass the struct by value in the API you
>> proposed (which I agree is nicer).
>>
> 
> To be clear, I meant "allow storing the struct by value and using
> equality operator", not "pass by value", i.e. arguments should remain
> DBusFile* as you had.
> 

Are there any tricks to make a member private in C?

The only idea I have is to stress the coder:


#define DBUS_MEMBER_NAME  too_long_name_to_be_convenient

struct DBusFile
{
    unsigned int DBUS_MEMBER_NAME;
};

....

#undef DBUS_MEMBER_NAME


> Havoc
> 
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
> 
> 


-- 
Peter Kümmel


More information about the dbus mailing list