diff options
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index 683b7cb583b..beb1faaf4aa 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -1232,6 +1232,10 @@ usage: (dbus-call-method-asynchronously BUS SERVICE PATH INTERFACE METHOD HANDLE | |||
| 1232 | SDATA (interface), | 1232 | SDATA (interface), |
| 1233 | SDATA (method)); | 1233 | SDATA (method)); |
| 1234 | 1234 | ||
| 1235 | /* Check dbus-registered-objects-table. */ | ||
| 1236 | if (!HASH_TABLE_P (Vdbus_registered_objects_table)) | ||
| 1237 | XD_SIGNAL1 (build_string ("dbus.el is not loaded")); | ||
| 1238 | |||
| 1235 | /* Open a connection to the bus. */ | 1239 | /* Open a connection to the bus. */ |
| 1236 | connection = xd_initialize (bus, TRUE); | 1240 | connection = xd_initialize (bus, TRUE); |
| 1237 | 1241 | ||
| @@ -1869,6 +1873,10 @@ usage: (dbus-register-signal BUS SERVICE PATH INTERFACE SIGNAL HANDLER &rest ARG | |||
| 1869 | wrong_type_argument (intern ("functionp"), handler); | 1873 | wrong_type_argument (intern ("functionp"), handler); |
| 1870 | GCPRO6 (bus, service, path, interface, signal, handler); | 1874 | GCPRO6 (bus, service, path, interface, signal, handler); |
| 1871 | 1875 | ||
| 1876 | /* Check dbus-registered-objects-table. */ | ||
| 1877 | if (!HASH_TABLE_P (Vdbus_registered_objects_table)) | ||
| 1878 | XD_SIGNAL1 (build_string ("dbus.el is not loaded")); | ||
| 1879 | |||
| 1872 | /* Retrieve unique name of service. If service is a known name, we | 1880 | /* Retrieve unique name of service. If service is a known name, we |
| 1873 | will register for the corresponding unique name, if any. Signals | 1881 | will register for the corresponding unique name, if any. Signals |
| 1874 | are sent always with the unique name as sender. Note: the unique | 1882 | are sent always with the unique name as sender. Note: the unique |
| @@ -1981,6 +1989,10 @@ used for composing the returning D-Bus message. */) | |||
| 1981 | /* TODO: We must check for a valid service name, otherwise there is | 1989 | /* TODO: We must check for a valid service name, otherwise there is |
| 1982 | a segmentation fault. */ | 1990 | a segmentation fault. */ |
| 1983 | 1991 | ||
| 1992 | /* Check dbus-registered-objects-table. */ | ||
| 1993 | if (!HASH_TABLE_P (Vdbus_registered_objects_table)) | ||
| 1994 | XD_SIGNAL1 (build_string ("dbus.el is not loaded")); | ||
| 1995 | |||
| 1984 | /* Open a connection to the bus. */ | 1996 | /* Open a connection to the bus. */ |
| 1985 | connection = xd_initialize (bus, TRUE); | 1997 | connection = xd_initialize (bus, TRUE); |
| 1986 | 1998 | ||