| 8 |
8 |
| 9 #ifdef HAVE_DBUS |
9 #ifdef HAVE_DBUS |
| 10 |
10 |
| 11 #include "dbus-server.h" |
11 #include "dbus-server.h" |
| 12 |
12 |
| 13 #define GAIM_DBUS_REGISTER_POINTER(ptr, type) gaim_dbus_register_pointer(ptr, type) |
13 /* this provides a type check */ |
| |
14 #define GAIM_DBUS_REGISTER_POINTER(ptr, type) { \ |
| |
15 type *typed_ptr = ptr; \ |
| |
16 gaim_dbus_register_pointer(typed_ptr, DBUS_POINTER_##type); \ |
| |
17 } |
| 14 #define GAIM_DBUS_UNREGISTER_POINTER(ptr) gaim_dbus_unregister_pointer(ptr) |
18 #define GAIM_DBUS_UNREGISTER_POINTER(ptr) gaim_dbus_unregister_pointer(ptr) |
| 15 |
19 |
| 16 #else /* !HAVE_DBUS */ |
20 #else /* !HAVE_DBUS */ |
| 17 |
21 |
| 18 #define GAIM_DBUS_REGISTER_POINTER(ptr, type) |
22 #define GAIM_DBUS_REGISTER_POINTER(ptr, type) |