Mercurial > pidgin.yaz
diff src/dbus-maybe.h @ 11171:ebb02ea3c789
[gaim-migrate @ 13272]
Moved DBUS init call from gtkmain.c to core.c
Reimplemented DBUS bindings mechamism to use low-level GLib bindings
as described in my last blog entry. This way plugins can add new DBUS
methods on the fly. Also wrote an example plugin that demonstrate how
to do it.
committer: Tailor Script <tailor@pidgin.im>
author | Piotr Zielinski <zielaj> |
---|---|
date | Sat, 30 Jul 2005 00:23:21 +0000 |
parents | 1c5398ccbeb0 |
children |
line wrap: on
line diff
--- a/src/dbus-maybe.h Fri Jul 29 13:38:00 2005 +0000 +++ b/src/dbus-maybe.h Sat Jul 30 00:23:21 2005 +0000 @@ -13,7 +13,7 @@ /* 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); \ + gaim_dbus_register_pointer(typed_ptr, GAIM_DBUS_TYPE(type)); \ } #define GAIM_DBUS_UNREGISTER_POINTER(ptr) gaim_dbus_unregister_pointer(ptr) @@ -21,6 +21,7 @@ #define GAIM_DBUS_REGISTER_POINTER(ptr, type) #define GAIM_DBUS_UNREGISTER_POINTER(ptr) +#define DBUS_EXPORT #endif /* HAVE_DBUS */