]> git.ipfire.org Git - thirdparty/dbus.git/commit
DBusConnection: simplify registering object paths code
authorJiří Klimeš <jklimes@redhat.com>
Fri, 1 Jul 2011 11:59:48 +0000 (13:59 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 11 Jul 2011 12:23:23 +0000 (13:23 +0100)
commitea8aabf0be9cbe5bd4dcdf406a620ed6073951fc
tree174abb05d72f8f2103c00adaae69ac3ac7081ae9
parentba9178b153dd78ea3b33c55b8aabb3454622db4b
DBusConnection: simplify registering object paths code

Introduce static generic _dbus_connection_register_object_path()
function to remove duplicate code for registration object paths.
Having *four* almost the same functions is error-prone and hard
to follow as well.

Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38874
dbus/dbus-connection.c