diff 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
line wrap: on
line diff
--- a/src/dbus-useful.c	Wed Aug 03 22:58:06 2005 +0000
+++ b/src/dbus-useful.c	Wed Aug 03 23:54:37 2005 +0000
@@ -1,4 +1,9 @@
+#include <string.h>
+#include <glib.h>
+
 #include "conversation.h"
+#include "util.h"
+
 
 
 GaimAccount *
@@ -46,3 +51,25 @@
 }
 
 
+/* DBusMessage *gaim_account_set_status_DBUS(DBusMessage *message_DBUS, DBusError *error_DBUS)  */
+/* { */
+/*     DBusMessage *reply; */
+/*     DBusMessageIter iter; */
+
+/*     dbus_int32_t account, active;     */
+/*     char *status_id; */
+    
+/*     dbus_message_iter_init(message, &iter); */
+/* const char *name; */
+/* const char *protocol; */
+
+/* dbus_message_get_args(message_DBUS, error_DBUS,  DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &protocol, DBUS_TYPE_INVALID); */
+/* CHECK_ERROR(error_DBUS); */
+/* NULLIFY(name); */
+/* NULLIFY(protocol); */
+/* GAIM_DBUS_POINTER_TO_ID(RESULT, gaim_accounts_find_any(name, protocol), error_DBUS); */
+/* reply_DBUS =  dbus_message_new_method_return (message_DBUS); */
+/* dbus_message_append_args(reply_DBUS,  DBUS_TYPE_INT32, &RESULT,  DBUS_TYPE_INVALID); */
+/* return reply_DBUS; */
+
+/* } */