[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Win32 port
From:       Tor Lillqvist <tml () iki ! fi>
Date:       2006-06-22 15:04:50
Message-ID: 17562.45458.496000.551471 () gargle ! gargle ! HOWL
[Download RAW message or body]

Peter K=FCmmel writes:
 > #ifndef _WIN32
 > typedef unsigned long dbus_pid_t;
 > typedef unsigned long dbus_uid_t;
 > #else
 > typedef const char *dbus_uid_t;
 > typedef const char *dbus_gid_t;
 > #endif

Has anybody come up with any better idea? The idea behind the above,
if I recall correctly, is to use the unique string representation of
SIDs as the gbus_uid and gid type on Win32, and then compare dbus_uids
and gids with strcmp(). Another possibility would obviouosly be to
come up with a way to allocate fresh integers for each different SID
that comes along (and store the mapping somewhere so that different
processes share the mapping, and so that it is persistent). That would
presumably be more complex, though.

--tml


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic