From mboxrd@z Thu Jan 1 00:00:00 1970 From: Havoc Pennington Date: Sat, 19 Apr 2003 01:24:58 +0000 Subject: Re: communicating with user login sessions Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Apr 18, 2003 at 05:49:56PM -0700, David Brownell wrote: > From what you say, it seems that someone could whip up a > shell script giving us a hotplug-to-DBus gateway, by using > that "dbus-send" program (not in dbus-0.9?) Yeah it's probably post-0.9; you could grab it from anoncvs though. > Header: > name "org.kernel.hotplug.Kernel.Event" > srvc ... goes to how many listeners? ... broadcast I think. (there will be a way in dbus for clients to indicate which broadcasts they want, so a broadcast doesn't wake up every process on the bus - so message senders typically don't need to worry about who gets the message) > sndr ... whatever kernel authenticates itself as ... sndr is filled in by the bus itself with the connection's base service name, which is an automatically assigned unique ID. > Arguments > uint64 - timestamp I need to add a 64-bit type, haven't done that yet. It's in TODO though and trivial. > string - argv [0] > string - argv [1] Here you probably want to use array of array of byte - using the array type instead of variable number of args means the message can map to a function call or callback, and using array of byte instead of string means it's binary clean (dbus string type is UTF-8). Havoc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel