win32 dbus_connection_get_unix_user() problem

Peter Kümmel syntheticpp at gmx.net
Sat Mar 10 02:05:22 PST 2007


Havoc Pennington wrote:
> Hi,
> 
> Peter Kümmel wrote:
>> To provide a platform independent API is not our
>> job, especially because the code isn't understandable,
>> when you are not a full time developer working on dbus.
>> It is the job of the lib creator/designer, so back to
>> the drawing board.
> 
> This is just bogus. We're talking about one function, not "the API", and
>  I'm not even asking you to create a cross-platform API; I'm saying, at
> most, add dbus_connection_get_windows_user() that always fails on unix,
> and then copy all the uses of get_unix_user(), doing the analogous thing
> with the windows sid.

Isn't you suggestion in principle something like this:

void function()
{
  do_unx_func();
  do_win_func();
  do_wce_func();
  do_mac_func();
  do_sym_func();
  do_palm_func();
}

Peter


More information about the dbus mailing list