On 11/9/07, Michael Stepanov <[EMAIL PROTECTED]> wrote: > Well if I understand clearly I have to define dbus services for SDL > application and for its maemo wrapper (it's already done for the wrapper). > And then listen in the wrapper events sent from the SDL application. Catch > 'crash' event or similar and run it again. Right?
(sorry about some delay in answering) That's pretty close to it. Are you using / going to use the libdbus, or some bindings such as the GLib or Python ones? Generally, the bindings make things easier; for example with the GLib bindings you could just create a DBusGProxy on the wrapper (see dbus_g_proxy_new_for_name_owner () / dbus_g_proxy_new_for_name () for more information) to represent the SDL application (well, an interface provided by it) and get a nice "destroy" signal when the name owner (i.e. the SDL app) disappears. Other bindings almost certainly have equally convenient ways of doing this, but I'm not familiar with them. With bare libdbus you will have to do more manual work and probably read the corresponding part of the spec (such as NameOwnerChanged signal and related items) with more thought, but it's still quite doable with it as well. _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
