diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2008-06-08 21:21:54 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2008-06-08 21:21:54 +0000 | 
| commit | 0f62b72c8564608f849b3bbe54bf48db07c45015 (patch) | |
| tree | c89510b81cfbea07853d8214de51767117490c5a /input/main.c | |
| parent | 6a87d1b7e5ad1046abfcc2e89cc924b6e1d0db67 (diff) | |
Update plugin interface registration
Diffstat (limited to 'input/main.c')
| -rw-r--r-- | input/main.c | 8 | 
1 files changed, 6 insertions, 2 deletions
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)  | 
