Mercurial > pidgin
comparison libpurple/dbus-bindings.h @ 18059:3f3125b91728
Lots of DBus list handling changes. The objective here was to eliminate a
handful of warnings about constness with GLists. Fixing this correctly
involved a lot more work than I expected. The DBus code now properly frees
non-const lists (it was leaking them before). Also, the stringlist code is
much improved. Finally, it compiles without warnings.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 07 Jun 2007 04:25:54 +0000 |
parents | df911a06e09e |
children | ab6d2763b8d8 |
comparison
equal
deleted
inserted
replaced
18058:4ca97b26a8fb | 18059:3f3125b91728 |
---|---|
81 purple_dbus_message_iter_get_args_valist (DBusMessageIter *iter, | 81 purple_dbus_message_iter_get_args_valist (DBusMessageIter *iter, |
82 DBusError *error, | 82 DBusError *error, |
83 int first_arg_type, | 83 int first_arg_type, |
84 va_list var_args); | 84 va_list var_args); |
85 | 85 |
86 /** | |
87 * @deprecated In 3.0.0, this method will have a signature and behavior | |
88 * like that of purple_dbusify_const_GList(). | |
89 */ | |
86 dbus_int32_t* purple_dbusify_GList(GList *list, gboolean free_memory, | 90 dbus_int32_t* purple_dbusify_GList(GList *list, gboolean free_memory, |
87 dbus_int32_t *len); | 91 dbus_int32_t *len); |
92 /** | |
93 * @deprecated In 3.0.0, this method will have a signature and behavior | |
94 * like that of purple_dbusify_const_GSList(). | |
95 */ | |
88 dbus_int32_t* purple_dbusify_GSList(GSList *list, gboolean free_memory, | 96 dbus_int32_t* purple_dbusify_GSList(GSList *list, gboolean free_memory, |
89 dbus_int32_t *len); | 97 dbus_int32_t *len); |
98 | |
99 /** | |
100 * @since 2.1.0 | |
101 */ | |
102 dbus_int32_t* purple_dbusify_const_GList(const GList *list, dbus_int32_t *len); | |
103 | |
104 /** | |
105 * @since 2.1.0 | |
106 */ | |
107 dbus_int32_t* purple_dbusify_const_GSList(const GSList *list, dbus_int32_t *len); | |
108 | |
109 /** | |
110 * @deprecated In 3.0.0, this method will have a signature and behavior | |
111 * like that of purple_const_GList_to_array(). | |
112 */ | |
90 gpointer* purple_GList_to_array(GList *list, gboolean free_memory, | 113 gpointer* purple_GList_to_array(GList *list, gboolean free_memory, |
91 dbus_int32_t *len); | 114 dbus_int32_t *len); |
115 /** | |
116 * @deprecated In 3.0.0, this method will have a signature and behavior | |
117 * like that of purple_const_GSList_to_array(). | |
118 */ | |
92 gpointer* purple_GSList_to_array(GSList *list, gboolean free_memory, | 119 gpointer* purple_GSList_to_array(GSList *list, gboolean free_memory, |
93 dbus_int32_t *len); | 120 dbus_int32_t *len); |
121 | |
122 /** | |
123 * @since 2.1.0 | |
124 */ | |
125 gpointer* purple_const_GList_to_array(const GList *list, dbus_int32_t *len); | |
126 | |
127 /** | |
128 * @since 2.1.0 | |
129 */ | |
130 gpointer* purple_const_GSList_to_array(const GSList *list, dbus_int32_t *len); | |
131 | |
94 GHashTable *purple_dbus_iter_hash_table(DBusMessageIter *iter, DBusError *error); | 132 GHashTable *purple_dbus_iter_hash_table(DBusMessageIter *iter, DBusError *error); |
95 | 133 |
96 const char* empty_to_null(const char *str); | 134 const char* empty_to_null(const char *str); |
97 const char* null_to_empty(const char *s); | 135 const char* null_to_empty(const char *s); |
98 | 136 |