comparison src/dbus-maybe.h @ 11146:1c5398ccbeb0

[gaim-migrate @ 13217] Gaim-DBUS signal export works with DBUS >= 0.35 Various gaim API functions available through DBUS committer: Tailor Script <tailor@pidgin.im>
author Piotr Zielinski <zielaj>
date Fri, 22 Jul 2005 19:47:29 +0000
parents 2eca9ed49469
children ebb02ea3c789
comparison
equal deleted inserted replaced
11145:dbc518c453f2 11146:1c5398ccbeb0
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)