From freedesktop-dbus Tue Nov 06 20:06:42 2007 From: Havoc Pennington Date: Tue, 06 Nov 2007 20:06:42 +0000 To: freedesktop-dbus Subject: Re: how to connect to your own message bus Message-Id: <4730C952.1000104 () redhat ! com> X-MARC-Message: https://marc.info/?l=freedesktop-dbus&m=119437961631623 Hi, Wang Jun wrote: > 1, is it possible to have a separate message bus that is only > used by the few modules.(other than SYSTEM_BUS, SESSION_BUS) Yes, by creating a different config file. Look at session.conf, system.conf for examples, and the man page for dbus-daemon. > 2. how to start a message bus of your own and specify connection > in an application. > DBusConnection * dbus_connection_open (const char *address, DBusError > *error) > any sample about the address parameter. If you make it work like the system bus, you would specify a socket filename in the config file, so your address would use that. If you make it work like the session bus, you would have the bus generate an address on startup, which means you need to have the bus print out the address and then you have to set it in an environment variable or otherwise communicate it to your app. Havoc _______________________________________________ dbus mailing list dbus@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dbus