2 * Generated by gdbus-codegen 2.50.3. DO NOT EDIT.
4 * The license of this code is the same as for the source it was derived from.
11 #include "ofono_voicecallmanager_interface.h"
15 # include <gio/gunixfdlist.h>
20 GDBusArgInfo parent_struct;
21 gboolean use_gvariant;
22 } _ExtendedGDBusArgInfo;
26 GDBusMethodInfo parent_struct;
27 const gchar *signal_name;
29 } _ExtendedGDBusMethodInfo;
33 GDBusSignalInfo parent_struct;
34 const gchar *signal_name;
35 } _ExtendedGDBusSignalInfo;
39 GDBusPropertyInfo parent_struct;
40 const gchar *hyphen_name;
41 gboolean use_gvariant;
42 } _ExtendedGDBusPropertyInfo;
46 GDBusInterfaceInfo parent_struct;
47 const gchar *hyphen_name;
48 } _ExtendedGDBusInterfaceInfo;
52 const _ExtendedGDBusPropertyInfo *info;
54 GValue orig_value; /* the value before the change */
58 _changed_property_free (ChangedProperty *data)
60 g_value_unset (&data->orig_value);
65 _g_strv_equal0 (gchar **a, gchar **b)
69 if (a == NULL && b == NULL)
74 if (a == NULL || b == NULL)
76 if (g_strv_length (a) != g_strv_length (b))
78 for (n = 0; a[n] != NULL; n++)
79 if (g_strcmp0 (a[n], b[n]) != 0)
87 _g_variant_equal0 (GVariant *a, GVariant *b)
90 if (a == NULL && b == NULL)
95 if (a == NULL || b == NULL)
97 ret = g_variant_equal (a, b);
102 G_GNUC_UNUSED static gboolean
103 _g_value_equal (const GValue *a, const GValue *b)
105 gboolean ret = FALSE;
106 g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
107 switch (G_VALUE_TYPE (a))
110 ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
113 ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
116 ret = (g_value_get_int (a) == g_value_get_int (b));
119 ret = (g_value_get_uint (a) == g_value_get_uint (b));
122 ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
125 ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
129 /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
130 gdouble da = g_value_get_double (a);
131 gdouble db = g_value_get_double (b);
132 ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
136 ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
139 ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
142 if (G_VALUE_TYPE (a) == G_TYPE_STRV)
143 ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
145 g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
151 /* ------------------------------------------------------------------------
152 * Code for interface org.ofono.VoiceCallManager
153 * ------------------------------------------------------------------------
157 * SECTION:OrgOfonoVoiceCallManager
158 * @title: OrgOfonoVoiceCallManager
159 * @short_description: Generated C code for the org.ofono.VoiceCallManager D-Bus interface
161 * This section contains code for working with the <link linkend="gdbus-interface-org-ofono-VoiceCallManager.top_of_page">org.ofono.VoiceCallManager</link> D-Bus interface in C.
164 /* ---- Introspection data for org.ofono.VoiceCallManager ---- */
166 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_get_properties_OUT_ARG_unnamed_arg0 =
170 (gchar *) "unnamed_arg0",
177 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_method_info_get_properties_OUT_ARG_pointers[] =
179 &_org_ofono_voice_call_manager_method_info_get_properties_OUT_ARG_unnamed_arg0,
183 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_get_properties =
187 (gchar *) "GetProperties",
189 (GDBusArgInfo **) &_org_ofono_voice_call_manager_method_info_get_properties_OUT_ARG_pointers,
192 "handle-get-properties",
196 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_dial_IN_ARG_unnamed_arg0 =
200 (gchar *) "unnamed_arg0",
207 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_dial_IN_ARG_unnamed_arg1 =
211 (gchar *) "unnamed_arg1",
218 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_method_info_dial_IN_ARG_pointers[] =
220 &_org_ofono_voice_call_manager_method_info_dial_IN_ARG_unnamed_arg0,
221 &_org_ofono_voice_call_manager_method_info_dial_IN_ARG_unnamed_arg1,
225 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_dial_OUT_ARG_unnamed_arg2 =
229 (gchar *) "unnamed_arg2",
236 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_method_info_dial_OUT_ARG_pointers[] =
238 &_org_ofono_voice_call_manager_method_info_dial_OUT_ARG_unnamed_arg2,
242 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_dial =
247 (GDBusArgInfo **) &_org_ofono_voice_call_manager_method_info_dial_IN_ARG_pointers,
248 (GDBusArgInfo **) &_org_ofono_voice_call_manager_method_info_dial_OUT_ARG_pointers,
255 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_transfer =
259 (gchar *) "Transfer",
268 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_swap_calls =
272 (gchar *) "SwapCalls",
281 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_release_and_answer =
285 (gchar *) "ReleaseAndAnswer",
290 "handle-release-and-answer",
294 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_hold_and_answer =
298 (gchar *) "HoldAndAnswer",
303 "handle-hold-and-answer",
307 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_hangup_all =
311 (gchar *) "HangupAll",
320 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_private_chat_IN_ARG_unnamed_arg0 =
324 (gchar *) "unnamed_arg0",
331 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_method_info_private_chat_IN_ARG_pointers[] =
333 &_org_ofono_voice_call_manager_method_info_private_chat_IN_ARG_unnamed_arg0,
337 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_private_chat_OUT_ARG_unnamed_arg1 =
341 (gchar *) "unnamed_arg1",
348 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_method_info_private_chat_OUT_ARG_pointers[] =
350 &_org_ofono_voice_call_manager_method_info_private_chat_OUT_ARG_unnamed_arg1,
354 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_private_chat =
358 (gchar *) "PrivateChat",
359 (GDBusArgInfo **) &_org_ofono_voice_call_manager_method_info_private_chat_IN_ARG_pointers,
360 (GDBusArgInfo **) &_org_ofono_voice_call_manager_method_info_private_chat_OUT_ARG_pointers,
363 "handle-private-chat",
367 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_create_multiparty_OUT_ARG_unnamed_arg0 =
371 (gchar *) "unnamed_arg0",
378 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_method_info_create_multiparty_OUT_ARG_pointers[] =
380 &_org_ofono_voice_call_manager_method_info_create_multiparty_OUT_ARG_unnamed_arg0,
384 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_create_multiparty =
388 (gchar *) "CreateMultiparty",
390 (GDBusArgInfo **) &_org_ofono_voice_call_manager_method_info_create_multiparty_OUT_ARG_pointers,
393 "handle-create-multiparty",
397 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_hangup_multiparty =
401 (gchar *) "HangupMultiparty",
406 "handle-hangup-multiparty",
410 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_send_tones_IN_ARG_unnamed_arg0 =
414 (gchar *) "unnamed_arg0",
421 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_method_info_send_tones_IN_ARG_pointers[] =
423 &_org_ofono_voice_call_manager_method_info_send_tones_IN_ARG_unnamed_arg0,
427 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_send_tones =
431 (gchar *) "SendTones",
432 (GDBusArgInfo **) &_org_ofono_voice_call_manager_method_info_send_tones_IN_ARG_pointers,
440 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_method_info_get_calls_OUT_ARG_unnamed_arg0 =
444 (gchar *) "unnamed_arg0",
445 (gchar *) "a(oa{sv})",
451 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_method_info_get_calls_OUT_ARG_pointers[] =
453 &_org_ofono_voice_call_manager_method_info_get_calls_OUT_ARG_unnamed_arg0,
457 static const _ExtendedGDBusMethodInfo _org_ofono_voice_call_manager_method_info_get_calls =
461 (gchar *) "GetCalls",
463 (GDBusArgInfo **) &_org_ofono_voice_call_manager_method_info_get_calls_OUT_ARG_pointers,
470 static const _ExtendedGDBusMethodInfo * const _org_ofono_voice_call_manager_method_info_pointers[] =
472 &_org_ofono_voice_call_manager_method_info_get_properties,
473 &_org_ofono_voice_call_manager_method_info_dial,
474 &_org_ofono_voice_call_manager_method_info_transfer,
475 &_org_ofono_voice_call_manager_method_info_swap_calls,
476 &_org_ofono_voice_call_manager_method_info_release_and_answer,
477 &_org_ofono_voice_call_manager_method_info_hold_and_answer,
478 &_org_ofono_voice_call_manager_method_info_hangup_all,
479 &_org_ofono_voice_call_manager_method_info_private_chat,
480 &_org_ofono_voice_call_manager_method_info_create_multiparty,
481 &_org_ofono_voice_call_manager_method_info_hangup_multiparty,
482 &_org_ofono_voice_call_manager_method_info_send_tones,
483 &_org_ofono_voice_call_manager_method_info_get_calls,
487 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_signal_info_property_changed_ARG_unnamed_arg0 =
491 (gchar *) "unnamed_arg0",
498 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_signal_info_property_changed_ARG_unnamed_arg1 =
502 (gchar *) "unnamed_arg1",
509 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_signal_info_property_changed_ARG_pointers[] =
511 &_org_ofono_voice_call_manager_signal_info_property_changed_ARG_unnamed_arg0,
512 &_org_ofono_voice_call_manager_signal_info_property_changed_ARG_unnamed_arg1,
516 static const _ExtendedGDBusSignalInfo _org_ofono_voice_call_manager_signal_info_property_changed =
520 (gchar *) "PropertyChanged",
521 (GDBusArgInfo **) &_org_ofono_voice_call_manager_signal_info_property_changed_ARG_pointers,
527 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_signal_info_call_added_ARG_unnamed_arg0 =
531 (gchar *) "unnamed_arg0",
538 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_signal_info_call_added_ARG_unnamed_arg1 =
542 (gchar *) "unnamed_arg1",
549 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_signal_info_call_added_ARG_pointers[] =
551 &_org_ofono_voice_call_manager_signal_info_call_added_ARG_unnamed_arg0,
552 &_org_ofono_voice_call_manager_signal_info_call_added_ARG_unnamed_arg1,
556 static const _ExtendedGDBusSignalInfo _org_ofono_voice_call_manager_signal_info_call_added =
560 (gchar *) "CallAdded",
561 (GDBusArgInfo **) &_org_ofono_voice_call_manager_signal_info_call_added_ARG_pointers,
567 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_signal_info_call_removed_ARG_unnamed_arg0 =
571 (gchar *) "unnamed_arg0",
578 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_signal_info_call_removed_ARG_pointers[] =
580 &_org_ofono_voice_call_manager_signal_info_call_removed_ARG_unnamed_arg0,
584 static const _ExtendedGDBusSignalInfo _org_ofono_voice_call_manager_signal_info_call_removed =
588 (gchar *) "CallRemoved",
589 (GDBusArgInfo **) &_org_ofono_voice_call_manager_signal_info_call_removed_ARG_pointers,
595 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_signal_info_barring_active_ARG_unnamed_arg0 =
599 (gchar *) "unnamed_arg0",
606 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_signal_info_barring_active_ARG_pointers[] =
608 &_org_ofono_voice_call_manager_signal_info_barring_active_ARG_unnamed_arg0,
612 static const _ExtendedGDBusSignalInfo _org_ofono_voice_call_manager_signal_info_barring_active =
616 (gchar *) "BarringActive",
617 (GDBusArgInfo **) &_org_ofono_voice_call_manager_signal_info_barring_active_ARG_pointers,
623 static const _ExtendedGDBusArgInfo _org_ofono_voice_call_manager_signal_info_forwarded_ARG_unnamed_arg0 =
627 (gchar *) "unnamed_arg0",
634 static const _ExtendedGDBusArgInfo * const _org_ofono_voice_call_manager_signal_info_forwarded_ARG_pointers[] =
636 &_org_ofono_voice_call_manager_signal_info_forwarded_ARG_unnamed_arg0,
640 static const _ExtendedGDBusSignalInfo _org_ofono_voice_call_manager_signal_info_forwarded =
644 (gchar *) "Forwarded",
645 (GDBusArgInfo **) &_org_ofono_voice_call_manager_signal_info_forwarded_ARG_pointers,
651 static const _ExtendedGDBusSignalInfo * const _org_ofono_voice_call_manager_signal_info_pointers[] =
653 &_org_ofono_voice_call_manager_signal_info_property_changed,
654 &_org_ofono_voice_call_manager_signal_info_call_added,
655 &_org_ofono_voice_call_manager_signal_info_call_removed,
656 &_org_ofono_voice_call_manager_signal_info_barring_active,
657 &_org_ofono_voice_call_manager_signal_info_forwarded,
661 static const _ExtendedGDBusInterfaceInfo _org_ofono_voice_call_manager_interface_info =
665 (gchar *) "org.ofono.VoiceCallManager",
666 (GDBusMethodInfo **) &_org_ofono_voice_call_manager_method_info_pointers,
667 (GDBusSignalInfo **) &_org_ofono_voice_call_manager_signal_info_pointers,
671 "org-ofono-voice-call-manager",
676 * org_ofono_voice_call_manager_interface_info:
678 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-ofono-VoiceCallManager.top_of_page">org.ofono.VoiceCallManager</link> D-Bus interface.
680 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
683 org_ofono_voice_call_manager_interface_info (void)
685 return (GDBusInterfaceInfo *) &_org_ofono_voice_call_manager_interface_info.parent_struct;
689 * org_ofono_voice_call_manager_override_properties:
690 * @klass: The class structure for a #GObject<!-- -->-derived class.
691 * @property_id_begin: The property id to assign to the first overridden property.
693 * Overrides all #GObject properties in the #OrgOfonoVoiceCallManager interface for a concrete class.
694 * The properties are overridden in the order they are defined.
696 * Returns: The last property id.
699 org_ofono_voice_call_manager_override_properties (GObjectClass *klass, guint property_id_begin)
701 return property_id_begin - 1;
707 * OrgOfonoVoiceCallManager:
709 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-ofono-VoiceCallManager.top_of_page">org.ofono.VoiceCallManager</link>.
713 * OrgOfonoVoiceCallManagerIface:
714 * @parent_iface: The parent interface.
715 * @handle_create_multiparty: Handler for the #OrgOfonoVoiceCallManager::handle-create-multiparty signal.
716 * @handle_dial: Handler for the #OrgOfonoVoiceCallManager::handle-dial signal.
717 * @handle_get_calls: Handler for the #OrgOfonoVoiceCallManager::handle-get-calls signal.
718 * @handle_get_properties: Handler for the #OrgOfonoVoiceCallManager::handle-get-properties signal.
719 * @handle_hangup_all: Handler for the #OrgOfonoVoiceCallManager::handle-hangup-all signal.
720 * @handle_hangup_multiparty: Handler for the #OrgOfonoVoiceCallManager::handle-hangup-multiparty signal.
721 * @handle_hold_and_answer: Handler for the #OrgOfonoVoiceCallManager::handle-hold-and-answer signal.
722 * @handle_private_chat: Handler for the #OrgOfonoVoiceCallManager::handle-private-chat signal.
723 * @handle_release_and_answer: Handler for the #OrgOfonoVoiceCallManager::handle-release-and-answer signal.
724 * @handle_send_tones: Handler for the #OrgOfonoVoiceCallManager::handle-send-tones signal.
725 * @handle_swap_calls: Handler for the #OrgOfonoVoiceCallManager::handle-swap-calls signal.
726 * @handle_transfer: Handler for the #OrgOfonoVoiceCallManager::handle-transfer signal.
727 * @barring_active: Handler for the #OrgOfonoVoiceCallManager::barring-active signal.
728 * @call_added: Handler for the #OrgOfonoVoiceCallManager::call-added signal.
729 * @call_removed: Handler for the #OrgOfonoVoiceCallManager::call-removed signal.
730 * @forwarded: Handler for the #OrgOfonoVoiceCallManager::forwarded signal.
731 * @property_changed: Handler for the #OrgOfonoVoiceCallManager::property-changed signal.
733 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-ofono-VoiceCallManager.top_of_page">org.ofono.VoiceCallManager</link>.
736 typedef OrgOfonoVoiceCallManagerIface OrgOfonoVoiceCallManagerInterface;
737 G_DEFINE_INTERFACE (OrgOfonoVoiceCallManager, org_ofono_voice_call_manager, G_TYPE_OBJECT);
740 org_ofono_voice_call_manager_default_init (OrgOfonoVoiceCallManagerIface *iface)
742 /* GObject signals for incoming D-Bus method calls: */
744 * OrgOfonoVoiceCallManager::handle-get-properties:
745 * @object: A #OrgOfonoVoiceCallManager.
746 * @invocation: A #GDBusMethodInvocation.
748 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.GetProperties">GetProperties()</link> D-Bus method.
750 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_get_properties() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
752 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
754 g_signal_new ("handle-get-properties",
755 G_TYPE_FROM_INTERFACE (iface),
757 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_get_properties),
758 g_signal_accumulator_true_handled,
760 g_cclosure_marshal_generic,
763 G_TYPE_DBUS_METHOD_INVOCATION);
766 * OrgOfonoVoiceCallManager::handle-dial:
767 * @object: A #OrgOfonoVoiceCallManager.
768 * @invocation: A #GDBusMethodInvocation.
769 * @arg_unnamed_arg0: Argument passed by remote caller.
770 * @arg_unnamed_arg1: Argument passed by remote caller.
772 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.Dial">Dial()</link> D-Bus method.
774 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_dial() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
776 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
778 g_signal_new ("handle-dial",
779 G_TYPE_FROM_INTERFACE (iface),
781 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_dial),
782 g_signal_accumulator_true_handled,
784 g_cclosure_marshal_generic,
787 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
790 * OrgOfonoVoiceCallManager::handle-transfer:
791 * @object: A #OrgOfonoVoiceCallManager.
792 * @invocation: A #GDBusMethodInvocation.
794 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.Transfer">Transfer()</link> D-Bus method.
796 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_transfer() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
798 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
800 g_signal_new ("handle-transfer",
801 G_TYPE_FROM_INTERFACE (iface),
803 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_transfer),
804 g_signal_accumulator_true_handled,
806 g_cclosure_marshal_generic,
809 G_TYPE_DBUS_METHOD_INVOCATION);
812 * OrgOfonoVoiceCallManager::handle-swap-calls:
813 * @object: A #OrgOfonoVoiceCallManager.
814 * @invocation: A #GDBusMethodInvocation.
816 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.SwapCalls">SwapCalls()</link> D-Bus method.
818 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_swap_calls() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
820 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
822 g_signal_new ("handle-swap-calls",
823 G_TYPE_FROM_INTERFACE (iface),
825 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_swap_calls),
826 g_signal_accumulator_true_handled,
828 g_cclosure_marshal_generic,
831 G_TYPE_DBUS_METHOD_INVOCATION);
834 * OrgOfonoVoiceCallManager::handle-release-and-answer:
835 * @object: A #OrgOfonoVoiceCallManager.
836 * @invocation: A #GDBusMethodInvocation.
838 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.ReleaseAndAnswer">ReleaseAndAnswer()</link> D-Bus method.
840 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_release_and_answer() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
842 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
844 g_signal_new ("handle-release-and-answer",
845 G_TYPE_FROM_INTERFACE (iface),
847 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_release_and_answer),
848 g_signal_accumulator_true_handled,
850 g_cclosure_marshal_generic,
853 G_TYPE_DBUS_METHOD_INVOCATION);
856 * OrgOfonoVoiceCallManager::handle-hold-and-answer:
857 * @object: A #OrgOfonoVoiceCallManager.
858 * @invocation: A #GDBusMethodInvocation.
860 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HoldAndAnswer">HoldAndAnswer()</link> D-Bus method.
862 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_hold_and_answer() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
864 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
866 g_signal_new ("handle-hold-and-answer",
867 G_TYPE_FROM_INTERFACE (iface),
869 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_hold_and_answer),
870 g_signal_accumulator_true_handled,
872 g_cclosure_marshal_generic,
875 G_TYPE_DBUS_METHOD_INVOCATION);
878 * OrgOfonoVoiceCallManager::handle-hangup-all:
879 * @object: A #OrgOfonoVoiceCallManager.
880 * @invocation: A #GDBusMethodInvocation.
882 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HangupAll">HangupAll()</link> D-Bus method.
884 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_hangup_all() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
886 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
888 g_signal_new ("handle-hangup-all",
889 G_TYPE_FROM_INTERFACE (iface),
891 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_hangup_all),
892 g_signal_accumulator_true_handled,
894 g_cclosure_marshal_generic,
897 G_TYPE_DBUS_METHOD_INVOCATION);
900 * OrgOfonoVoiceCallManager::handle-private-chat:
901 * @object: A #OrgOfonoVoiceCallManager.
902 * @invocation: A #GDBusMethodInvocation.
903 * @arg_unnamed_arg0: Argument passed by remote caller.
905 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.PrivateChat">PrivateChat()</link> D-Bus method.
907 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_private_chat() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
909 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
911 g_signal_new ("handle-private-chat",
912 G_TYPE_FROM_INTERFACE (iface),
914 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_private_chat),
915 g_signal_accumulator_true_handled,
917 g_cclosure_marshal_generic,
920 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
923 * OrgOfonoVoiceCallManager::handle-create-multiparty:
924 * @object: A #OrgOfonoVoiceCallManager.
925 * @invocation: A #GDBusMethodInvocation.
927 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.CreateMultiparty">CreateMultiparty()</link> D-Bus method.
929 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_create_multiparty() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
931 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
933 g_signal_new ("handle-create-multiparty",
934 G_TYPE_FROM_INTERFACE (iface),
936 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_create_multiparty),
937 g_signal_accumulator_true_handled,
939 g_cclosure_marshal_generic,
942 G_TYPE_DBUS_METHOD_INVOCATION);
945 * OrgOfonoVoiceCallManager::handle-hangup-multiparty:
946 * @object: A #OrgOfonoVoiceCallManager.
947 * @invocation: A #GDBusMethodInvocation.
949 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HangupMultiparty">HangupMultiparty()</link> D-Bus method.
951 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_hangup_multiparty() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
953 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
955 g_signal_new ("handle-hangup-multiparty",
956 G_TYPE_FROM_INTERFACE (iface),
958 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_hangup_multiparty),
959 g_signal_accumulator_true_handled,
961 g_cclosure_marshal_generic,
964 G_TYPE_DBUS_METHOD_INVOCATION);
967 * OrgOfonoVoiceCallManager::handle-send-tones:
968 * @object: A #OrgOfonoVoiceCallManager.
969 * @invocation: A #GDBusMethodInvocation.
970 * @arg_unnamed_arg0: Argument passed by remote caller.
972 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.SendTones">SendTones()</link> D-Bus method.
974 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_send_tones() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
976 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
978 g_signal_new ("handle-send-tones",
979 G_TYPE_FROM_INTERFACE (iface),
981 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_send_tones),
982 g_signal_accumulator_true_handled,
984 g_cclosure_marshal_generic,
987 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
990 * OrgOfonoVoiceCallManager::handle-get-calls:
991 * @object: A #OrgOfonoVoiceCallManager.
992 * @invocation: A #GDBusMethodInvocation.
994 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-ofono-VoiceCallManager.GetCalls">GetCalls()</link> D-Bus method.
996 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_ofono_voice_call_manager_complete_get_calls() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
998 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1000 g_signal_new ("handle-get-calls",
1001 G_TYPE_FROM_INTERFACE (iface),
1003 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, handle_get_calls),
1004 g_signal_accumulator_true_handled,
1006 g_cclosure_marshal_generic,
1009 G_TYPE_DBUS_METHOD_INVOCATION);
1011 /* GObject signals for received D-Bus signals: */
1013 * OrgOfonoVoiceCallManager::property-changed:
1014 * @object: A #OrgOfonoVoiceCallManager.
1015 * @arg_unnamed_arg0: Argument.
1016 * @arg_unnamed_arg1: Argument.
1018 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-ofono-VoiceCallManager.PropertyChanged">"PropertyChanged"</link> is received.
1020 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1022 g_signal_new ("property-changed",
1023 G_TYPE_FROM_INTERFACE (iface),
1025 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, property_changed),
1028 g_cclosure_marshal_generic,
1030 2, G_TYPE_STRING, G_TYPE_VARIANT);
1033 * OrgOfonoVoiceCallManager::call-added:
1034 * @object: A #OrgOfonoVoiceCallManager.
1035 * @arg_unnamed_arg0: Argument.
1036 * @arg_unnamed_arg1: Argument.
1038 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-ofono-VoiceCallManager.CallAdded">"CallAdded"</link> is received.
1040 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1042 g_signal_new ("call-added",
1043 G_TYPE_FROM_INTERFACE (iface),
1045 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, call_added),
1048 g_cclosure_marshal_generic,
1050 2, G_TYPE_STRING, G_TYPE_VARIANT);
1053 * OrgOfonoVoiceCallManager::call-removed:
1054 * @object: A #OrgOfonoVoiceCallManager.
1055 * @arg_unnamed_arg0: Argument.
1057 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-ofono-VoiceCallManager.CallRemoved">"CallRemoved"</link> is received.
1059 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1061 g_signal_new ("call-removed",
1062 G_TYPE_FROM_INTERFACE (iface),
1064 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, call_removed),
1067 g_cclosure_marshal_generic,
1072 * OrgOfonoVoiceCallManager::barring-active:
1073 * @object: A #OrgOfonoVoiceCallManager.
1074 * @arg_unnamed_arg0: Argument.
1076 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-ofono-VoiceCallManager.BarringActive">"BarringActive"</link> is received.
1078 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1080 g_signal_new ("barring-active",
1081 G_TYPE_FROM_INTERFACE (iface),
1083 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, barring_active),
1086 g_cclosure_marshal_generic,
1091 * OrgOfonoVoiceCallManager::forwarded:
1092 * @object: A #OrgOfonoVoiceCallManager.
1093 * @arg_unnamed_arg0: Argument.
1095 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-ofono-VoiceCallManager.Forwarded">"Forwarded"</link> is received.
1097 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
1099 g_signal_new ("forwarded",
1100 G_TYPE_FROM_INTERFACE (iface),
1102 G_STRUCT_OFFSET (OrgOfonoVoiceCallManagerIface, forwarded),
1105 g_cclosure_marshal_generic,
1112 * org_ofono_voice_call_manager_emit_property_changed:
1113 * @object: A #OrgOfonoVoiceCallManager.
1114 * @arg_unnamed_arg0: Argument to pass with the signal.
1115 * @arg_unnamed_arg1: Argument to pass with the signal.
1117 * Emits the <link linkend="gdbus-signal-org-ofono-VoiceCallManager.PropertyChanged">"PropertyChanged"</link> D-Bus signal.
1120 org_ofono_voice_call_manager_emit_property_changed (
1121 OrgOfonoVoiceCallManager *object,
1122 const gchar *arg_unnamed_arg0,
1123 GVariant *arg_unnamed_arg1)
1125 g_signal_emit_by_name (object, "property-changed", arg_unnamed_arg0, arg_unnamed_arg1);
1129 * org_ofono_voice_call_manager_emit_call_added:
1130 * @object: A #OrgOfonoVoiceCallManager.
1131 * @arg_unnamed_arg0: Argument to pass with the signal.
1132 * @arg_unnamed_arg1: Argument to pass with the signal.
1134 * Emits the <link linkend="gdbus-signal-org-ofono-VoiceCallManager.CallAdded">"CallAdded"</link> D-Bus signal.
1137 org_ofono_voice_call_manager_emit_call_added (
1138 OrgOfonoVoiceCallManager *object,
1139 const gchar *arg_unnamed_arg0,
1140 GVariant *arg_unnamed_arg1)
1142 g_signal_emit_by_name (object, "call-added", arg_unnamed_arg0, arg_unnamed_arg1);
1146 * org_ofono_voice_call_manager_emit_call_removed:
1147 * @object: A #OrgOfonoVoiceCallManager.
1148 * @arg_unnamed_arg0: Argument to pass with the signal.
1150 * Emits the <link linkend="gdbus-signal-org-ofono-VoiceCallManager.CallRemoved">"CallRemoved"</link> D-Bus signal.
1153 org_ofono_voice_call_manager_emit_call_removed (
1154 OrgOfonoVoiceCallManager *object,
1155 const gchar *arg_unnamed_arg0)
1157 g_signal_emit_by_name (object, "call-removed", arg_unnamed_arg0);
1161 * org_ofono_voice_call_manager_emit_barring_active:
1162 * @object: A #OrgOfonoVoiceCallManager.
1163 * @arg_unnamed_arg0: Argument to pass with the signal.
1165 * Emits the <link linkend="gdbus-signal-org-ofono-VoiceCallManager.BarringActive">"BarringActive"</link> D-Bus signal.
1168 org_ofono_voice_call_manager_emit_barring_active (
1169 OrgOfonoVoiceCallManager *object,
1170 const gchar *arg_unnamed_arg0)
1172 g_signal_emit_by_name (object, "barring-active", arg_unnamed_arg0);
1176 * org_ofono_voice_call_manager_emit_forwarded:
1177 * @object: A #OrgOfonoVoiceCallManager.
1178 * @arg_unnamed_arg0: Argument to pass with the signal.
1180 * Emits the <link linkend="gdbus-signal-org-ofono-VoiceCallManager.Forwarded">"Forwarded"</link> D-Bus signal.
1183 org_ofono_voice_call_manager_emit_forwarded (
1184 OrgOfonoVoiceCallManager *object,
1185 const gchar *arg_unnamed_arg0)
1187 g_signal_emit_by_name (object, "forwarded", arg_unnamed_arg0);
1191 * org_ofono_voice_call_manager_call_get_properties:
1192 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1193 * @cancellable: (allow-none): A #GCancellable or %NULL.
1194 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1195 * @user_data: User data to pass to @callback.
1197 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.GetProperties">GetProperties()</link> D-Bus method on @proxy.
1198 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1199 * You can then call org_ofono_voice_call_manager_call_get_properties_finish() to get the result of the operation.
1201 * See org_ofono_voice_call_manager_call_get_properties_sync() for the synchronous, blocking version of this method.
1204 org_ofono_voice_call_manager_call_get_properties (
1205 OrgOfonoVoiceCallManager *proxy,
1206 GCancellable *cancellable,
1207 GAsyncReadyCallback callback,
1210 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1212 g_variant_new ("()"),
1213 G_DBUS_CALL_FLAGS_NONE,
1221 * org_ofono_voice_call_manager_call_get_properties_finish:
1222 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1223 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1224 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_get_properties().
1225 * @error: Return location for error or %NULL.
1227 * Finishes an operation started with org_ofono_voice_call_manager_call_get_properties().
1229 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1232 org_ofono_voice_call_manager_call_get_properties_finish (
1233 OrgOfonoVoiceCallManager *proxy,
1234 GVariant **out_unnamed_arg0,
1239 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1242 g_variant_get (_ret,
1245 g_variant_unref (_ret);
1247 return _ret != NULL;
1251 * org_ofono_voice_call_manager_call_get_properties_sync:
1252 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1253 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1254 * @cancellable: (allow-none): A #GCancellable or %NULL.
1255 * @error: Return location for error or %NULL.
1257 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.GetProperties">GetProperties()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1259 * See org_ofono_voice_call_manager_call_get_properties() for the asynchronous version of this method.
1261 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1264 org_ofono_voice_call_manager_call_get_properties_sync (
1265 OrgOfonoVoiceCallManager *proxy,
1266 GVariant **out_unnamed_arg0,
1267 GCancellable *cancellable,
1271 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1273 g_variant_new ("()"),
1274 G_DBUS_CALL_FLAGS_NONE,
1280 g_variant_get (_ret,
1283 g_variant_unref (_ret);
1285 return _ret != NULL;
1289 * org_ofono_voice_call_manager_call_dial:
1290 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1291 * @arg_unnamed_arg0: Argument to pass with the method invocation.
1292 * @arg_unnamed_arg1: Argument to pass with the method invocation.
1293 * @cancellable: (allow-none): A #GCancellable or %NULL.
1294 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1295 * @user_data: User data to pass to @callback.
1297 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.Dial">Dial()</link> D-Bus method on @proxy.
1298 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1299 * You can then call org_ofono_voice_call_manager_call_dial_finish() to get the result of the operation.
1301 * See org_ofono_voice_call_manager_call_dial_sync() for the synchronous, blocking version of this method.
1304 org_ofono_voice_call_manager_call_dial (
1305 OrgOfonoVoiceCallManager *proxy,
1306 const gchar *arg_unnamed_arg0,
1307 const gchar *arg_unnamed_arg1,
1308 GCancellable *cancellable,
1309 GAsyncReadyCallback callback,
1312 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1314 g_variant_new ("(ss)",
1317 G_DBUS_CALL_FLAGS_NONE,
1325 * org_ofono_voice_call_manager_call_dial_finish:
1326 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1327 * @out_unnamed_arg2: (out): Return location for return parameter or %NULL to ignore.
1328 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_dial().
1329 * @error: Return location for error or %NULL.
1331 * Finishes an operation started with org_ofono_voice_call_manager_call_dial().
1333 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1336 org_ofono_voice_call_manager_call_dial_finish (
1337 OrgOfonoVoiceCallManager *proxy,
1338 gchar **out_unnamed_arg2,
1343 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1346 g_variant_get (_ret,
1349 g_variant_unref (_ret);
1351 return _ret != NULL;
1355 * org_ofono_voice_call_manager_call_dial_sync:
1356 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1357 * @arg_unnamed_arg0: Argument to pass with the method invocation.
1358 * @arg_unnamed_arg1: Argument to pass with the method invocation.
1359 * @out_unnamed_arg2: (out): Return location for return parameter or %NULL to ignore.
1360 * @cancellable: (allow-none): A #GCancellable or %NULL.
1361 * @error: Return location for error or %NULL.
1363 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.Dial">Dial()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1365 * See org_ofono_voice_call_manager_call_dial() for the asynchronous version of this method.
1367 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1370 org_ofono_voice_call_manager_call_dial_sync (
1371 OrgOfonoVoiceCallManager *proxy,
1372 const gchar *arg_unnamed_arg0,
1373 const gchar *arg_unnamed_arg1,
1374 gchar **out_unnamed_arg2,
1375 GCancellable *cancellable,
1379 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1381 g_variant_new ("(ss)",
1384 G_DBUS_CALL_FLAGS_NONE,
1390 g_variant_get (_ret,
1393 g_variant_unref (_ret);
1395 return _ret != NULL;
1399 * org_ofono_voice_call_manager_call_transfer:
1400 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1401 * @cancellable: (allow-none): A #GCancellable or %NULL.
1402 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1403 * @user_data: User data to pass to @callback.
1405 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.Transfer">Transfer()</link> D-Bus method on @proxy.
1406 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1407 * You can then call org_ofono_voice_call_manager_call_transfer_finish() to get the result of the operation.
1409 * See org_ofono_voice_call_manager_call_transfer_sync() for the synchronous, blocking version of this method.
1412 org_ofono_voice_call_manager_call_transfer (
1413 OrgOfonoVoiceCallManager *proxy,
1414 GCancellable *cancellable,
1415 GAsyncReadyCallback callback,
1418 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1420 g_variant_new ("()"),
1421 G_DBUS_CALL_FLAGS_NONE,
1429 * org_ofono_voice_call_manager_call_transfer_finish:
1430 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1431 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_transfer().
1432 * @error: Return location for error or %NULL.
1434 * Finishes an operation started with org_ofono_voice_call_manager_call_transfer().
1436 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1439 org_ofono_voice_call_manager_call_transfer_finish (
1440 OrgOfonoVoiceCallManager *proxy,
1445 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1448 g_variant_get (_ret,
1450 g_variant_unref (_ret);
1452 return _ret != NULL;
1456 * org_ofono_voice_call_manager_call_transfer_sync:
1457 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1458 * @cancellable: (allow-none): A #GCancellable or %NULL.
1459 * @error: Return location for error or %NULL.
1461 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.Transfer">Transfer()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1463 * See org_ofono_voice_call_manager_call_transfer() for the asynchronous version of this method.
1465 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1468 org_ofono_voice_call_manager_call_transfer_sync (
1469 OrgOfonoVoiceCallManager *proxy,
1470 GCancellable *cancellable,
1474 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1476 g_variant_new ("()"),
1477 G_DBUS_CALL_FLAGS_NONE,
1483 g_variant_get (_ret,
1485 g_variant_unref (_ret);
1487 return _ret != NULL;
1491 * org_ofono_voice_call_manager_call_swap_calls:
1492 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1493 * @cancellable: (allow-none): A #GCancellable or %NULL.
1494 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1495 * @user_data: User data to pass to @callback.
1497 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.SwapCalls">SwapCalls()</link> D-Bus method on @proxy.
1498 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1499 * You can then call org_ofono_voice_call_manager_call_swap_calls_finish() to get the result of the operation.
1501 * See org_ofono_voice_call_manager_call_swap_calls_sync() for the synchronous, blocking version of this method.
1504 org_ofono_voice_call_manager_call_swap_calls (
1505 OrgOfonoVoiceCallManager *proxy,
1506 GCancellable *cancellable,
1507 GAsyncReadyCallback callback,
1510 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1512 g_variant_new ("()"),
1513 G_DBUS_CALL_FLAGS_NONE,
1521 * org_ofono_voice_call_manager_call_swap_calls_finish:
1522 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1523 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_swap_calls().
1524 * @error: Return location for error or %NULL.
1526 * Finishes an operation started with org_ofono_voice_call_manager_call_swap_calls().
1528 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1531 org_ofono_voice_call_manager_call_swap_calls_finish (
1532 OrgOfonoVoiceCallManager *proxy,
1537 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1540 g_variant_get (_ret,
1542 g_variant_unref (_ret);
1544 return _ret != NULL;
1548 * org_ofono_voice_call_manager_call_swap_calls_sync:
1549 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1550 * @cancellable: (allow-none): A #GCancellable or %NULL.
1551 * @error: Return location for error or %NULL.
1553 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.SwapCalls">SwapCalls()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1555 * See org_ofono_voice_call_manager_call_swap_calls() for the asynchronous version of this method.
1557 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1560 org_ofono_voice_call_manager_call_swap_calls_sync (
1561 OrgOfonoVoiceCallManager *proxy,
1562 GCancellable *cancellable,
1566 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1568 g_variant_new ("()"),
1569 G_DBUS_CALL_FLAGS_NONE,
1575 g_variant_get (_ret,
1577 g_variant_unref (_ret);
1579 return _ret != NULL;
1583 * org_ofono_voice_call_manager_call_release_and_answer:
1584 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1585 * @cancellable: (allow-none): A #GCancellable or %NULL.
1586 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1587 * @user_data: User data to pass to @callback.
1589 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.ReleaseAndAnswer">ReleaseAndAnswer()</link> D-Bus method on @proxy.
1590 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1591 * You can then call org_ofono_voice_call_manager_call_release_and_answer_finish() to get the result of the operation.
1593 * See org_ofono_voice_call_manager_call_release_and_answer_sync() for the synchronous, blocking version of this method.
1596 org_ofono_voice_call_manager_call_release_and_answer (
1597 OrgOfonoVoiceCallManager *proxy,
1598 GCancellable *cancellable,
1599 GAsyncReadyCallback callback,
1602 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1604 g_variant_new ("()"),
1605 G_DBUS_CALL_FLAGS_NONE,
1613 * org_ofono_voice_call_manager_call_release_and_answer_finish:
1614 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1615 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_release_and_answer().
1616 * @error: Return location for error or %NULL.
1618 * Finishes an operation started with org_ofono_voice_call_manager_call_release_and_answer().
1620 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1623 org_ofono_voice_call_manager_call_release_and_answer_finish (
1624 OrgOfonoVoiceCallManager *proxy,
1629 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1632 g_variant_get (_ret,
1634 g_variant_unref (_ret);
1636 return _ret != NULL;
1640 * org_ofono_voice_call_manager_call_release_and_answer_sync:
1641 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1642 * @cancellable: (allow-none): A #GCancellable or %NULL.
1643 * @error: Return location for error or %NULL.
1645 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.ReleaseAndAnswer">ReleaseAndAnswer()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1647 * See org_ofono_voice_call_manager_call_release_and_answer() for the asynchronous version of this method.
1649 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1652 org_ofono_voice_call_manager_call_release_and_answer_sync (
1653 OrgOfonoVoiceCallManager *proxy,
1654 GCancellable *cancellable,
1658 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1660 g_variant_new ("()"),
1661 G_DBUS_CALL_FLAGS_NONE,
1667 g_variant_get (_ret,
1669 g_variant_unref (_ret);
1671 return _ret != NULL;
1675 * org_ofono_voice_call_manager_call_hold_and_answer:
1676 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1677 * @cancellable: (allow-none): A #GCancellable or %NULL.
1678 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1679 * @user_data: User data to pass to @callback.
1681 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HoldAndAnswer">HoldAndAnswer()</link> D-Bus method on @proxy.
1682 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1683 * You can then call org_ofono_voice_call_manager_call_hold_and_answer_finish() to get the result of the operation.
1685 * See org_ofono_voice_call_manager_call_hold_and_answer_sync() for the synchronous, blocking version of this method.
1688 org_ofono_voice_call_manager_call_hold_and_answer (
1689 OrgOfonoVoiceCallManager *proxy,
1690 GCancellable *cancellable,
1691 GAsyncReadyCallback callback,
1694 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1696 g_variant_new ("()"),
1697 G_DBUS_CALL_FLAGS_NONE,
1705 * org_ofono_voice_call_manager_call_hold_and_answer_finish:
1706 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1707 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_hold_and_answer().
1708 * @error: Return location for error or %NULL.
1710 * Finishes an operation started with org_ofono_voice_call_manager_call_hold_and_answer().
1712 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1715 org_ofono_voice_call_manager_call_hold_and_answer_finish (
1716 OrgOfonoVoiceCallManager *proxy,
1721 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1724 g_variant_get (_ret,
1726 g_variant_unref (_ret);
1728 return _ret != NULL;
1732 * org_ofono_voice_call_manager_call_hold_and_answer_sync:
1733 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1734 * @cancellable: (allow-none): A #GCancellable or %NULL.
1735 * @error: Return location for error or %NULL.
1737 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HoldAndAnswer">HoldAndAnswer()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1739 * See org_ofono_voice_call_manager_call_hold_and_answer() for the asynchronous version of this method.
1741 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1744 org_ofono_voice_call_manager_call_hold_and_answer_sync (
1745 OrgOfonoVoiceCallManager *proxy,
1746 GCancellable *cancellable,
1750 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1752 g_variant_new ("()"),
1753 G_DBUS_CALL_FLAGS_NONE,
1759 g_variant_get (_ret,
1761 g_variant_unref (_ret);
1763 return _ret != NULL;
1767 * org_ofono_voice_call_manager_call_hangup_all:
1768 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1769 * @cancellable: (allow-none): A #GCancellable or %NULL.
1770 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1771 * @user_data: User data to pass to @callback.
1773 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HangupAll">HangupAll()</link> D-Bus method on @proxy.
1774 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1775 * You can then call org_ofono_voice_call_manager_call_hangup_all_finish() to get the result of the operation.
1777 * See org_ofono_voice_call_manager_call_hangup_all_sync() for the synchronous, blocking version of this method.
1780 org_ofono_voice_call_manager_call_hangup_all (
1781 OrgOfonoVoiceCallManager *proxy,
1782 GCancellable *cancellable,
1783 GAsyncReadyCallback callback,
1786 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1788 g_variant_new ("()"),
1789 G_DBUS_CALL_FLAGS_NONE,
1797 * org_ofono_voice_call_manager_call_hangup_all_finish:
1798 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1799 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_hangup_all().
1800 * @error: Return location for error or %NULL.
1802 * Finishes an operation started with org_ofono_voice_call_manager_call_hangup_all().
1804 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1807 org_ofono_voice_call_manager_call_hangup_all_finish (
1808 OrgOfonoVoiceCallManager *proxy,
1813 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1816 g_variant_get (_ret,
1818 g_variant_unref (_ret);
1820 return _ret != NULL;
1824 * org_ofono_voice_call_manager_call_hangup_all_sync:
1825 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1826 * @cancellable: (allow-none): A #GCancellable or %NULL.
1827 * @error: Return location for error or %NULL.
1829 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HangupAll">HangupAll()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1831 * See org_ofono_voice_call_manager_call_hangup_all() for the asynchronous version of this method.
1833 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1836 org_ofono_voice_call_manager_call_hangup_all_sync (
1837 OrgOfonoVoiceCallManager *proxy,
1838 GCancellable *cancellable,
1842 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1844 g_variant_new ("()"),
1845 G_DBUS_CALL_FLAGS_NONE,
1851 g_variant_get (_ret,
1853 g_variant_unref (_ret);
1855 return _ret != NULL;
1859 * org_ofono_voice_call_manager_call_private_chat:
1860 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1861 * @arg_unnamed_arg0: Argument to pass with the method invocation.
1862 * @cancellable: (allow-none): A #GCancellable or %NULL.
1863 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1864 * @user_data: User data to pass to @callback.
1866 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.PrivateChat">PrivateChat()</link> D-Bus method on @proxy.
1867 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1868 * You can then call org_ofono_voice_call_manager_call_private_chat_finish() to get the result of the operation.
1870 * See org_ofono_voice_call_manager_call_private_chat_sync() for the synchronous, blocking version of this method.
1873 org_ofono_voice_call_manager_call_private_chat (
1874 OrgOfonoVoiceCallManager *proxy,
1875 const gchar *arg_unnamed_arg0,
1876 GCancellable *cancellable,
1877 GAsyncReadyCallback callback,
1880 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1882 g_variant_new ("(o)",
1884 G_DBUS_CALL_FLAGS_NONE,
1892 * org_ofono_voice_call_manager_call_private_chat_finish:
1893 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1894 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1895 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_private_chat().
1896 * @error: Return location for error or %NULL.
1898 * Finishes an operation started with org_ofono_voice_call_manager_call_private_chat().
1900 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1903 org_ofono_voice_call_manager_call_private_chat_finish (
1904 OrgOfonoVoiceCallManager *proxy,
1905 gchar ***out_unnamed_arg1,
1910 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1913 g_variant_get (_ret,
1916 g_variant_unref (_ret);
1918 return _ret != NULL;
1922 * org_ofono_voice_call_manager_call_private_chat_sync:
1923 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1924 * @arg_unnamed_arg0: Argument to pass with the method invocation.
1925 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1926 * @cancellable: (allow-none): A #GCancellable or %NULL.
1927 * @error: Return location for error or %NULL.
1929 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.PrivateChat">PrivateChat()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1931 * See org_ofono_voice_call_manager_call_private_chat() for the asynchronous version of this method.
1933 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1936 org_ofono_voice_call_manager_call_private_chat_sync (
1937 OrgOfonoVoiceCallManager *proxy,
1938 const gchar *arg_unnamed_arg0,
1939 gchar ***out_unnamed_arg1,
1940 GCancellable *cancellable,
1944 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1946 g_variant_new ("(o)",
1948 G_DBUS_CALL_FLAGS_NONE,
1954 g_variant_get (_ret,
1957 g_variant_unref (_ret);
1959 return _ret != NULL;
1963 * org_ofono_voice_call_manager_call_create_multiparty:
1964 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1965 * @cancellable: (allow-none): A #GCancellable or %NULL.
1966 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1967 * @user_data: User data to pass to @callback.
1969 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.CreateMultiparty">CreateMultiparty()</link> D-Bus method on @proxy.
1970 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
1971 * You can then call org_ofono_voice_call_manager_call_create_multiparty_finish() to get the result of the operation.
1973 * See org_ofono_voice_call_manager_call_create_multiparty_sync() for the synchronous, blocking version of this method.
1976 org_ofono_voice_call_manager_call_create_multiparty (
1977 OrgOfonoVoiceCallManager *proxy,
1978 GCancellable *cancellable,
1979 GAsyncReadyCallback callback,
1982 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1984 g_variant_new ("()"),
1985 G_DBUS_CALL_FLAGS_NONE,
1993 * org_ofono_voice_call_manager_call_create_multiparty_finish:
1994 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
1995 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1996 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_create_multiparty().
1997 * @error: Return location for error or %NULL.
1999 * Finishes an operation started with org_ofono_voice_call_manager_call_create_multiparty().
2001 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2004 org_ofono_voice_call_manager_call_create_multiparty_finish (
2005 OrgOfonoVoiceCallManager *proxy,
2006 gchar ***out_unnamed_arg0,
2011 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2014 g_variant_get (_ret,
2017 g_variant_unref (_ret);
2019 return _ret != NULL;
2023 * org_ofono_voice_call_manager_call_create_multiparty_sync:
2024 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2025 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
2026 * @cancellable: (allow-none): A #GCancellable or %NULL.
2027 * @error: Return location for error or %NULL.
2029 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.CreateMultiparty">CreateMultiparty()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2031 * See org_ofono_voice_call_manager_call_create_multiparty() for the asynchronous version of this method.
2033 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2036 org_ofono_voice_call_manager_call_create_multiparty_sync (
2037 OrgOfonoVoiceCallManager *proxy,
2038 gchar ***out_unnamed_arg0,
2039 GCancellable *cancellable,
2043 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2045 g_variant_new ("()"),
2046 G_DBUS_CALL_FLAGS_NONE,
2052 g_variant_get (_ret,
2055 g_variant_unref (_ret);
2057 return _ret != NULL;
2061 * org_ofono_voice_call_manager_call_hangup_multiparty:
2062 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2063 * @cancellable: (allow-none): A #GCancellable or %NULL.
2064 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2065 * @user_data: User data to pass to @callback.
2067 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HangupMultiparty">HangupMultiparty()</link> D-Bus method on @proxy.
2068 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2069 * You can then call org_ofono_voice_call_manager_call_hangup_multiparty_finish() to get the result of the operation.
2071 * See org_ofono_voice_call_manager_call_hangup_multiparty_sync() for the synchronous, blocking version of this method.
2074 org_ofono_voice_call_manager_call_hangup_multiparty (
2075 OrgOfonoVoiceCallManager *proxy,
2076 GCancellable *cancellable,
2077 GAsyncReadyCallback callback,
2080 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2082 g_variant_new ("()"),
2083 G_DBUS_CALL_FLAGS_NONE,
2091 * org_ofono_voice_call_manager_call_hangup_multiparty_finish:
2092 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2093 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_hangup_multiparty().
2094 * @error: Return location for error or %NULL.
2096 * Finishes an operation started with org_ofono_voice_call_manager_call_hangup_multiparty().
2098 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2101 org_ofono_voice_call_manager_call_hangup_multiparty_finish (
2102 OrgOfonoVoiceCallManager *proxy,
2107 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2110 g_variant_get (_ret,
2112 g_variant_unref (_ret);
2114 return _ret != NULL;
2118 * org_ofono_voice_call_manager_call_hangup_multiparty_sync:
2119 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2120 * @cancellable: (allow-none): A #GCancellable or %NULL.
2121 * @error: Return location for error or %NULL.
2123 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HangupMultiparty">HangupMultiparty()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2125 * See org_ofono_voice_call_manager_call_hangup_multiparty() for the asynchronous version of this method.
2127 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2130 org_ofono_voice_call_manager_call_hangup_multiparty_sync (
2131 OrgOfonoVoiceCallManager *proxy,
2132 GCancellable *cancellable,
2136 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2138 g_variant_new ("()"),
2139 G_DBUS_CALL_FLAGS_NONE,
2145 g_variant_get (_ret,
2147 g_variant_unref (_ret);
2149 return _ret != NULL;
2153 * org_ofono_voice_call_manager_call_send_tones:
2154 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2155 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2156 * @cancellable: (allow-none): A #GCancellable or %NULL.
2157 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2158 * @user_data: User data to pass to @callback.
2160 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.SendTones">SendTones()</link> D-Bus method on @proxy.
2161 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2162 * You can then call org_ofono_voice_call_manager_call_send_tones_finish() to get the result of the operation.
2164 * See org_ofono_voice_call_manager_call_send_tones_sync() for the synchronous, blocking version of this method.
2167 org_ofono_voice_call_manager_call_send_tones (
2168 OrgOfonoVoiceCallManager *proxy,
2169 const gchar *arg_unnamed_arg0,
2170 GCancellable *cancellable,
2171 GAsyncReadyCallback callback,
2174 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2176 g_variant_new ("(s)",
2178 G_DBUS_CALL_FLAGS_NONE,
2186 * org_ofono_voice_call_manager_call_send_tones_finish:
2187 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2188 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_send_tones().
2189 * @error: Return location for error or %NULL.
2191 * Finishes an operation started with org_ofono_voice_call_manager_call_send_tones().
2193 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2196 org_ofono_voice_call_manager_call_send_tones_finish (
2197 OrgOfonoVoiceCallManager *proxy,
2202 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2205 g_variant_get (_ret,
2207 g_variant_unref (_ret);
2209 return _ret != NULL;
2213 * org_ofono_voice_call_manager_call_send_tones_sync:
2214 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2215 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2216 * @cancellable: (allow-none): A #GCancellable or %NULL.
2217 * @error: Return location for error or %NULL.
2219 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.SendTones">SendTones()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2221 * See org_ofono_voice_call_manager_call_send_tones() for the asynchronous version of this method.
2223 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2226 org_ofono_voice_call_manager_call_send_tones_sync (
2227 OrgOfonoVoiceCallManager *proxy,
2228 const gchar *arg_unnamed_arg0,
2229 GCancellable *cancellable,
2233 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2235 g_variant_new ("(s)",
2237 G_DBUS_CALL_FLAGS_NONE,
2243 g_variant_get (_ret,
2245 g_variant_unref (_ret);
2247 return _ret != NULL;
2251 * org_ofono_voice_call_manager_call_get_calls:
2252 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2253 * @cancellable: (allow-none): A #GCancellable or %NULL.
2254 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2255 * @user_data: User data to pass to @callback.
2257 * Asynchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.GetCalls">GetCalls()</link> D-Bus method on @proxy.
2258 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2259 * You can then call org_ofono_voice_call_manager_call_get_calls_finish() to get the result of the operation.
2261 * See org_ofono_voice_call_manager_call_get_calls_sync() for the synchronous, blocking version of this method.
2264 org_ofono_voice_call_manager_call_get_calls (
2265 OrgOfonoVoiceCallManager *proxy,
2266 GCancellable *cancellable,
2267 GAsyncReadyCallback callback,
2270 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2272 g_variant_new ("()"),
2273 G_DBUS_CALL_FLAGS_NONE,
2281 * org_ofono_voice_call_manager_call_get_calls_finish:
2282 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2283 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
2284 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_call_get_calls().
2285 * @error: Return location for error or %NULL.
2287 * Finishes an operation started with org_ofono_voice_call_manager_call_get_calls().
2289 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2292 org_ofono_voice_call_manager_call_get_calls_finish (
2293 OrgOfonoVoiceCallManager *proxy,
2294 GVariant **out_unnamed_arg0,
2299 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2302 g_variant_get (_ret,
2305 g_variant_unref (_ret);
2307 return _ret != NULL;
2311 * org_ofono_voice_call_manager_call_get_calls_sync:
2312 * @proxy: A #OrgOfonoVoiceCallManagerProxy.
2313 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
2314 * @cancellable: (allow-none): A #GCancellable or %NULL.
2315 * @error: Return location for error or %NULL.
2317 * Synchronously invokes the <link linkend="gdbus-method-org-ofono-VoiceCallManager.GetCalls">GetCalls()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2319 * See org_ofono_voice_call_manager_call_get_calls() for the asynchronous version of this method.
2321 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2324 org_ofono_voice_call_manager_call_get_calls_sync (
2325 OrgOfonoVoiceCallManager *proxy,
2326 GVariant **out_unnamed_arg0,
2327 GCancellable *cancellable,
2331 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2333 g_variant_new ("()"),
2334 G_DBUS_CALL_FLAGS_NONE,
2340 g_variant_get (_ret,
2343 g_variant_unref (_ret);
2345 return _ret != NULL;
2349 * org_ofono_voice_call_manager_complete_get_properties:
2350 * @object: A #OrgOfonoVoiceCallManager.
2351 * @invocation: (transfer full): A #GDBusMethodInvocation.
2352 * @unnamed_arg0: Parameter to return.
2354 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.GetProperties">GetProperties()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2356 * This method will free @invocation, you cannot use it afterwards.
2359 org_ofono_voice_call_manager_complete_get_properties (
2360 OrgOfonoVoiceCallManager *object,
2361 GDBusMethodInvocation *invocation,
2362 GVariant *unnamed_arg0)
2364 g_dbus_method_invocation_return_value (invocation,
2365 g_variant_new ("(@a{sv})",
2370 * org_ofono_voice_call_manager_complete_dial:
2371 * @object: A #OrgOfonoVoiceCallManager.
2372 * @invocation: (transfer full): A #GDBusMethodInvocation.
2373 * @unnamed_arg2: Parameter to return.
2375 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.Dial">Dial()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2377 * This method will free @invocation, you cannot use it afterwards.
2380 org_ofono_voice_call_manager_complete_dial (
2381 OrgOfonoVoiceCallManager *object,
2382 GDBusMethodInvocation *invocation,
2383 const gchar *unnamed_arg2)
2385 g_dbus_method_invocation_return_value (invocation,
2386 g_variant_new ("(o)",
2391 * org_ofono_voice_call_manager_complete_transfer:
2392 * @object: A #OrgOfonoVoiceCallManager.
2393 * @invocation: (transfer full): A #GDBusMethodInvocation.
2395 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.Transfer">Transfer()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2397 * This method will free @invocation, you cannot use it afterwards.
2400 org_ofono_voice_call_manager_complete_transfer (
2401 OrgOfonoVoiceCallManager *object,
2402 GDBusMethodInvocation *invocation)
2404 g_dbus_method_invocation_return_value (invocation,
2405 g_variant_new ("()"));
2409 * org_ofono_voice_call_manager_complete_swap_calls:
2410 * @object: A #OrgOfonoVoiceCallManager.
2411 * @invocation: (transfer full): A #GDBusMethodInvocation.
2413 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.SwapCalls">SwapCalls()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2415 * This method will free @invocation, you cannot use it afterwards.
2418 org_ofono_voice_call_manager_complete_swap_calls (
2419 OrgOfonoVoiceCallManager *object,
2420 GDBusMethodInvocation *invocation)
2422 g_dbus_method_invocation_return_value (invocation,
2423 g_variant_new ("()"));
2427 * org_ofono_voice_call_manager_complete_release_and_answer:
2428 * @object: A #OrgOfonoVoiceCallManager.
2429 * @invocation: (transfer full): A #GDBusMethodInvocation.
2431 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.ReleaseAndAnswer">ReleaseAndAnswer()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2433 * This method will free @invocation, you cannot use it afterwards.
2436 org_ofono_voice_call_manager_complete_release_and_answer (
2437 OrgOfonoVoiceCallManager *object,
2438 GDBusMethodInvocation *invocation)
2440 g_dbus_method_invocation_return_value (invocation,
2441 g_variant_new ("()"));
2445 * org_ofono_voice_call_manager_complete_hold_and_answer:
2446 * @object: A #OrgOfonoVoiceCallManager.
2447 * @invocation: (transfer full): A #GDBusMethodInvocation.
2449 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HoldAndAnswer">HoldAndAnswer()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2451 * This method will free @invocation, you cannot use it afterwards.
2454 org_ofono_voice_call_manager_complete_hold_and_answer (
2455 OrgOfonoVoiceCallManager *object,
2456 GDBusMethodInvocation *invocation)
2458 g_dbus_method_invocation_return_value (invocation,
2459 g_variant_new ("()"));
2463 * org_ofono_voice_call_manager_complete_hangup_all:
2464 * @object: A #OrgOfonoVoiceCallManager.
2465 * @invocation: (transfer full): A #GDBusMethodInvocation.
2467 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HangupAll">HangupAll()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2469 * This method will free @invocation, you cannot use it afterwards.
2472 org_ofono_voice_call_manager_complete_hangup_all (
2473 OrgOfonoVoiceCallManager *object,
2474 GDBusMethodInvocation *invocation)
2476 g_dbus_method_invocation_return_value (invocation,
2477 g_variant_new ("()"));
2481 * org_ofono_voice_call_manager_complete_private_chat:
2482 * @object: A #OrgOfonoVoiceCallManager.
2483 * @invocation: (transfer full): A #GDBusMethodInvocation.
2484 * @unnamed_arg1: Parameter to return.
2486 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.PrivateChat">PrivateChat()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2488 * This method will free @invocation, you cannot use it afterwards.
2491 org_ofono_voice_call_manager_complete_private_chat (
2492 OrgOfonoVoiceCallManager *object,
2493 GDBusMethodInvocation *invocation,
2494 const gchar *const *unnamed_arg1)
2496 g_dbus_method_invocation_return_value (invocation,
2497 g_variant_new ("(^ao)",
2502 * org_ofono_voice_call_manager_complete_create_multiparty:
2503 * @object: A #OrgOfonoVoiceCallManager.
2504 * @invocation: (transfer full): A #GDBusMethodInvocation.
2505 * @unnamed_arg0: Parameter to return.
2507 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.CreateMultiparty">CreateMultiparty()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2509 * This method will free @invocation, you cannot use it afterwards.
2512 org_ofono_voice_call_manager_complete_create_multiparty (
2513 OrgOfonoVoiceCallManager *object,
2514 GDBusMethodInvocation *invocation,
2515 const gchar *const *unnamed_arg0)
2517 g_dbus_method_invocation_return_value (invocation,
2518 g_variant_new ("(^ao)",
2523 * org_ofono_voice_call_manager_complete_hangup_multiparty:
2524 * @object: A #OrgOfonoVoiceCallManager.
2525 * @invocation: (transfer full): A #GDBusMethodInvocation.
2527 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.HangupMultiparty">HangupMultiparty()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2529 * This method will free @invocation, you cannot use it afterwards.
2532 org_ofono_voice_call_manager_complete_hangup_multiparty (
2533 OrgOfonoVoiceCallManager *object,
2534 GDBusMethodInvocation *invocation)
2536 g_dbus_method_invocation_return_value (invocation,
2537 g_variant_new ("()"));
2541 * org_ofono_voice_call_manager_complete_send_tones:
2542 * @object: A #OrgOfonoVoiceCallManager.
2543 * @invocation: (transfer full): A #GDBusMethodInvocation.
2545 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.SendTones">SendTones()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2547 * This method will free @invocation, you cannot use it afterwards.
2550 org_ofono_voice_call_manager_complete_send_tones (
2551 OrgOfonoVoiceCallManager *object,
2552 GDBusMethodInvocation *invocation)
2554 g_dbus_method_invocation_return_value (invocation,
2555 g_variant_new ("()"));
2559 * org_ofono_voice_call_manager_complete_get_calls:
2560 * @object: A #OrgOfonoVoiceCallManager.
2561 * @invocation: (transfer full): A #GDBusMethodInvocation.
2562 * @unnamed_arg0: Parameter to return.
2564 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-ofono-VoiceCallManager.GetCalls">GetCalls()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
2566 * This method will free @invocation, you cannot use it afterwards.
2569 org_ofono_voice_call_manager_complete_get_calls (
2570 OrgOfonoVoiceCallManager *object,
2571 GDBusMethodInvocation *invocation,
2572 GVariant *unnamed_arg0)
2574 g_dbus_method_invocation_return_value (invocation,
2575 g_variant_new ("(@a(oa{sv}))",
2579 /* ------------------------------------------------------------------------ */
2582 * OrgOfonoVoiceCallManagerProxy:
2584 * The #OrgOfonoVoiceCallManagerProxy structure contains only private data and should only be accessed using the provided API.
2588 * OrgOfonoVoiceCallManagerProxyClass:
2589 * @parent_class: The parent class.
2591 * Class structure for #OrgOfonoVoiceCallManagerProxy.
2594 struct _OrgOfonoVoiceCallManagerProxyPrivate
2599 static void org_ofono_voice_call_manager_proxy_iface_init (OrgOfonoVoiceCallManagerIface *iface);
2601 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2602 G_DEFINE_TYPE_WITH_CODE (OrgOfonoVoiceCallManagerProxy, org_ofono_voice_call_manager_proxy, G_TYPE_DBUS_PROXY,
2603 G_ADD_PRIVATE (OrgOfonoVoiceCallManagerProxy)
2604 G_IMPLEMENT_INTERFACE (TYPE_ORG_OFONO_VOICE_CALL_MANAGER, org_ofono_voice_call_manager_proxy_iface_init));
2607 G_DEFINE_TYPE_WITH_CODE (OrgOfonoVoiceCallManagerProxy, org_ofono_voice_call_manager_proxy, G_TYPE_DBUS_PROXY,
2608 G_IMPLEMENT_INTERFACE (TYPE_ORG_OFONO_VOICE_CALL_MANAGER, org_ofono_voice_call_manager_proxy_iface_init));
2612 org_ofono_voice_call_manager_proxy_finalize (GObject *object)
2614 OrgOfonoVoiceCallManagerProxy *proxy = ORG_OFONO_VOICE_CALL_MANAGER_PROXY (object);
2615 g_datalist_clear (&proxy->priv->qdata);
2616 G_OBJECT_CLASS (org_ofono_voice_call_manager_proxy_parent_class)->finalize (object);
2620 org_ofono_voice_call_manager_proxy_get_property (GObject *object,
2623 GParamSpec *pspec G_GNUC_UNUSED)
2628 org_ofono_voice_call_manager_proxy_set_property (GObject *object,
2630 const GValue *value,
2631 GParamSpec *pspec G_GNUC_UNUSED)
2636 org_ofono_voice_call_manager_proxy_g_signal (GDBusProxy *proxy,
2637 const gchar *sender_name G_GNUC_UNUSED,
2638 const gchar *signal_name,
2639 GVariant *parameters)
2641 _ExtendedGDBusSignalInfo *info;
2648 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_ofono_voice_call_manager_interface_info.parent_struct, signal_name);
2651 num_params = g_variant_n_children (parameters);
2652 paramv = g_new0 (GValue, num_params + 1);
2653 g_value_init (¶mv[0], TYPE_ORG_OFONO_VOICE_CALL_MANAGER);
2654 g_value_set_object (¶mv[0], proxy);
2655 g_variant_iter_init (&iter, parameters);
2657 while ((child = g_variant_iter_next_value (&iter)) != NULL)
2659 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
2660 if (arg_info->use_gvariant)
2662 g_value_init (¶mv[n], G_TYPE_VARIANT);
2663 g_value_set_variant (¶mv[n], child);
2667 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2668 g_variant_unref (child);
2670 signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_OFONO_VOICE_CALL_MANAGER);
2671 g_signal_emitv (paramv, signal_id, 0, NULL);
2672 for (n = 0; n < num_params + 1; n++)
2673 g_value_unset (¶mv[n]);
2678 org_ofono_voice_call_manager_proxy_g_properties_changed (GDBusProxy *_proxy,
2679 GVariant *changed_properties,
2680 const gchar *const *invalidated_properties)
2682 OrgOfonoVoiceCallManagerProxy *proxy = ORG_OFONO_VOICE_CALL_MANAGER_PROXY (_proxy);
2686 _ExtendedGDBusPropertyInfo *info;
2687 g_variant_get (changed_properties, "a{sv}", &iter);
2688 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
2690 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_ofono_voice_call_manager_interface_info.parent_struct, key);
2691 g_datalist_remove_data (&proxy->priv->qdata, key);
2693 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2695 g_variant_iter_free (iter);
2696 for (n = 0; invalidated_properties[n] != NULL; n++)
2698 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_ofono_voice_call_manager_interface_info.parent_struct, invalidated_properties[n]);
2699 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
2701 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2706 org_ofono_voice_call_manager_proxy_init (OrgOfonoVoiceCallManagerProxy *proxy)
2708 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2709 proxy->priv = org_ofono_voice_call_manager_proxy_get_instance_private (proxy);
2711 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_OFONO_VOICE_CALL_MANAGER_PROXY, OrgOfonoVoiceCallManagerProxyPrivate);
2714 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_ofono_voice_call_manager_interface_info ());
2718 org_ofono_voice_call_manager_proxy_class_init (OrgOfonoVoiceCallManagerProxyClass *klass)
2720 GObjectClass *gobject_class;
2721 GDBusProxyClass *proxy_class;
2723 gobject_class = G_OBJECT_CLASS (klass);
2724 gobject_class->finalize = org_ofono_voice_call_manager_proxy_finalize;
2725 gobject_class->get_property = org_ofono_voice_call_manager_proxy_get_property;
2726 gobject_class->set_property = org_ofono_voice_call_manager_proxy_set_property;
2728 proxy_class = G_DBUS_PROXY_CLASS (klass);
2729 proxy_class->g_signal = org_ofono_voice_call_manager_proxy_g_signal;
2730 proxy_class->g_properties_changed = org_ofono_voice_call_manager_proxy_g_properties_changed;
2732 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
2733 g_type_class_add_private (klass, sizeof (OrgOfonoVoiceCallManagerProxyPrivate));
2738 org_ofono_voice_call_manager_proxy_iface_init (OrgOfonoVoiceCallManagerIface *iface)
2743 * org_ofono_voice_call_manager_proxy_new:
2744 * @connection: A #GDBusConnection.
2745 * @flags: Flags from the #GDBusProxyFlags enumeration.
2746 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2747 * @object_path: An object path.
2748 * @cancellable: (allow-none): A #GCancellable or %NULL.
2749 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2750 * @user_data: User data to pass to @callback.
2752 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-ofono-VoiceCallManager.top_of_page">org.ofono.VoiceCallManager</link>. See g_dbus_proxy_new() for more details.
2754 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2755 * You can then call org_ofono_voice_call_manager_proxy_new_finish() to get the result of the operation.
2757 * See org_ofono_voice_call_manager_proxy_new_sync() for the synchronous, blocking version of this constructor.
2760 org_ofono_voice_call_manager_proxy_new (
2761 GDBusConnection *connection,
2762 GDBusProxyFlags flags,
2764 const gchar *object_path,
2765 GCancellable *cancellable,
2766 GAsyncReadyCallback callback,
2769 g_async_initable_new_async (TYPE_ORG_OFONO_VOICE_CALL_MANAGER_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.ofono.VoiceCallManager", NULL);
2773 * org_ofono_voice_call_manager_proxy_new_finish:
2774 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_proxy_new().
2775 * @error: Return location for error or %NULL
2777 * Finishes an operation started with org_ofono_voice_call_manager_proxy_new().
2779 * Returns: (transfer full) (type OrgOfonoVoiceCallManagerProxy): The constructed proxy object or %NULL if @error is set.
2781 OrgOfonoVoiceCallManager *
2782 org_ofono_voice_call_manager_proxy_new_finish (
2787 GObject *source_object;
2788 source_object = g_async_result_get_source_object (res);
2789 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2790 g_object_unref (source_object);
2792 return ORG_OFONO_VOICE_CALL_MANAGER (ret);
2798 * org_ofono_voice_call_manager_proxy_new_sync:
2799 * @connection: A #GDBusConnection.
2800 * @flags: Flags from the #GDBusProxyFlags enumeration.
2801 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2802 * @object_path: An object path.
2803 * @cancellable: (allow-none): A #GCancellable or %NULL.
2804 * @error: Return location for error or %NULL
2806 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-ofono-VoiceCallManager.top_of_page">org.ofono.VoiceCallManager</link>. See g_dbus_proxy_new_sync() for more details.
2808 * The calling thread is blocked until a reply is received.
2810 * See org_ofono_voice_call_manager_proxy_new() for the asynchronous version of this constructor.
2812 * Returns: (transfer full) (type OrgOfonoVoiceCallManagerProxy): The constructed proxy object or %NULL if @error is set.
2814 OrgOfonoVoiceCallManager *
2815 org_ofono_voice_call_manager_proxy_new_sync (
2816 GDBusConnection *connection,
2817 GDBusProxyFlags flags,
2819 const gchar *object_path,
2820 GCancellable *cancellable,
2824 ret = g_initable_new (TYPE_ORG_OFONO_VOICE_CALL_MANAGER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.ofono.VoiceCallManager", NULL);
2826 return ORG_OFONO_VOICE_CALL_MANAGER (ret);
2833 * org_ofono_voice_call_manager_proxy_new_for_bus:
2834 * @bus_type: A #GBusType.
2835 * @flags: Flags from the #GDBusProxyFlags enumeration.
2836 * @name: A bus name (well-known or unique).
2837 * @object_path: An object path.
2838 * @cancellable: (allow-none): A #GCancellable or %NULL.
2839 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2840 * @user_data: User data to pass to @callback.
2842 * Like org_ofono_voice_call_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
2844 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
2845 * You can then call org_ofono_voice_call_manager_proxy_new_for_bus_finish() to get the result of the operation.
2847 * See org_ofono_voice_call_manager_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
2850 org_ofono_voice_call_manager_proxy_new_for_bus (
2852 GDBusProxyFlags flags,
2854 const gchar *object_path,
2855 GCancellable *cancellable,
2856 GAsyncReadyCallback callback,
2859 g_async_initable_new_async (TYPE_ORG_OFONO_VOICE_CALL_MANAGER_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.ofono.VoiceCallManager", NULL);
2863 * org_ofono_voice_call_manager_proxy_new_for_bus_finish:
2864 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_ofono_voice_call_manager_proxy_new_for_bus().
2865 * @error: Return location for error or %NULL
2867 * Finishes an operation started with org_ofono_voice_call_manager_proxy_new_for_bus().
2869 * Returns: (transfer full) (type OrgOfonoVoiceCallManagerProxy): The constructed proxy object or %NULL if @error is set.
2871 OrgOfonoVoiceCallManager *
2872 org_ofono_voice_call_manager_proxy_new_for_bus_finish (
2877 GObject *source_object;
2878 source_object = g_async_result_get_source_object (res);
2879 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2880 g_object_unref (source_object);
2882 return ORG_OFONO_VOICE_CALL_MANAGER (ret);
2888 * org_ofono_voice_call_manager_proxy_new_for_bus_sync:
2889 * @bus_type: A #GBusType.
2890 * @flags: Flags from the #GDBusProxyFlags enumeration.
2891 * @name: A bus name (well-known or unique).
2892 * @object_path: An object path.
2893 * @cancellable: (allow-none): A #GCancellable or %NULL.
2894 * @error: Return location for error or %NULL
2896 * Like org_ofono_voice_call_manager_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
2898 * The calling thread is blocked until a reply is received.
2900 * See org_ofono_voice_call_manager_proxy_new_for_bus() for the asynchronous version of this constructor.
2902 * Returns: (transfer full) (type OrgOfonoVoiceCallManagerProxy): The constructed proxy object or %NULL if @error is set.
2904 OrgOfonoVoiceCallManager *
2905 org_ofono_voice_call_manager_proxy_new_for_bus_sync (
2907 GDBusProxyFlags flags,
2909 const gchar *object_path,
2910 GCancellable *cancellable,
2914 ret = g_initable_new (TYPE_ORG_OFONO_VOICE_CALL_MANAGER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.ofono.VoiceCallManager", NULL);
2916 return ORG_OFONO_VOICE_CALL_MANAGER (ret);
2922 /* ------------------------------------------------------------------------ */
2925 * OrgOfonoVoiceCallManagerSkeleton:
2927 * The #OrgOfonoVoiceCallManagerSkeleton structure contains only private data and should only be accessed using the provided API.
2931 * OrgOfonoVoiceCallManagerSkeletonClass:
2932 * @parent_class: The parent class.
2934 * Class structure for #OrgOfonoVoiceCallManagerSkeleton.
2937 struct _OrgOfonoVoiceCallManagerSkeletonPrivate
2940 GList *changed_properties;
2941 GSource *changed_properties_idle_source;
2942 GMainContext *context;
2947 _org_ofono_voice_call_manager_skeleton_handle_method_call (
2948 GDBusConnection *connection G_GNUC_UNUSED,
2949 const gchar *sender G_GNUC_UNUSED,
2950 const gchar *object_path G_GNUC_UNUSED,
2951 const gchar *interface_name,
2952 const gchar *method_name,
2953 GVariant *parameters,
2954 GDBusMethodInvocation *invocation,
2957 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (user_data);
2958 _ExtendedGDBusMethodInfo *info;
2966 GValue return_value = G_VALUE_INIT;
2967 info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2968 g_assert (info != NULL);
2969 num_params = g_variant_n_children (parameters);
2970 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
2972 g_value_init (¶mv[n], TYPE_ORG_OFONO_VOICE_CALL_MANAGER);
2973 g_value_set_object (¶mv[n++], skeleton);
2974 g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2975 g_value_set_object (¶mv[n++], invocation);
2976 if (info->pass_fdlist)
2979 g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
2980 g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2982 g_assert_not_reached ();
2985 g_variant_iter_init (&iter, parameters);
2986 while ((child = g_variant_iter_next_value (&iter)) != NULL)
2988 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2989 if (arg_info->use_gvariant)
2991 g_value_init (¶mv[n], G_TYPE_VARIANT);
2992 g_value_set_variant (¶mv[n], child);
2996 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
2997 g_variant_unref (child);
2999 signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_OFONO_VOICE_CALL_MANAGER);
3000 g_value_init (&return_value, G_TYPE_BOOLEAN);
3001 g_signal_emitv (paramv, signal_id, 0, &return_value);
3002 if (!g_value_get_boolean (&return_value))
3003 g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
3004 g_value_unset (&return_value);
3005 for (n = 0; n < num_params + num_extra; n++)
3006 g_value_unset (¶mv[n]);
3011 _org_ofono_voice_call_manager_skeleton_handle_get_property (
3012 GDBusConnection *connection G_GNUC_UNUSED,
3013 const gchar *sender G_GNUC_UNUSED,
3014 const gchar *object_path G_GNUC_UNUSED,
3015 const gchar *interface_name G_GNUC_UNUSED,
3016 const gchar *property_name,
3020 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (user_data);
3021 GValue value = G_VALUE_INIT;
3023 _ExtendedGDBusPropertyInfo *info;
3026 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_ofono_voice_call_manager_interface_info.parent_struct, property_name);
3027 g_assert (info != NULL);
3028 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
3031 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
3035 g_value_init (&value, pspec->value_type);
3036 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
3037 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
3038 g_value_unset (&value);
3044 _org_ofono_voice_call_manager_skeleton_handle_set_property (
3045 GDBusConnection *connection G_GNUC_UNUSED,
3046 const gchar *sender G_GNUC_UNUSED,
3047 const gchar *object_path G_GNUC_UNUSED,
3048 const gchar *interface_name G_GNUC_UNUSED,
3049 const gchar *property_name,
3054 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (user_data);
3055 GValue value = G_VALUE_INIT;
3057 _ExtendedGDBusPropertyInfo *info;
3060 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_ofono_voice_call_manager_interface_info.parent_struct, property_name);
3061 g_assert (info != NULL);
3062 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
3065 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
3069 if (info->use_gvariant)
3070 g_value_set_variant (&value, variant);
3072 g_dbus_gvariant_to_gvalue (variant, &value);
3073 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
3074 g_value_unset (&value);
3080 static const GDBusInterfaceVTable _org_ofono_voice_call_manager_skeleton_vtable =
3082 _org_ofono_voice_call_manager_skeleton_handle_method_call,
3083 _org_ofono_voice_call_manager_skeleton_handle_get_property,
3084 _org_ofono_voice_call_manager_skeleton_handle_set_property,
3088 static GDBusInterfaceInfo *
3089 org_ofono_voice_call_manager_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
3091 return org_ofono_voice_call_manager_interface_info ();
3094 static GDBusInterfaceVTable *
3095 org_ofono_voice_call_manager_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
3097 return (GDBusInterfaceVTable *) &_org_ofono_voice_call_manager_skeleton_vtable;
3101 org_ofono_voice_call_manager_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
3103 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (_skeleton);
3105 GVariantBuilder builder;
3107 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
3108 if (_org_ofono_voice_call_manager_interface_info.parent_struct.properties == NULL)
3110 for (n = 0; _org_ofono_voice_call_manager_interface_info.parent_struct.properties[n] != NULL; n++)
3112 GDBusPropertyInfo *info = _org_ofono_voice_call_manager_interface_info.parent_struct.properties[n];
3113 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
3116 value = _org_ofono_voice_call_manager_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.ofono.VoiceCallManager", info->name, NULL, skeleton);
3119 g_variant_take_ref (value);
3120 g_variant_builder_add (&builder, "{sv}", info->name, value);
3121 g_variant_unref (value);
3126 return g_variant_builder_end (&builder);
3130 org_ofono_voice_call_manager_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
3135 _org_ofono_voice_call_manager_on_signal_property_changed (
3136 OrgOfonoVoiceCallManager *object,
3137 const gchar *arg_unnamed_arg0,
3138 GVariant *arg_unnamed_arg1)
3140 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (object);
3142 GList *connections, *l;
3143 GVariant *signal_variant;
3144 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3146 signal_variant = g_variant_ref_sink (g_variant_new ("(s@v)",
3149 for (l = connections; l != NULL; l = l->next)
3151 GDBusConnection *connection = l->data;
3152 g_dbus_connection_emit_signal (connection,
3153 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.ofono.VoiceCallManager", "PropertyChanged",
3154 signal_variant, NULL);
3156 g_variant_unref (signal_variant);
3157 g_list_free_full (connections, g_object_unref);
3161 _org_ofono_voice_call_manager_on_signal_call_added (
3162 OrgOfonoVoiceCallManager *object,
3163 const gchar *arg_unnamed_arg0,
3164 GVariant *arg_unnamed_arg1)
3166 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (object);
3168 GList *connections, *l;
3169 GVariant *signal_variant;
3170 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3172 signal_variant = g_variant_ref_sink (g_variant_new ("(o@a{sv})",
3175 for (l = connections; l != NULL; l = l->next)
3177 GDBusConnection *connection = l->data;
3178 g_dbus_connection_emit_signal (connection,
3179 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.ofono.VoiceCallManager", "CallAdded",
3180 signal_variant, NULL);
3182 g_variant_unref (signal_variant);
3183 g_list_free_full (connections, g_object_unref);
3187 _org_ofono_voice_call_manager_on_signal_call_removed (
3188 OrgOfonoVoiceCallManager *object,
3189 const gchar *arg_unnamed_arg0)
3191 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (object);
3193 GList *connections, *l;
3194 GVariant *signal_variant;
3195 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3197 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
3199 for (l = connections; l != NULL; l = l->next)
3201 GDBusConnection *connection = l->data;
3202 g_dbus_connection_emit_signal (connection,
3203 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.ofono.VoiceCallManager", "CallRemoved",
3204 signal_variant, NULL);
3206 g_variant_unref (signal_variant);
3207 g_list_free_full (connections, g_object_unref);
3211 _org_ofono_voice_call_manager_on_signal_barring_active (
3212 OrgOfonoVoiceCallManager *object,
3213 const gchar *arg_unnamed_arg0)
3215 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (object);
3217 GList *connections, *l;
3218 GVariant *signal_variant;
3219 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3221 signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
3223 for (l = connections; l != NULL; l = l->next)
3225 GDBusConnection *connection = l->data;
3226 g_dbus_connection_emit_signal (connection,
3227 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.ofono.VoiceCallManager", "BarringActive",
3228 signal_variant, NULL);
3230 g_variant_unref (signal_variant);
3231 g_list_free_full (connections, g_object_unref);
3235 _org_ofono_voice_call_manager_on_signal_forwarded (
3236 OrgOfonoVoiceCallManager *object,
3237 const gchar *arg_unnamed_arg0)
3239 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (object);
3241 GList *connections, *l;
3242 GVariant *signal_variant;
3243 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3245 signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
3247 for (l = connections; l != NULL; l = l->next)
3249 GDBusConnection *connection = l->data;
3250 g_dbus_connection_emit_signal (connection,
3251 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.ofono.VoiceCallManager", "Forwarded",
3252 signal_variant, NULL);
3254 g_variant_unref (signal_variant);
3255 g_list_free_full (connections, g_object_unref);
3258 static void org_ofono_voice_call_manager_skeleton_iface_init (OrgOfonoVoiceCallManagerIface *iface);
3259 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
3260 G_DEFINE_TYPE_WITH_CODE (OrgOfonoVoiceCallManagerSkeleton, org_ofono_voice_call_manager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
3261 G_ADD_PRIVATE (OrgOfonoVoiceCallManagerSkeleton)
3262 G_IMPLEMENT_INTERFACE (TYPE_ORG_OFONO_VOICE_CALL_MANAGER, org_ofono_voice_call_manager_skeleton_iface_init));
3265 G_DEFINE_TYPE_WITH_CODE (OrgOfonoVoiceCallManagerSkeleton, org_ofono_voice_call_manager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
3266 G_IMPLEMENT_INTERFACE (TYPE_ORG_OFONO_VOICE_CALL_MANAGER, org_ofono_voice_call_manager_skeleton_iface_init));
3270 org_ofono_voice_call_manager_skeleton_finalize (GObject *object)
3272 OrgOfonoVoiceCallManagerSkeleton *skeleton = ORG_OFONO_VOICE_CALL_MANAGER_SKELETON (object);
3273 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
3274 if (skeleton->priv->changed_properties_idle_source != NULL)
3275 g_source_destroy (skeleton->priv->changed_properties_idle_source);
3276 g_main_context_unref (skeleton->priv->context);
3277 g_mutex_clear (&skeleton->priv->lock);
3278 G_OBJECT_CLASS (org_ofono_voice_call_manager_skeleton_parent_class)->finalize (object);
3282 org_ofono_voice_call_manager_skeleton_init (OrgOfonoVoiceCallManagerSkeleton *skeleton)
3284 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
3285 skeleton->priv = org_ofono_voice_call_manager_skeleton_get_instance_private (skeleton);
3287 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_OFONO_VOICE_CALL_MANAGER_SKELETON, OrgOfonoVoiceCallManagerSkeletonPrivate);
3290 g_mutex_init (&skeleton->priv->lock);
3291 skeleton->priv->context = g_main_context_ref_thread_default ();
3295 org_ofono_voice_call_manager_skeleton_class_init (OrgOfonoVoiceCallManagerSkeletonClass *klass)
3297 GObjectClass *gobject_class;
3298 GDBusInterfaceSkeletonClass *skeleton_class;
3300 gobject_class = G_OBJECT_CLASS (klass);
3301 gobject_class->finalize = org_ofono_voice_call_manager_skeleton_finalize;
3303 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
3304 skeleton_class->get_info = org_ofono_voice_call_manager_skeleton_dbus_interface_get_info;
3305 skeleton_class->get_properties = org_ofono_voice_call_manager_skeleton_dbus_interface_get_properties;
3306 skeleton_class->flush = org_ofono_voice_call_manager_skeleton_dbus_interface_flush;
3307 skeleton_class->get_vtable = org_ofono_voice_call_manager_skeleton_dbus_interface_get_vtable;
3309 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
3310 g_type_class_add_private (klass, sizeof (OrgOfonoVoiceCallManagerSkeletonPrivate));
3315 org_ofono_voice_call_manager_skeleton_iface_init (OrgOfonoVoiceCallManagerIface *iface)
3317 iface->property_changed = _org_ofono_voice_call_manager_on_signal_property_changed;
3318 iface->call_added = _org_ofono_voice_call_manager_on_signal_call_added;
3319 iface->call_removed = _org_ofono_voice_call_manager_on_signal_call_removed;
3320 iface->barring_active = _org_ofono_voice_call_manager_on_signal_barring_active;
3321 iface->forwarded = _org_ofono_voice_call_manager_on_signal_forwarded;
3325 * org_ofono_voice_call_manager_skeleton_new:
3327 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-ofono-VoiceCallManager.top_of_page">org.ofono.VoiceCallManager</link>.
3329 * Returns: (transfer full) (type OrgOfonoVoiceCallManagerSkeleton): The skeleton object.
3331 OrgOfonoVoiceCallManager *
3332 org_ofono_voice_call_manager_skeleton_new (void)
3334 return ORG_OFONO_VOICE_CALL_MANAGER (g_object_new (TYPE_ORG_OFONO_VOICE_CALL_MANAGER_SKELETON, NULL));