DBusConnection -> DBusGConnection woes

Ross Burton ross at burtonini.com
Wed Mar 28 11:31:58 PDT 2007


On Wed, 2007-03-28 at 14:25 -0400, Havoc Pennington wrote:
> There's nothing wrong with having a g_connection_from_connection afaik - 
> should not be any problem, as long as it's documented that you have to 
> 'setup with g main' if you created the connection yourself.

IIRC, when a connection is bound to a glib main loop there is some magic
data attached in a slot.  The reverse mapping function could check that
this slot exists and warn/return NULL if it doesn't, so it doesn't work
on arbitrary connections.

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF





More information about the dbus mailing list