Mercurial > pidgin.yaz
comparison src/dbus-useful.c @ 11187:744c0708d11f
[gaim-migrate @ 13303]
gaim-remote.py implements the functionality of standard gaim-remote,
but using DBus. It can also call all gaim functions exported via
DBus.
dbus-analize-function.py can now produce dbus bindings for GHashTable
arguments.
committer: Tailor Script <tailor@pidgin.im>
author | Piotr Zielinski <zielaj> |
---|---|
date | Wed, 03 Aug 2005 23:54:37 +0000 |
parents | 1c5398ccbeb0 |
children | 64fadbf3810f |
comparison
equal
deleted
inserted
replaced
11186:bbe84acea03a | 11187:744c0708d11f |
---|---|
1 #include <string.h> | |
2 #include <glib.h> | |
3 | |
1 #include "conversation.h" | 4 #include "conversation.h" |
5 #include "util.h" | |
6 | |
2 | 7 |
3 | 8 |
4 GaimAccount * | 9 GaimAccount * |
5 gaim_accounts_find_ext(const char *name, const char *protocol_id, | 10 gaim_accounts_find_ext(const char *name, const char *protocol_id, |
6 gboolean (*account_test)(const GaimAccount *account)) | 11 gboolean (*account_test)(const GaimAccount *account)) |
44 { | 49 { |
45 return gaim_accounts_find_ext(name, protocol, gaim_account_is_connected); | 50 return gaim_accounts_find_ext(name, protocol, gaim_account_is_connected); |
46 } | 51 } |
47 | 52 |
48 | 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 /* } */ |