src/dbus-useful.c

changeset 11331
6e06ed40a312
parent 11187
27beea38898f
child 11903
56ae8af14a0d
equal deleted inserted replaced
11330:0acb7f694797 11331:6e06ed40a312
1 #include <string.h> 1 #include <string.h>
2 #include <glib.h> 2 #include <glib.h>
3 3
4 #include "dbus-useful.h"
4 #include "conversation.h" 5 #include "conversation.h"
5 #include "util.h" 6 #include "util.h"
6
7 7
8 8
9 GaimAccount * 9 GaimAccount *
10 gaim_accounts_find_ext(const char *name, const char *protocol_id, 10 gaim_accounts_find_ext(const char *name, const char *protocol_id,
11 gboolean (*account_test)(const GaimAccount *account)) 11 gboolean (*account_test)(const GaimAccount *account))
12 { 12 {
13 GaimAccount *result = NULL; 13 GList *result = NULL;
14 GList *l; 14 GList *l;
15 char *who; 15 char *who;
16 16
17 if (name) 17 if (name)
18 who = g_strdup(gaim_normalize(NULL, name)); 18 who = g_strdup(gaim_normalize(NULL, name));
49 { 49 {
50 return gaim_accounts_find_ext(name, protocol, gaim_account_is_connected); 50 return gaim_accounts_find_ext(name, protocol, gaim_account_is_connected);
51 } 51 }
52 52
53 53
54 /* DBusMessage *gaim_account_set_status_DBUS(DBusMessage *message_DBUS, DBusError *error_DBUS) */
55 /* { */
56 /* DBusMessage *reply; */
57 /* DBusMessageIter iter; */
58
59 /* dbus_int32_t account, active; */
60 /* char *status_id; */
61
62 /* dbus_message_iter_init(message, &iter); */
63 /* const char *name; */
64 /* const char *protocol; */
65
66 /* dbus_message_get_args(message_DBUS, error_DBUS, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &protocol, DBUS_TYPE_INVALID); */
67 /* CHECK_ERROR(error_DBUS); */
68 /* NULLIFY(name); */
69 /* NULLIFY(protocol); */
70 /* GAIM_DBUS_POINTER_TO_ID(RESULT, gaim_accounts_find_any(name, protocol), error_DBUS); */
71 /* reply_DBUS = dbus_message_new_method_return (message_DBUS); */
72 /* dbus_message_append_args(reply_DBUS, DBUS_TYPE_INT32, &RESULT, DBUS_TYPE_INVALID); */
73 /* return reply_DBUS; */
74
75 /* } */

mercurial