Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/dbus-maybe.h Fri Jul 22 07:11:08 2005 +0000 +++ b/src/dbus-maybe.h Fri Jul 22 19:47:29 2005 +0000 @@ -10,7 +10,11 @@ #include "dbus-server.h" -#define GAIM_DBUS_REGISTER_POINTER(ptr, type) gaim_dbus_register_pointer(ptr, type) +/* this provides a type check */ +#define GAIM_DBUS_REGISTER_POINTER(ptr, type) { \ + type *typed_ptr = ptr; \ + gaim_dbus_register_pointer(typed_ptr, DBUS_POINTER_##type); \ +} #define GAIM_DBUS_UNREGISTER_POINTER(ptr) gaim_dbus_unregister_pointer(ptr) #else /* !HAVE_DBUS */