Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
11170:0e9e2b923d09 | 11171:ebb02ea3c789 |
---|---|
11 #include "dbus-server.h" | 11 #include "dbus-server.h" |
12 | 12 |
13 /* this provides a type check */ | 13 /* this provides a type check */ |
14 #define GAIM_DBUS_REGISTER_POINTER(ptr, type) { \ | 14 #define GAIM_DBUS_REGISTER_POINTER(ptr, type) { \ |
15 type *typed_ptr = ptr; \ | 15 type *typed_ptr = ptr; \ |
16 gaim_dbus_register_pointer(typed_ptr, DBUS_POINTER_##type); \ | 16 gaim_dbus_register_pointer(typed_ptr, GAIM_DBUS_TYPE(type)); \ |
17 } | 17 } |
18 #define GAIM_DBUS_UNREGISTER_POINTER(ptr) gaim_dbus_unregister_pointer(ptr) | 18 #define GAIM_DBUS_UNREGISTER_POINTER(ptr) gaim_dbus_unregister_pointer(ptr) |
19 | 19 |
20 #else /* !HAVE_DBUS */ | 20 #else /* !HAVE_DBUS */ |
21 | 21 |
22 #define GAIM_DBUS_REGISTER_POINTER(ptr, type) | 22 #define GAIM_DBUS_REGISTER_POINTER(ptr, type) |
23 #define GAIM_DBUS_UNREGISTER_POINTER(ptr) | 23 #define GAIM_DBUS_UNREGISTER_POINTER(ptr) |
24 #define DBUS_EXPORT | |
24 | 25 |
25 #endif /* HAVE_DBUS */ | 26 #endif /* HAVE_DBUS */ |
26 | 27 |
27 #endif | 28 #endif |