comparison libpurple/dbus-bindings.h @ 32819:2c6510167895 default tip

propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24) to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 02 Jun 2012 02:30:49 +0000
parents 98520ee78f12
children
comparison
equal deleted inserted replaced
32818:01ff09d4a463 32819:2c6510167895
30 30
31 #include <dbus/dbus.h> 31 #include <dbus/dbus.h>
32 #include <dbus/dbus-glib-lowlevel.h> 32 #include <dbus/dbus-glib-lowlevel.h>
33 #include <glib.h> 33 #include <glib.h>
34 34
35 #ifdef __cplusplus 35 G_BEGIN_DECLS
36 extern "C" {
37 #endif
38 36
39 gint purple_dbus_pointer_to_id(gconstpointer node); 37 gint purple_dbus_pointer_to_id(gconstpointer node);
40 gpointer purple_dbus_id_to_pointer(gint id, PurpleDBusType *type); 38 gpointer purple_dbus_id_to_pointer(gint id, PurpleDBusType *type);
41 gint purple_dbus_pointer_to_id_error(gconstpointer ptr, DBusError *error); 39 gint purple_dbus_pointer_to_id_error(gconstpointer ptr, DBusError *error);
42 gpointer purple_dbus_id_to_pointer_error(gint id, PurpleDBusType *type, 40 gpointer purple_dbus_id_to_pointer_error(gint id, PurpleDBusType *type,
82 purple_dbus_message_iter_get_args_valist (DBusMessageIter *iter, 80 purple_dbus_message_iter_get_args_valist (DBusMessageIter *iter,
83 DBusError *error, 81 DBusError *error,
84 int first_arg_type, 82 int first_arg_type,
85 va_list var_args); 83 va_list var_args);
86 84
87 dbus_int32_t* purple_dbusify_GList(GList *list, gboolean free_memory, 85 dbus_int32_t* purple_dbusify_GList(GList *list, dbus_int32_t *len);
88 dbus_int32_t *len); 86 dbus_int32_t* purple_dbusify_GSList(GSList *list, dbus_int32_t *len);
89 dbus_int32_t* purple_dbusify_GSList(GSList *list, gboolean free_memory, 87 gpointer* purple_GList_to_array(GList *list, dbus_int32_t *len);
90 dbus_int32_t *len); 88 gpointer* purple_GSList_to_array(GSList *list, dbus_int32_t *len);
91 gpointer* purple_GList_to_array(GList *list, gboolean free_memory,
92 dbus_int32_t *len);
93 gpointer* purple_GSList_to_array(GSList *list, gboolean free_memory,
94 dbus_int32_t *len);
95 GHashTable *purple_dbus_iter_hash_table(DBusMessageIter *iter, DBusError *error); 89 GHashTable *purple_dbus_iter_hash_table(DBusMessageIter *iter, DBusError *error);
96 90
97 const char* empty_to_null(const char *str); 91 const char* empty_to_null(const char *str);
98 const char* null_to_empty(const char *s); 92 const char* null_to_empty(const char *s);
99 93
105 99
106 void purple_dbus_register_bindings(void *handle, PurpleDBusBinding *bindings); 100 void purple_dbus_register_bindings(void *handle, PurpleDBusBinding *bindings);
107 101
108 DBusConnection *purple_dbus_get_connection(void); 102 DBusConnection *purple_dbus_get_connection(void);
109 103
110 #ifdef __cplusplus 104 G_END_DECLS
111 }
112 #endif
113 105
114 #endif 106 #endif