GDBus API Questions; was: GDBus/GVariant plans for next GLib release



2009/10/15 David Zeuthen <david fubar dk>:
>
> Hey,
> At the GNOME summit this weekend, Ryan Lortie, Matthias Clasen, Will
> Thompson and myself had a hallway conversation about how to get D-Bus
> functionality into the GLib stack. This mail is an attempt at
> summarizing what we talked about.

Thanks for this extensive write up, it is really appreciated!

I read the API docs on

>  http://people.freedesktop.org/~david/gdbus-20091014/

and it generally it looks really good, but I have some questions...

 * Can I register a GDBusInterfaceVTable without registering an
object? The use case I have in mind is something akin to dynamically
spawning objects on the server side when messages are send to objects
under a given path[1]. Fx. when messages are send to
/org/example/item/* I create the item matching * dynamically. Ideally
one would register the vtable for objects matching a regexp. This
would facilitate RESTful message passing on the bus.

* Properties and signals in GDBusProxy are namespaced?

* g_bus_unown_name() only takes the owner_id and not the connection to
unregister on? I see how this can be made to work, but there's
something about it that makes me a bit worried if I own the same bus
name on connections to different buses (this is a theoretical
possibility right?). Probably only an extremely little problem in
practice, but here goes the nitpicker bringing it up anyway ;-)

-- 
Cheers,
Mikkel

[1]: The real use case is spawning application-private logs in
Zeitgeist, but let's not get into the details about that :-)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]