libpurple/dbus-server.c

changeset 38813
9506fb3fe6a2
parent 38498
f956b9e3f8e6
child 39221
87727458adb0
equal deleted inserted replaced
38791:cf55bdaccfb0 38813:9506fb3fe6a2
689 gint64 xint64; 689 gint64 xint64;
690 guint64 xuint64; 690 guint64 xuint64;
691 gboolean xboolean; 691 gboolean xboolean;
692 gpointer ptr = NULL; 692 gpointer ptr = NULL;
693 gpointer val; 693 gpointer val;
694 #if 0 694
695 if (purple_value_is_outgoing(purple_values[i]))
696 {
697 ptr = my_arg(gpointer);
698 g_return_val_if_fail(ptr, TRUE);
699 }
700 #endif
701 switch (types[i]) 695 switch (types[i])
702 { 696 {
703 case G_TYPE_INT: 697 case G_TYPE_INT:
704 xint = my_arg(gint); 698 xint = my_arg(gint);
705 dbus_message_iter_append_basic(iter, DBUS_TYPE_INT32, &xint); 699 dbus_message_iter_append_basic(iter, DBUS_TYPE_INT32, &xint);
766 { 760 {
767 DBusMessage *signal; 761 DBusMessage *signal;
768 DBusMessageIter iter; 762 DBusMessageIter iter;
769 char *newname; 763 char *newname;
770 764
771 #if 0 /* this is noisy with no dbus connection */
772 g_return_if_fail(purple_dbus_connection);
773 #else
774 if (purple_dbus_connection == NULL) 765 if (purple_dbus_connection == NULL)
775 return; 766 return;
776 #endif
777
778 767
779 /* 768 /*
780 * The test below is a hack that prevents our "dbus-method-called" 769 * The test below is a hack that prevents our "dbus-method-called"
781 * signal from being propagated to dbus. What we really need is a 770 * signal from being propagated to dbus. What we really need is a
782 * flag for each signal that states whether this signal is to be 771 * flag for each signal that states whether this signal is to be

mercurial