From 0f62b72c8564608f849b3bbe54bf48db07c45015 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Jun 2008 21:21:54 +0000 Subject: Update plugin interface registration --- input/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'input') diff --git a/input/main.c b/input/main.c index 6b5e7c8f..6a667f51 100644 --- a/input/main.c +++ b/input/main.c @@ -79,8 +79,12 @@ static int input_probe(const char *path) { DBG("path %s", path); - return g_dbus_register_interface(conn, path, INPUT_INTERFACE, - input_methods, input_signals, NULL, NULL, NULL); + if (g_dbus_register_interface(conn, path, INPUT_INTERFACE, + input_methods, input_signals, NULL, + NULL, NULL) == FALSE) + return -1; + + return 0; } static void input_remove(const char *path) -- cgit