getting the user_data associated with an object path

Daniel Reed n at ml.org
Wed Mar 23 12:13:39 PST 2005


On 2005-03-04T12:32-0500, Daniel Reed wrote:
) Assuming I make a call:
) 	dbus_connection_register_object_path(connection, obj->path, &obj_vtable, (void *)obj))
)
) What is the most effective means of getting the user_data obj back given
) obj->path?
 ...
) If there is no great way of doing it now, would it be possible for an API
) call to be added in the next API revision? I have attached a simple patch to
) add an external call dbus_connection_get_object_user_data() to retrieve the
) user_data associated with a given object path.

Are there any better methods, or can this patch be reviewed?

The original patch is archived at:
  http://lists.freedesktop.org/archives/dbus/2005-March/002279.html

Thanks,
-- 
Daniel Reed <n at ml.org>	http://naim-users.org/nmlorg/	http://naim.n.ml.org/
It is so easy to miss pretty trivial solutions to problems deemed
complicated. The goal of a scientist is to find an interesting problem,
and live off it for a while. The goal of an engineer is to evade
interesting problems :) -- Vadim Antonov <avg at kotovnik.com> on NANOG


More information about the dbus mailing list