2 * Generated by gdbus-codegen 2.32.1. DO NOT EDIT.
4 * The license of this code is the same as for the source it was derived from.
11 #include "bluetoothadapterproxy.h"
14 # include <gio/gunixfdlist.h>
19 GDBusArgInfo parent_struct;
20 gboolean use_gvariant;
21 } _ExtendedGDBusArgInfo;
25 GDBusMethodInfo parent_struct;
26 const gchar *signal_name;
28 } _ExtendedGDBusMethodInfo;
32 GDBusSignalInfo parent_struct;
33 const gchar *signal_name;
34 } _ExtendedGDBusSignalInfo;
38 GDBusPropertyInfo parent_struct;
39 const gchar *hyphen_name;
40 gboolean use_gvariant;
41 } _ExtendedGDBusPropertyInfo;
45 GDBusInterfaceInfo parent_struct;
46 const gchar *hyphen_name;
47 } _ExtendedGDBusInterfaceInfo;
51 const _ExtendedGDBusPropertyInfo *info;
53 GValue orig_value; /* the value before the change */
57 _changed_property_free (ChangedProperty *data)
59 g_value_unset (&data->orig_value);
64 _g_strv_equal0 (gchar **a, gchar **b)
68 if (a == NULL && b == NULL)
73 if (a == NULL || b == NULL)
75 if (g_strv_length (a) != g_strv_length (b))
77 for (n = 0; a[n] != NULL; n++)
78 if (g_strcmp0 (a[n], b[n]) != 0)
86 _g_variant_equal0 (GVariant *a, GVariant *b)
89 if (a == NULL && b == NULL)
94 if (a == NULL || b == NULL)
96 ret = g_variant_equal (a, b);
101 G_GNUC_UNUSED static gboolean
102 _g_value_equal (const GValue *a, const GValue *b)
104 gboolean ret = FALSE;
105 g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
106 switch (G_VALUE_TYPE (a))
109 ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
112 ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
115 ret = (g_value_get_int (a) == g_value_get_int (b));
118 ret = (g_value_get_uint (a) == g_value_get_uint (b));
121 ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
124 ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
127 ret = (g_value_get_double (a) == g_value_get_double (b));
130 ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
133 ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
136 if (G_VALUE_TYPE (a) == G_TYPE_STRV)
137 ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
139 g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
145 /* ------------------------------------------------------------------------
146 * Code for interface org.bluez.Adapter
147 * ------------------------------------------------------------------------
151 * SECTION:OrgBluezAdapter
152 * @title: OrgBluezAdapter
153 * @short_description: Generated C code for the org.bluez.Adapter D-Bus interface
155 * This section contains code for working with the <link linkend="gdbus-interface-org-bluez-Adapter.top_of_page">org.bluez.Adapter</link> D-Bus interface in C.
158 /* ---- Introspection data for org.bluez.Adapter ---- */
160 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_get_properties_OUT_ARG_unnamed_arg0 =
171 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_get_properties_OUT_ARG_pointers[] =
173 &_org_bluez_adapter_method_info_get_properties_OUT_ARG_unnamed_arg0,
177 static const GDBusAnnotationInfo _org_bluez_adapter_method_get_properties_annotation_info_0 =
180 "com.trolltech.QtDBus.QtTypeName.Out0",
185 static const GDBusAnnotationInfo * const _org_bluez_adapter_method_get_properties_annotation_info_pointers[] =
187 &_org_bluez_adapter_method_get_properties_annotation_info_0,
191 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_get_properties =
197 (GDBusArgInfo **) &_org_bluez_adapter_method_info_get_properties_OUT_ARG_pointers,
198 (GDBusAnnotationInfo **) &_org_bluez_adapter_method_get_properties_annotation_info_pointers
200 "handle-get-properties",
204 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_set_property_IN_ARG_unnamed_arg0 =
215 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_set_property_IN_ARG_unnamed_arg1 =
226 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_set_property_IN_ARG_pointers[] =
228 &_org_bluez_adapter_method_info_set_property_IN_ARG_unnamed_arg0,
229 &_org_bluez_adapter_method_info_set_property_IN_ARG_unnamed_arg1,
233 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_set_property =
238 (GDBusArgInfo **) &_org_bluez_adapter_method_info_set_property_IN_ARG_pointers,
242 "handle-set-property",
246 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_request_session =
255 "handle-request-session",
259 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_release_session =
268 "handle-release-session",
272 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_start_discovery =
281 "handle-start-discovery",
285 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_stop_discovery =
294 "handle-stop-discovery",
298 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_list_devices_OUT_ARG_unnamed_arg0 =
309 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_list_devices_OUT_ARG_pointers[] =
311 &_org_bluez_adapter_method_info_list_devices_OUT_ARG_unnamed_arg0,
315 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_list_devices =
321 (GDBusArgInfo **) &_org_bluez_adapter_method_info_list_devices_OUT_ARG_pointers,
324 "handle-list-devices",
328 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_create_device_IN_ARG_unnamed_arg0 =
339 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_create_device_IN_ARG_pointers[] =
341 &_org_bluez_adapter_method_info_create_device_IN_ARG_unnamed_arg0,
345 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_create_device_OUT_ARG_unnamed_arg1 =
356 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_create_device_OUT_ARG_pointers[] =
358 &_org_bluez_adapter_method_info_create_device_OUT_ARG_unnamed_arg1,
362 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_create_device =
367 (GDBusArgInfo **) &_org_bluez_adapter_method_info_create_device_IN_ARG_pointers,
368 (GDBusArgInfo **) &_org_bluez_adapter_method_info_create_device_OUT_ARG_pointers,
371 "handle-create-device",
375 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_create_paired_device_IN_ARG_unnamed_arg0 =
386 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_create_paired_device_IN_ARG_unnamed_arg1 =
397 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_create_paired_device_IN_ARG_unnamed_arg2 =
408 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_create_paired_device_IN_ARG_pointers[] =
410 &_org_bluez_adapter_method_info_create_paired_device_IN_ARG_unnamed_arg0,
411 &_org_bluez_adapter_method_info_create_paired_device_IN_ARG_unnamed_arg1,
412 &_org_bluez_adapter_method_info_create_paired_device_IN_ARG_unnamed_arg2,
416 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_create_paired_device_OUT_ARG_unnamed_arg3 =
427 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_create_paired_device_OUT_ARG_pointers[] =
429 &_org_bluez_adapter_method_info_create_paired_device_OUT_ARG_unnamed_arg3,
433 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_create_paired_device =
437 "CreatePairedDevice",
438 (GDBusArgInfo **) &_org_bluez_adapter_method_info_create_paired_device_IN_ARG_pointers,
439 (GDBusArgInfo **) &_org_bluez_adapter_method_info_create_paired_device_OUT_ARG_pointers,
442 "handle-create-paired-device",
446 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_cancel_device_creation_IN_ARG_unnamed_arg0 =
457 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_cancel_device_creation_IN_ARG_pointers[] =
459 &_org_bluez_adapter_method_info_cancel_device_creation_IN_ARG_unnamed_arg0,
463 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_cancel_device_creation =
467 "CancelDeviceCreation",
468 (GDBusArgInfo **) &_org_bluez_adapter_method_info_cancel_device_creation_IN_ARG_pointers,
472 "handle-cancel-device-creation",
476 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_remove_device_IN_ARG_unnamed_arg0 =
487 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_remove_device_IN_ARG_pointers[] =
489 &_org_bluez_adapter_method_info_remove_device_IN_ARG_unnamed_arg0,
493 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_remove_device =
498 (GDBusArgInfo **) &_org_bluez_adapter_method_info_remove_device_IN_ARG_pointers,
502 "handle-remove-device",
506 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_find_device_IN_ARG_unnamed_arg0 =
517 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_find_device_IN_ARG_pointers[] =
519 &_org_bluez_adapter_method_info_find_device_IN_ARG_unnamed_arg0,
523 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_find_device_OUT_ARG_unnamed_arg1 =
534 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_find_device_OUT_ARG_pointers[] =
536 &_org_bluez_adapter_method_info_find_device_OUT_ARG_unnamed_arg1,
540 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_find_device =
545 (GDBusArgInfo **) &_org_bluez_adapter_method_info_find_device_IN_ARG_pointers,
546 (GDBusArgInfo **) &_org_bluez_adapter_method_info_find_device_OUT_ARG_pointers,
549 "handle-find-device",
553 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_register_agent_IN_ARG_unnamed_arg0 =
564 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_register_agent_IN_ARG_unnamed_arg1 =
575 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_register_agent_IN_ARG_pointers[] =
577 &_org_bluez_adapter_method_info_register_agent_IN_ARG_unnamed_arg0,
578 &_org_bluez_adapter_method_info_register_agent_IN_ARG_unnamed_arg1,
582 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_register_agent =
587 (GDBusArgInfo **) &_org_bluez_adapter_method_info_register_agent_IN_ARG_pointers,
591 "handle-register-agent",
595 static const _ExtendedGDBusArgInfo _org_bluez_adapter_method_info_unregister_agent_IN_ARG_unnamed_arg0 =
606 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_method_info_unregister_agent_IN_ARG_pointers[] =
608 &_org_bluez_adapter_method_info_unregister_agent_IN_ARG_unnamed_arg0,
612 static const _ExtendedGDBusMethodInfo _org_bluez_adapter_method_info_unregister_agent =
617 (GDBusArgInfo **) &_org_bluez_adapter_method_info_unregister_agent_IN_ARG_pointers,
621 "handle-unregister-agent",
625 static const _ExtendedGDBusMethodInfo * const _org_bluez_adapter_method_info_pointers[] =
627 &_org_bluez_adapter_method_info_get_properties,
628 &_org_bluez_adapter_method_info_set_property,
629 &_org_bluez_adapter_method_info_request_session,
630 &_org_bluez_adapter_method_info_release_session,
631 &_org_bluez_adapter_method_info_start_discovery,
632 &_org_bluez_adapter_method_info_stop_discovery,
633 &_org_bluez_adapter_method_info_list_devices,
634 &_org_bluez_adapter_method_info_create_device,
635 &_org_bluez_adapter_method_info_create_paired_device,
636 &_org_bluez_adapter_method_info_cancel_device_creation,
637 &_org_bluez_adapter_method_info_remove_device,
638 &_org_bluez_adapter_method_info_find_device,
639 &_org_bluez_adapter_method_info_register_agent,
640 &_org_bluez_adapter_method_info_unregister_agent,
644 static const _ExtendedGDBusArgInfo _org_bluez_adapter_signal_info_property_changed_ARG_unnamed_arg0 =
655 static const _ExtendedGDBusArgInfo _org_bluez_adapter_signal_info_property_changed_ARG_unnamed_arg1 =
666 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_signal_info_property_changed_ARG_pointers[] =
668 &_org_bluez_adapter_signal_info_property_changed_ARG_unnamed_arg0,
669 &_org_bluez_adapter_signal_info_property_changed_ARG_unnamed_arg1,
673 static const _ExtendedGDBusSignalInfo _org_bluez_adapter_signal_info_property_changed =
678 (GDBusArgInfo **) &_org_bluez_adapter_signal_info_property_changed_ARG_pointers,
684 static const _ExtendedGDBusArgInfo _org_bluez_adapter_signal_info_device_created_ARG_unnamed_arg0 =
695 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_signal_info_device_created_ARG_pointers[] =
697 &_org_bluez_adapter_signal_info_device_created_ARG_unnamed_arg0,
701 static const _ExtendedGDBusSignalInfo _org_bluez_adapter_signal_info_device_created =
706 (GDBusArgInfo **) &_org_bluez_adapter_signal_info_device_created_ARG_pointers,
712 static const _ExtendedGDBusArgInfo _org_bluez_adapter_signal_info_device_removed_ARG_unnamed_arg0 =
723 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_signal_info_device_removed_ARG_pointers[] =
725 &_org_bluez_adapter_signal_info_device_removed_ARG_unnamed_arg0,
729 static const _ExtendedGDBusSignalInfo _org_bluez_adapter_signal_info_device_removed =
734 (GDBusArgInfo **) &_org_bluez_adapter_signal_info_device_removed_ARG_pointers,
740 static const _ExtendedGDBusArgInfo _org_bluez_adapter_signal_info_device_found_ARG_unnamed_arg0 =
751 static const _ExtendedGDBusArgInfo _org_bluez_adapter_signal_info_device_found_ARG_unnamed_arg1 =
762 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_signal_info_device_found_ARG_pointers[] =
764 &_org_bluez_adapter_signal_info_device_found_ARG_unnamed_arg0,
765 &_org_bluez_adapter_signal_info_device_found_ARG_unnamed_arg1,
769 static const GDBusAnnotationInfo _org_bluez_adapter_signal_device_found_annotation_info_0 =
772 "com.trolltech.QtDBus.QtTypeName.In1",
777 static const GDBusAnnotationInfo * const _org_bluez_adapter_signal_device_found_annotation_info_pointers[] =
779 &_org_bluez_adapter_signal_device_found_annotation_info_0,
783 static const _ExtendedGDBusSignalInfo _org_bluez_adapter_signal_info_device_found =
788 (GDBusArgInfo **) &_org_bluez_adapter_signal_info_device_found_ARG_pointers,
789 (GDBusAnnotationInfo **) &_org_bluez_adapter_signal_device_found_annotation_info_pointers
794 static const _ExtendedGDBusArgInfo _org_bluez_adapter_signal_info_device_disappeared_ARG_unnamed_arg0 =
805 static const _ExtendedGDBusArgInfo * const _org_bluez_adapter_signal_info_device_disappeared_ARG_pointers[] =
807 &_org_bluez_adapter_signal_info_device_disappeared_ARG_unnamed_arg0,
811 static const _ExtendedGDBusSignalInfo _org_bluez_adapter_signal_info_device_disappeared =
816 (GDBusArgInfo **) &_org_bluez_adapter_signal_info_device_disappeared_ARG_pointers,
822 static const _ExtendedGDBusSignalInfo * const _org_bluez_adapter_signal_info_pointers[] =
824 &_org_bluez_adapter_signal_info_property_changed,
825 &_org_bluez_adapter_signal_info_device_created,
826 &_org_bluez_adapter_signal_info_device_removed,
827 &_org_bluez_adapter_signal_info_device_found,
828 &_org_bluez_adapter_signal_info_device_disappeared,
832 static const _ExtendedGDBusInterfaceInfo _org_bluez_adapter_interface_info =
837 (GDBusMethodInfo **) &_org_bluez_adapter_method_info_pointers,
838 (GDBusSignalInfo **) &_org_bluez_adapter_signal_info_pointers,
847 * org_bluez_adapter_interface_info:
849 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-bluez-Adapter.top_of_page">org.bluez.Adapter</link> D-Bus interface.
851 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
854 org_bluez_adapter_interface_info (void)
856 return (GDBusInterfaceInfo *) &_org_bluez_adapter_interface_info;
860 * org_bluez_adapter_override_properties:
861 * @klass: The class structure for a #GObject<!-- -->-derived class.
862 * @property_id_begin: The property id to assign to the first overridden property.
864 * Overrides all #GObject properties in the #OrgBluezAdapter interface for a concrete class.
865 * The properties are overridden in the order they are defined.
867 * Returns: The last property id.
870 org_bluez_adapter_override_properties (GObjectClass *klass, guint property_id_begin)
872 return property_id_begin - 1;
880 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-bluez-Adapter.top_of_page">org.bluez.Adapter</link>.
884 * OrgBluezAdapterIface:
885 * @parent_iface: The parent interface.
886 * @handle_cancel_device_creation: Handler for the #OrgBluezAdapter::handle-cancel-device-creation signal.
887 * @handle_create_device: Handler for the #OrgBluezAdapter::handle-create-device signal.
888 * @handle_create_paired_device: Handler for the #OrgBluezAdapter::handle-create-paired-device signal.
889 * @handle_find_device: Handler for the #OrgBluezAdapter::handle-find-device signal.
890 * @handle_get_properties: Handler for the #OrgBluezAdapter::handle-get-properties signal.
891 * @handle_list_devices: Handler for the #OrgBluezAdapter::handle-list-devices signal.
892 * @handle_register_agent: Handler for the #OrgBluezAdapter::handle-register-agent signal.
893 * @handle_release_session: Handler for the #OrgBluezAdapter::handle-release-session signal.
894 * @handle_remove_device: Handler for the #OrgBluezAdapter::handle-remove-device signal.
895 * @handle_request_session: Handler for the #OrgBluezAdapter::handle-request-session signal.
896 * @handle_set_property: Handler for the #OrgBluezAdapter::handle-set-property signal.
897 * @handle_start_discovery: Handler for the #OrgBluezAdapter::handle-start-discovery signal.
898 * @handle_stop_discovery: Handler for the #OrgBluezAdapter::handle-stop-discovery signal.
899 * @handle_unregister_agent: Handler for the #OrgBluezAdapter::handle-unregister-agent signal.
900 * @device_created: Handler for the #OrgBluezAdapter::device-created signal.
901 * @device_disappeared: Handler for the #OrgBluezAdapter::device-disappeared signal.
902 * @device_found: Handler for the #OrgBluezAdapter::device-found signal.
903 * @device_removed: Handler for the #OrgBluezAdapter::device-removed signal.
904 * @property_changed: Handler for the #OrgBluezAdapter::property-changed signal.
906 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-bluez-Adapter.top_of_page">org.bluez.Adapter</link>.
910 org_bluez_adapter_default_init (OrgBluezAdapterIface *iface)
912 /* GObject signals for incoming D-Bus method calls: */
914 * OrgBluezAdapter::handle-get-properties:
915 * @object: A #OrgBluezAdapter.
916 * @invocation: A #GDBusMethodInvocation.
918 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.GetProperties">GetProperties()</link> D-Bus method.
920 * 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_bluez_adapter_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.
922 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
924 g_signal_new ("handle-get-properties",
925 G_TYPE_FROM_INTERFACE (iface),
927 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_get_properties),
928 g_signal_accumulator_true_handled,
930 g_cclosure_marshal_generic,
933 G_TYPE_DBUS_METHOD_INVOCATION);
936 * OrgBluezAdapter::handle-set-property:
937 * @object: A #OrgBluezAdapter.
938 * @invocation: A #GDBusMethodInvocation.
939 * @arg_unnamed_arg0: Argument passed by remote caller.
940 * @arg_unnamed_arg1: Argument passed by remote caller.
942 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.SetProperty">SetProperty()</link> D-Bus method.
944 * 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_bluez_adapter_complete_set_property() 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.
946 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
948 g_signal_new ("handle-set-property",
949 G_TYPE_FROM_INTERFACE (iface),
951 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_set_property),
952 g_signal_accumulator_true_handled,
954 g_cclosure_marshal_generic,
957 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_VARIANT);
960 * OrgBluezAdapter::handle-request-session:
961 * @object: A #OrgBluezAdapter.
962 * @invocation: A #GDBusMethodInvocation.
964 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.RequestSession">RequestSession()</link> D-Bus method.
966 * 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_bluez_adapter_complete_request_session() 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.
968 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
970 g_signal_new ("handle-request-session",
971 G_TYPE_FROM_INTERFACE (iface),
973 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_request_session),
974 g_signal_accumulator_true_handled,
976 g_cclosure_marshal_generic,
979 G_TYPE_DBUS_METHOD_INVOCATION);
982 * OrgBluezAdapter::handle-release-session:
983 * @object: A #OrgBluezAdapter.
984 * @invocation: A #GDBusMethodInvocation.
986 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.ReleaseSession">ReleaseSession()</link> D-Bus method.
988 * 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_bluez_adapter_complete_release_session() 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.
990 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
992 g_signal_new ("handle-release-session",
993 G_TYPE_FROM_INTERFACE (iface),
995 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_release_session),
996 g_signal_accumulator_true_handled,
998 g_cclosure_marshal_generic,
1001 G_TYPE_DBUS_METHOD_INVOCATION);
1004 * OrgBluezAdapter::handle-start-discovery:
1005 * @object: A #OrgBluezAdapter.
1006 * @invocation: A #GDBusMethodInvocation.
1008 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.StartDiscovery">StartDiscovery()</link> D-Bus method.
1010 * 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_bluez_adapter_complete_start_discovery() 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.
1012 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1014 g_signal_new ("handle-start-discovery",
1015 G_TYPE_FROM_INTERFACE (iface),
1017 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_start_discovery),
1018 g_signal_accumulator_true_handled,
1020 g_cclosure_marshal_generic,
1023 G_TYPE_DBUS_METHOD_INVOCATION);
1026 * OrgBluezAdapter::handle-stop-discovery:
1027 * @object: A #OrgBluezAdapter.
1028 * @invocation: A #GDBusMethodInvocation.
1030 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.StopDiscovery">StopDiscovery()</link> D-Bus method.
1032 * 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_bluez_adapter_complete_stop_discovery() 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.
1034 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1036 g_signal_new ("handle-stop-discovery",
1037 G_TYPE_FROM_INTERFACE (iface),
1039 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_stop_discovery),
1040 g_signal_accumulator_true_handled,
1042 g_cclosure_marshal_generic,
1045 G_TYPE_DBUS_METHOD_INVOCATION);
1048 * OrgBluezAdapter::handle-list-devices:
1049 * @object: A #OrgBluezAdapter.
1050 * @invocation: A #GDBusMethodInvocation.
1052 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.ListDevices">ListDevices()</link> D-Bus method.
1054 * 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_bluez_adapter_complete_list_devices() 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.
1056 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1058 g_signal_new ("handle-list-devices",
1059 G_TYPE_FROM_INTERFACE (iface),
1061 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_list_devices),
1062 g_signal_accumulator_true_handled,
1064 g_cclosure_marshal_generic,
1067 G_TYPE_DBUS_METHOD_INVOCATION);
1070 * OrgBluezAdapter::handle-create-device:
1071 * @object: A #OrgBluezAdapter.
1072 * @invocation: A #GDBusMethodInvocation.
1073 * @arg_unnamed_arg0: Argument passed by remote caller.
1075 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.CreateDevice">CreateDevice()</link> D-Bus method.
1077 * 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_bluez_adapter_complete_create_device() 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.
1079 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1081 g_signal_new ("handle-create-device",
1082 G_TYPE_FROM_INTERFACE (iface),
1084 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_create_device),
1085 g_signal_accumulator_true_handled,
1087 g_cclosure_marshal_generic,
1090 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1093 * OrgBluezAdapter::handle-create-paired-device:
1094 * @object: A #OrgBluezAdapter.
1095 * @invocation: A #GDBusMethodInvocation.
1096 * @arg_unnamed_arg0: Argument passed by remote caller.
1097 * @arg_unnamed_arg1: Argument passed by remote caller.
1098 * @arg_unnamed_arg2: Argument passed by remote caller.
1100 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.CreatePairedDevice">CreatePairedDevice()</link> D-Bus method.
1102 * 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_bluez_adapter_complete_create_paired_device() 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.
1104 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1106 g_signal_new ("handle-create-paired-device",
1107 G_TYPE_FROM_INTERFACE (iface),
1109 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_create_paired_device),
1110 g_signal_accumulator_true_handled,
1112 g_cclosure_marshal_generic,
1115 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
1118 * OrgBluezAdapter::handle-cancel-device-creation:
1119 * @object: A #OrgBluezAdapter.
1120 * @invocation: A #GDBusMethodInvocation.
1121 * @arg_unnamed_arg0: Argument passed by remote caller.
1123 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.CancelDeviceCreation">CancelDeviceCreation()</link> D-Bus method.
1125 * 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_bluez_adapter_complete_cancel_device_creation() 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.
1127 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1129 g_signal_new ("handle-cancel-device-creation",
1130 G_TYPE_FROM_INTERFACE (iface),
1132 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_cancel_device_creation),
1133 g_signal_accumulator_true_handled,
1135 g_cclosure_marshal_generic,
1138 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1141 * OrgBluezAdapter::handle-remove-device:
1142 * @object: A #OrgBluezAdapter.
1143 * @invocation: A #GDBusMethodInvocation.
1144 * @arg_unnamed_arg0: Argument passed by remote caller.
1146 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.RemoveDevice">RemoveDevice()</link> D-Bus method.
1148 * 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_bluez_adapter_complete_remove_device() 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.
1150 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1152 g_signal_new ("handle-remove-device",
1153 G_TYPE_FROM_INTERFACE (iface),
1155 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_remove_device),
1156 g_signal_accumulator_true_handled,
1158 g_cclosure_marshal_generic,
1161 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1164 * OrgBluezAdapter::handle-find-device:
1165 * @object: A #OrgBluezAdapter.
1166 * @invocation: A #GDBusMethodInvocation.
1167 * @arg_unnamed_arg0: Argument passed by remote caller.
1169 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.FindDevice">FindDevice()</link> D-Bus method.
1171 * 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_bluez_adapter_complete_find_device() 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.
1173 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1175 g_signal_new ("handle-find-device",
1176 G_TYPE_FROM_INTERFACE (iface),
1178 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_find_device),
1179 g_signal_accumulator_true_handled,
1181 g_cclosure_marshal_generic,
1184 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1187 * OrgBluezAdapter::handle-register-agent:
1188 * @object: A #OrgBluezAdapter.
1189 * @invocation: A #GDBusMethodInvocation.
1190 * @arg_unnamed_arg0: Argument passed by remote caller.
1191 * @arg_unnamed_arg1: Argument passed by remote caller.
1193 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.RegisterAgent">RegisterAgent()</link> D-Bus method.
1195 * 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_bluez_adapter_complete_register_agent() 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.
1197 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1199 g_signal_new ("handle-register-agent",
1200 G_TYPE_FROM_INTERFACE (iface),
1202 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_register_agent),
1203 g_signal_accumulator_true_handled,
1205 g_cclosure_marshal_generic,
1208 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
1211 * OrgBluezAdapter::handle-unregister-agent:
1212 * @object: A #OrgBluezAdapter.
1213 * @invocation: A #GDBusMethodInvocation.
1214 * @arg_unnamed_arg0: Argument passed by remote caller.
1216 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-bluez-Adapter.UnregisterAgent">UnregisterAgent()</link> D-Bus method.
1218 * 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_bluez_adapter_complete_unregister_agent() 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.
1220 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
1222 g_signal_new ("handle-unregister-agent",
1223 G_TYPE_FROM_INTERFACE (iface),
1225 G_STRUCT_OFFSET (OrgBluezAdapterIface, handle_unregister_agent),
1226 g_signal_accumulator_true_handled,
1228 g_cclosure_marshal_generic,
1231 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
1233 /* GObject signals for received D-Bus signals: */
1235 * OrgBluezAdapter::property-changed:
1236 * @object: A #OrgBluezAdapter.
1237 * @arg_unnamed_arg0: Argument.
1238 * @arg_unnamed_arg1: Argument.
1240 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-bluez-Adapter.PropertyChanged">"PropertyChanged"</link> is received.
1242 * 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.
1244 g_signal_new ("property-changed",
1245 G_TYPE_FROM_INTERFACE (iface),
1247 G_STRUCT_OFFSET (OrgBluezAdapterIface, property_changed),
1250 g_cclosure_marshal_generic,
1252 2, G_TYPE_STRING, G_TYPE_VARIANT);
1255 * OrgBluezAdapter::device-created:
1256 * @object: A #OrgBluezAdapter.
1257 * @arg_unnamed_arg0: Argument.
1259 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-bluez-Adapter.DeviceCreated">"DeviceCreated"</link> is received.
1261 * 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.
1263 g_signal_new ("device-created",
1264 G_TYPE_FROM_INTERFACE (iface),
1266 G_STRUCT_OFFSET (OrgBluezAdapterIface, device_created),
1269 g_cclosure_marshal_generic,
1274 * OrgBluezAdapter::device-removed:
1275 * @object: A #OrgBluezAdapter.
1276 * @arg_unnamed_arg0: Argument.
1278 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-bluez-Adapter.DeviceRemoved">"DeviceRemoved"</link> is received.
1280 * 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.
1282 g_signal_new ("device-removed",
1283 G_TYPE_FROM_INTERFACE (iface),
1285 G_STRUCT_OFFSET (OrgBluezAdapterIface, device_removed),
1288 g_cclosure_marshal_generic,
1293 * OrgBluezAdapter::device-found:
1294 * @object: A #OrgBluezAdapter.
1295 * @arg_unnamed_arg0: Argument.
1296 * @arg_unnamed_arg1: Argument.
1298 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-bluez-Adapter.DeviceFound">"DeviceFound"</link> is received.
1300 * 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.
1302 g_signal_new ("device-found",
1303 G_TYPE_FROM_INTERFACE (iface),
1305 G_STRUCT_OFFSET (OrgBluezAdapterIface, device_found),
1308 g_cclosure_marshal_generic,
1310 2, G_TYPE_STRING, G_TYPE_VARIANT);
1313 * OrgBluezAdapter::device-disappeared:
1314 * @object: A #OrgBluezAdapter.
1315 * @arg_unnamed_arg0: Argument.
1317 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-bluez-Adapter.DeviceDisappeared">"DeviceDisappeared"</link> is received.
1319 * 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.
1321 g_signal_new ("device-disappeared",
1322 G_TYPE_FROM_INTERFACE (iface),
1324 G_STRUCT_OFFSET (OrgBluezAdapterIface, device_disappeared),
1327 g_cclosure_marshal_generic,
1333 typedef OrgBluezAdapterIface OrgBluezAdapterInterface;
1334 G_DEFINE_INTERFACE (OrgBluezAdapter, org_bluez_adapter, G_TYPE_OBJECT);
1337 * org_bluez_adapter_emit_property_changed:
1338 * @object: A #OrgBluezAdapter.
1339 * @arg_unnamed_arg0: Argument to pass with the signal.
1340 * @arg_unnamed_arg1: Argument to pass with the signal.
1342 * Emits the <link linkend="gdbus-signal-org-bluez-Adapter.PropertyChanged">"PropertyChanged"</link> D-Bus signal.
1345 org_bluez_adapter_emit_property_changed (
1346 OrgBluezAdapter *object,
1347 const gchar *arg_unnamed_arg0,
1348 GVariant *arg_unnamed_arg1)
1350 g_signal_emit_by_name (object, "property-changed", arg_unnamed_arg0, arg_unnamed_arg1);
1354 * org_bluez_adapter_emit_device_created:
1355 * @object: A #OrgBluezAdapter.
1356 * @arg_unnamed_arg0: Argument to pass with the signal.
1358 * Emits the <link linkend="gdbus-signal-org-bluez-Adapter.DeviceCreated">"DeviceCreated"</link> D-Bus signal.
1361 org_bluez_adapter_emit_device_created (
1362 OrgBluezAdapter *object,
1363 const gchar *arg_unnamed_arg0)
1365 g_signal_emit_by_name (object, "device-created", arg_unnamed_arg0);
1369 * org_bluez_adapter_emit_device_removed:
1370 * @object: A #OrgBluezAdapter.
1371 * @arg_unnamed_arg0: Argument to pass with the signal.
1373 * Emits the <link linkend="gdbus-signal-org-bluez-Adapter.DeviceRemoved">"DeviceRemoved"</link> D-Bus signal.
1376 org_bluez_adapter_emit_device_removed (
1377 OrgBluezAdapter *object,
1378 const gchar *arg_unnamed_arg0)
1380 g_signal_emit_by_name (object, "device-removed", arg_unnamed_arg0);
1384 * org_bluez_adapter_emit_device_found:
1385 * @object: A #OrgBluezAdapter.
1386 * @arg_unnamed_arg0: Argument to pass with the signal.
1387 * @arg_unnamed_arg1: Argument to pass with the signal.
1389 * Emits the <link linkend="gdbus-signal-org-bluez-Adapter.DeviceFound">"DeviceFound"</link> D-Bus signal.
1392 org_bluez_adapter_emit_device_found (
1393 OrgBluezAdapter *object,
1394 const gchar *arg_unnamed_arg0,
1395 GVariant *arg_unnamed_arg1)
1397 g_signal_emit_by_name (object, "device-found", arg_unnamed_arg0, arg_unnamed_arg1);
1401 * org_bluez_adapter_emit_device_disappeared:
1402 * @object: A #OrgBluezAdapter.
1403 * @arg_unnamed_arg0: Argument to pass with the signal.
1405 * Emits the <link linkend="gdbus-signal-org-bluez-Adapter.DeviceDisappeared">"DeviceDisappeared"</link> D-Bus signal.
1408 org_bluez_adapter_emit_device_disappeared (
1409 OrgBluezAdapter *object,
1410 const gchar *arg_unnamed_arg0)
1412 g_signal_emit_by_name (object, "device-disappeared", arg_unnamed_arg0);
1416 * org_bluez_adapter_call_get_properties:
1417 * @proxy: A #OrgBluezAdapterProxy.
1418 * @cancellable: (allow-none): A #GCancellable or %NULL.
1419 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1420 * @user_data: User data to pass to @callback.
1422 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.GetProperties">GetProperties()</link> D-Bus method on @proxy.
1423 * 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.
1424 * You can then call org_bluez_adapter_call_get_properties_finish() to get the result of the operation.
1426 * See org_bluez_adapter_call_get_properties_sync() for the synchronous, blocking version of this method.
1429 org_bluez_adapter_call_get_properties (
1430 OrgBluezAdapter *proxy,
1431 GCancellable *cancellable,
1432 GAsyncReadyCallback callback,
1435 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1437 g_variant_new ("()"),
1438 G_DBUS_CALL_FLAGS_NONE,
1446 * org_bluez_adapter_call_get_properties_finish:
1447 * @proxy: A #OrgBluezAdapterProxy.
1448 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1449 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_get_properties().
1450 * @error: Return location for error or %NULL.
1452 * Finishes an operation started with org_bluez_adapter_call_get_properties().
1454 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1457 org_bluez_adapter_call_get_properties_finish (
1458 OrgBluezAdapter *proxy,
1459 GVariant **out_unnamed_arg0,
1464 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1467 g_variant_get (_ret,
1470 g_variant_unref (_ret);
1472 return _ret != NULL;
1476 * org_bluez_adapter_call_get_properties_sync:
1477 * @proxy: A #OrgBluezAdapterProxy.
1478 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1479 * @cancellable: (allow-none): A #GCancellable or %NULL.
1480 * @error: Return location for error or %NULL.
1482 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.GetProperties">GetProperties()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1484 * See org_bluez_adapter_call_get_properties() for the asynchronous version of this method.
1486 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1489 org_bluez_adapter_call_get_properties_sync (
1490 OrgBluezAdapter *proxy,
1491 GVariant **out_unnamed_arg0,
1492 GCancellable *cancellable,
1496 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1498 g_variant_new ("()"),
1499 G_DBUS_CALL_FLAGS_NONE,
1505 g_variant_get (_ret,
1508 g_variant_unref (_ret);
1510 return _ret != NULL;
1514 * org_bluez_adapter_call_set_property:
1515 * @proxy: A #OrgBluezAdapterProxy.
1516 * @arg_unnamed_arg0: Argument to pass with the method invocation.
1517 * @arg_unnamed_arg1: Argument to pass with the method invocation.
1518 * @cancellable: (allow-none): A #GCancellable or %NULL.
1519 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1520 * @user_data: User data to pass to @callback.
1522 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.SetProperty">SetProperty()</link> D-Bus method on @proxy.
1523 * 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.
1524 * You can then call org_bluez_adapter_call_set_property_finish() to get the result of the operation.
1526 * See org_bluez_adapter_call_set_property_sync() for the synchronous, blocking version of this method.
1529 org_bluez_adapter_call_set_property (
1530 OrgBluezAdapter *proxy,
1531 const gchar *arg_unnamed_arg0,
1532 GVariant *arg_unnamed_arg1,
1533 GCancellable *cancellable,
1534 GAsyncReadyCallback callback,
1537 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1539 g_variant_new ("(s@v)",
1542 G_DBUS_CALL_FLAGS_NONE,
1550 * org_bluez_adapter_call_set_property_finish:
1551 * @proxy: A #OrgBluezAdapterProxy.
1552 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_set_property().
1553 * @error: Return location for error or %NULL.
1555 * Finishes an operation started with org_bluez_adapter_call_set_property().
1557 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1560 org_bluez_adapter_call_set_property_finish (
1561 OrgBluezAdapter *proxy,
1566 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1569 g_variant_get (_ret,
1571 g_variant_unref (_ret);
1573 return _ret != NULL;
1577 * org_bluez_adapter_call_set_property_sync:
1578 * @proxy: A #OrgBluezAdapterProxy.
1579 * @arg_unnamed_arg0: Argument to pass with the method invocation.
1580 * @arg_unnamed_arg1: Argument to pass with the method invocation.
1581 * @cancellable: (allow-none): A #GCancellable or %NULL.
1582 * @error: Return location for error or %NULL.
1584 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.SetProperty">SetProperty()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1586 * See org_bluez_adapter_call_set_property() for the asynchronous version of this method.
1588 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1591 org_bluez_adapter_call_set_property_sync (
1592 OrgBluezAdapter *proxy,
1593 const gchar *arg_unnamed_arg0,
1594 GVariant *arg_unnamed_arg1,
1595 GCancellable *cancellable,
1599 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1601 g_variant_new ("(s@v)",
1604 G_DBUS_CALL_FLAGS_NONE,
1610 g_variant_get (_ret,
1612 g_variant_unref (_ret);
1614 return _ret != NULL;
1618 * org_bluez_adapter_call_request_session:
1619 * @proxy: A #OrgBluezAdapterProxy.
1620 * @cancellable: (allow-none): A #GCancellable or %NULL.
1621 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1622 * @user_data: User data to pass to @callback.
1624 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.RequestSession">RequestSession()</link> D-Bus method on @proxy.
1625 * 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.
1626 * You can then call org_bluez_adapter_call_request_session_finish() to get the result of the operation.
1628 * See org_bluez_adapter_call_request_session_sync() for the synchronous, blocking version of this method.
1631 org_bluez_adapter_call_request_session (
1632 OrgBluezAdapter *proxy,
1633 GCancellable *cancellable,
1634 GAsyncReadyCallback callback,
1637 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1639 g_variant_new ("()"),
1640 G_DBUS_CALL_FLAGS_NONE,
1648 * org_bluez_adapter_call_request_session_finish:
1649 * @proxy: A #OrgBluezAdapterProxy.
1650 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_request_session().
1651 * @error: Return location for error or %NULL.
1653 * Finishes an operation started with org_bluez_adapter_call_request_session().
1655 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1658 org_bluez_adapter_call_request_session_finish (
1659 OrgBluezAdapter *proxy,
1664 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1667 g_variant_get (_ret,
1669 g_variant_unref (_ret);
1671 return _ret != NULL;
1675 * org_bluez_adapter_call_request_session_sync:
1676 * @proxy: A #OrgBluezAdapterProxy.
1677 * @cancellable: (allow-none): A #GCancellable or %NULL.
1678 * @error: Return location for error or %NULL.
1680 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.RequestSession">RequestSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1682 * See org_bluez_adapter_call_request_session() for the asynchronous version of this method.
1684 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1687 org_bluez_adapter_call_request_session_sync (
1688 OrgBluezAdapter *proxy,
1689 GCancellable *cancellable,
1693 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1695 g_variant_new ("()"),
1696 G_DBUS_CALL_FLAGS_NONE,
1702 g_variant_get (_ret,
1704 g_variant_unref (_ret);
1706 return _ret != NULL;
1710 * org_bluez_adapter_call_release_session:
1711 * @proxy: A #OrgBluezAdapterProxy.
1712 * @cancellable: (allow-none): A #GCancellable or %NULL.
1713 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1714 * @user_data: User data to pass to @callback.
1716 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.ReleaseSession">ReleaseSession()</link> D-Bus method on @proxy.
1717 * 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.
1718 * You can then call org_bluez_adapter_call_release_session_finish() to get the result of the operation.
1720 * See org_bluez_adapter_call_release_session_sync() for the synchronous, blocking version of this method.
1723 org_bluez_adapter_call_release_session (
1724 OrgBluezAdapter *proxy,
1725 GCancellable *cancellable,
1726 GAsyncReadyCallback callback,
1729 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1731 g_variant_new ("()"),
1732 G_DBUS_CALL_FLAGS_NONE,
1740 * org_bluez_adapter_call_release_session_finish:
1741 * @proxy: A #OrgBluezAdapterProxy.
1742 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_release_session().
1743 * @error: Return location for error or %NULL.
1745 * Finishes an operation started with org_bluez_adapter_call_release_session().
1747 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1750 org_bluez_adapter_call_release_session_finish (
1751 OrgBluezAdapter *proxy,
1756 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1759 g_variant_get (_ret,
1761 g_variant_unref (_ret);
1763 return _ret != NULL;
1767 * org_bluez_adapter_call_release_session_sync:
1768 * @proxy: A #OrgBluezAdapterProxy.
1769 * @cancellable: (allow-none): A #GCancellable or %NULL.
1770 * @error: Return location for error or %NULL.
1772 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.ReleaseSession">ReleaseSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1774 * See org_bluez_adapter_call_release_session() for the asynchronous version of this method.
1776 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1779 org_bluez_adapter_call_release_session_sync (
1780 OrgBluezAdapter *proxy,
1781 GCancellable *cancellable,
1785 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1787 g_variant_new ("()"),
1788 G_DBUS_CALL_FLAGS_NONE,
1794 g_variant_get (_ret,
1796 g_variant_unref (_ret);
1798 return _ret != NULL;
1802 * org_bluez_adapter_call_start_discovery:
1803 * @proxy: A #OrgBluezAdapterProxy.
1804 * @cancellable: (allow-none): A #GCancellable or %NULL.
1805 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1806 * @user_data: User data to pass to @callback.
1808 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.StartDiscovery">StartDiscovery()</link> D-Bus method on @proxy.
1809 * 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.
1810 * You can then call org_bluez_adapter_call_start_discovery_finish() to get the result of the operation.
1812 * See org_bluez_adapter_call_start_discovery_sync() for the synchronous, blocking version of this method.
1815 org_bluez_adapter_call_start_discovery (
1816 OrgBluezAdapter *proxy,
1817 GCancellable *cancellable,
1818 GAsyncReadyCallback callback,
1821 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1823 g_variant_new ("()"),
1824 G_DBUS_CALL_FLAGS_NONE,
1832 * org_bluez_adapter_call_start_discovery_finish:
1833 * @proxy: A #OrgBluezAdapterProxy.
1834 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_start_discovery().
1835 * @error: Return location for error or %NULL.
1837 * Finishes an operation started with org_bluez_adapter_call_start_discovery().
1839 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1842 org_bluez_adapter_call_start_discovery_finish (
1843 OrgBluezAdapter *proxy,
1848 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1851 g_variant_get (_ret,
1853 g_variant_unref (_ret);
1855 return _ret != NULL;
1859 * org_bluez_adapter_call_start_discovery_sync:
1860 * @proxy: A #OrgBluezAdapterProxy.
1861 * @cancellable: (allow-none): A #GCancellable or %NULL.
1862 * @error: Return location for error or %NULL.
1864 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.StartDiscovery">StartDiscovery()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1866 * See org_bluez_adapter_call_start_discovery() for the asynchronous version of this method.
1868 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1871 org_bluez_adapter_call_start_discovery_sync (
1872 OrgBluezAdapter *proxy,
1873 GCancellable *cancellable,
1877 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1879 g_variant_new ("()"),
1880 G_DBUS_CALL_FLAGS_NONE,
1886 g_variant_get (_ret,
1888 g_variant_unref (_ret);
1890 return _ret != NULL;
1894 * org_bluez_adapter_call_stop_discovery:
1895 * @proxy: A #OrgBluezAdapterProxy.
1896 * @cancellable: (allow-none): A #GCancellable or %NULL.
1897 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1898 * @user_data: User data to pass to @callback.
1900 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.StopDiscovery">StopDiscovery()</link> D-Bus method on @proxy.
1901 * 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.
1902 * You can then call org_bluez_adapter_call_stop_discovery_finish() to get the result of the operation.
1904 * See org_bluez_adapter_call_stop_discovery_sync() for the synchronous, blocking version of this method.
1907 org_bluez_adapter_call_stop_discovery (
1908 OrgBluezAdapter *proxy,
1909 GCancellable *cancellable,
1910 GAsyncReadyCallback callback,
1913 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1915 g_variant_new ("()"),
1916 G_DBUS_CALL_FLAGS_NONE,
1924 * org_bluez_adapter_call_stop_discovery_finish:
1925 * @proxy: A #OrgBluezAdapterProxy.
1926 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_stop_discovery().
1927 * @error: Return location for error or %NULL.
1929 * Finishes an operation started with org_bluez_adapter_call_stop_discovery().
1931 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1934 org_bluez_adapter_call_stop_discovery_finish (
1935 OrgBluezAdapter *proxy,
1940 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1943 g_variant_get (_ret,
1945 g_variant_unref (_ret);
1947 return _ret != NULL;
1951 * org_bluez_adapter_call_stop_discovery_sync:
1952 * @proxy: A #OrgBluezAdapterProxy.
1953 * @cancellable: (allow-none): A #GCancellable or %NULL.
1954 * @error: Return location for error or %NULL.
1956 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.StopDiscovery">StopDiscovery()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1958 * See org_bluez_adapter_call_stop_discovery() for the asynchronous version of this method.
1960 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
1963 org_bluez_adapter_call_stop_discovery_sync (
1964 OrgBluezAdapter *proxy,
1965 GCancellable *cancellable,
1969 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1971 g_variant_new ("()"),
1972 G_DBUS_CALL_FLAGS_NONE,
1978 g_variant_get (_ret,
1980 g_variant_unref (_ret);
1982 return _ret != NULL;
1986 * org_bluez_adapter_call_list_devices:
1987 * @proxy: A #OrgBluezAdapterProxy.
1988 * @cancellable: (allow-none): A #GCancellable or %NULL.
1989 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1990 * @user_data: User data to pass to @callback.
1992 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.ListDevices">ListDevices()</link> D-Bus method on @proxy.
1993 * 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.
1994 * You can then call org_bluez_adapter_call_list_devices_finish() to get the result of the operation.
1996 * See org_bluez_adapter_call_list_devices_sync() for the synchronous, blocking version of this method.
1999 org_bluez_adapter_call_list_devices (
2000 OrgBluezAdapter *proxy,
2001 GCancellable *cancellable,
2002 GAsyncReadyCallback callback,
2005 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2007 g_variant_new ("()"),
2008 G_DBUS_CALL_FLAGS_NONE,
2016 * org_bluez_adapter_call_list_devices_finish:
2017 * @proxy: A #OrgBluezAdapterProxy.
2018 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
2019 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_list_devices().
2020 * @error: Return location for error or %NULL.
2022 * Finishes an operation started with org_bluez_adapter_call_list_devices().
2024 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2027 org_bluez_adapter_call_list_devices_finish (
2028 OrgBluezAdapter *proxy,
2029 gchar ***out_unnamed_arg0,
2034 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2037 g_variant_get (_ret,
2040 g_variant_unref (_ret);
2042 return _ret != NULL;
2046 * org_bluez_adapter_call_list_devices_sync:
2047 * @proxy: A #OrgBluezAdapterProxy.
2048 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
2049 * @cancellable: (allow-none): A #GCancellable or %NULL.
2050 * @error: Return location for error or %NULL.
2052 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.ListDevices">ListDevices()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2054 * See org_bluez_adapter_call_list_devices() for the asynchronous version of this method.
2056 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2059 org_bluez_adapter_call_list_devices_sync (
2060 OrgBluezAdapter *proxy,
2061 gchar ***out_unnamed_arg0,
2062 GCancellable *cancellable,
2066 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2068 g_variant_new ("()"),
2069 G_DBUS_CALL_FLAGS_NONE,
2075 g_variant_get (_ret,
2078 g_variant_unref (_ret);
2080 return _ret != NULL;
2084 * org_bluez_adapter_call_create_device:
2085 * @proxy: A #OrgBluezAdapterProxy.
2086 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2087 * @cancellable: (allow-none): A #GCancellable or %NULL.
2088 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2089 * @user_data: User data to pass to @callback.
2091 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.CreateDevice">CreateDevice()</link> D-Bus method on @proxy.
2092 * 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.
2093 * You can then call org_bluez_adapter_call_create_device_finish() to get the result of the operation.
2095 * See org_bluez_adapter_call_create_device_sync() for the synchronous, blocking version of this method.
2098 org_bluez_adapter_call_create_device (
2099 OrgBluezAdapter *proxy,
2100 const gchar *arg_unnamed_arg0,
2101 GCancellable *cancellable,
2102 GAsyncReadyCallback callback,
2105 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2107 g_variant_new ("(s)",
2109 G_DBUS_CALL_FLAGS_NONE,
2117 * org_bluez_adapter_call_create_device_finish:
2118 * @proxy: A #OrgBluezAdapterProxy.
2119 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
2120 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_create_device().
2121 * @error: Return location for error or %NULL.
2123 * Finishes an operation started with org_bluez_adapter_call_create_device().
2125 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2128 org_bluez_adapter_call_create_device_finish (
2129 OrgBluezAdapter *proxy,
2130 gchar **out_unnamed_arg1,
2135 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2138 g_variant_get (_ret,
2141 g_variant_unref (_ret);
2143 return _ret != NULL;
2147 * org_bluez_adapter_call_create_device_sync:
2148 * @proxy: A #OrgBluezAdapterProxy.
2149 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2150 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
2151 * @cancellable: (allow-none): A #GCancellable or %NULL.
2152 * @error: Return location for error or %NULL.
2154 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.CreateDevice">CreateDevice()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2156 * See org_bluez_adapter_call_create_device() for the asynchronous version of this method.
2158 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2161 org_bluez_adapter_call_create_device_sync (
2162 OrgBluezAdapter *proxy,
2163 const gchar *arg_unnamed_arg0,
2164 gchar **out_unnamed_arg1,
2165 GCancellable *cancellable,
2169 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2171 g_variant_new ("(s)",
2173 G_DBUS_CALL_FLAGS_NONE,
2179 g_variant_get (_ret,
2182 g_variant_unref (_ret);
2184 return _ret != NULL;
2188 * org_bluez_adapter_call_create_paired_device:
2189 * @proxy: A #OrgBluezAdapterProxy.
2190 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2191 * @arg_unnamed_arg1: Argument to pass with the method invocation.
2192 * @arg_unnamed_arg2: Argument to pass with the method invocation.
2193 * @cancellable: (allow-none): A #GCancellable or %NULL.
2194 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2195 * @user_data: User data to pass to @callback.
2197 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.CreatePairedDevice">CreatePairedDevice()</link> D-Bus method on @proxy.
2198 * 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.
2199 * You can then call org_bluez_adapter_call_create_paired_device_finish() to get the result of the operation.
2201 * See org_bluez_adapter_call_create_paired_device_sync() for the synchronous, blocking version of this method.
2204 org_bluez_adapter_call_create_paired_device (
2205 OrgBluezAdapter *proxy,
2206 const gchar *arg_unnamed_arg0,
2207 const gchar *arg_unnamed_arg1,
2208 const gchar *arg_unnamed_arg2,
2209 GCancellable *cancellable,
2210 GAsyncReadyCallback callback,
2213 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2214 "CreatePairedDevice",
2215 g_variant_new ("(sos)",
2219 G_DBUS_CALL_FLAGS_NONE,
2227 * org_bluez_adapter_call_create_paired_device_finish:
2228 * @proxy: A #OrgBluezAdapterProxy.
2229 * @out_unnamed_arg3: (out): Return location for return parameter or %NULL to ignore.
2230 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_create_paired_device().
2231 * @error: Return location for error or %NULL.
2233 * Finishes an operation started with org_bluez_adapter_call_create_paired_device().
2235 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2238 org_bluez_adapter_call_create_paired_device_finish (
2239 OrgBluezAdapter *proxy,
2240 gchar **out_unnamed_arg3,
2245 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2248 g_variant_get (_ret,
2251 g_variant_unref (_ret);
2253 return _ret != NULL;
2257 * org_bluez_adapter_call_create_paired_device_sync:
2258 * @proxy: A #OrgBluezAdapterProxy.
2259 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2260 * @arg_unnamed_arg1: Argument to pass with the method invocation.
2261 * @arg_unnamed_arg2: Argument to pass with the method invocation.
2262 * @out_unnamed_arg3: (out): Return location for return parameter or %NULL to ignore.
2263 * @cancellable: (allow-none): A #GCancellable or %NULL.
2264 * @error: Return location for error or %NULL.
2266 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.CreatePairedDevice">CreatePairedDevice()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2268 * See org_bluez_adapter_call_create_paired_device() for the asynchronous version of this method.
2270 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2273 org_bluez_adapter_call_create_paired_device_sync (
2274 OrgBluezAdapter *proxy,
2275 const gchar *arg_unnamed_arg0,
2276 const gchar *arg_unnamed_arg1,
2277 const gchar *arg_unnamed_arg2,
2278 gchar **out_unnamed_arg3,
2279 GCancellable *cancellable,
2283 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2284 "CreatePairedDevice",
2285 g_variant_new ("(sos)",
2289 G_DBUS_CALL_FLAGS_NONE,
2295 g_variant_get (_ret,
2298 g_variant_unref (_ret);
2300 return _ret != NULL;
2304 * org_bluez_adapter_call_cancel_device_creation:
2305 * @proxy: A #OrgBluezAdapterProxy.
2306 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2307 * @cancellable: (allow-none): A #GCancellable or %NULL.
2308 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2309 * @user_data: User data to pass to @callback.
2311 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.CancelDeviceCreation">CancelDeviceCreation()</link> D-Bus method on @proxy.
2312 * 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.
2313 * You can then call org_bluez_adapter_call_cancel_device_creation_finish() to get the result of the operation.
2315 * See org_bluez_adapter_call_cancel_device_creation_sync() for the synchronous, blocking version of this method.
2318 org_bluez_adapter_call_cancel_device_creation (
2319 OrgBluezAdapter *proxy,
2320 const gchar *arg_unnamed_arg0,
2321 GCancellable *cancellable,
2322 GAsyncReadyCallback callback,
2325 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2326 "CancelDeviceCreation",
2327 g_variant_new ("(s)",
2329 G_DBUS_CALL_FLAGS_NONE,
2337 * org_bluez_adapter_call_cancel_device_creation_finish:
2338 * @proxy: A #OrgBluezAdapterProxy.
2339 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_cancel_device_creation().
2340 * @error: Return location for error or %NULL.
2342 * Finishes an operation started with org_bluez_adapter_call_cancel_device_creation().
2344 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2347 org_bluez_adapter_call_cancel_device_creation_finish (
2348 OrgBluezAdapter *proxy,
2353 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2356 g_variant_get (_ret,
2358 g_variant_unref (_ret);
2360 return _ret != NULL;
2364 * org_bluez_adapter_call_cancel_device_creation_sync:
2365 * @proxy: A #OrgBluezAdapterProxy.
2366 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2367 * @cancellable: (allow-none): A #GCancellable or %NULL.
2368 * @error: Return location for error or %NULL.
2370 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.CancelDeviceCreation">CancelDeviceCreation()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2372 * See org_bluez_adapter_call_cancel_device_creation() for the asynchronous version of this method.
2374 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2377 org_bluez_adapter_call_cancel_device_creation_sync (
2378 OrgBluezAdapter *proxy,
2379 const gchar *arg_unnamed_arg0,
2380 GCancellable *cancellable,
2384 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2385 "CancelDeviceCreation",
2386 g_variant_new ("(s)",
2388 G_DBUS_CALL_FLAGS_NONE,
2394 g_variant_get (_ret,
2396 g_variant_unref (_ret);
2398 return _ret != NULL;
2402 * org_bluez_adapter_call_remove_device:
2403 * @proxy: A #OrgBluezAdapterProxy.
2404 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2405 * @cancellable: (allow-none): A #GCancellable or %NULL.
2406 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2407 * @user_data: User data to pass to @callback.
2409 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.RemoveDevice">RemoveDevice()</link> D-Bus method on @proxy.
2410 * 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.
2411 * You can then call org_bluez_adapter_call_remove_device_finish() to get the result of the operation.
2413 * See org_bluez_adapter_call_remove_device_sync() for the synchronous, blocking version of this method.
2416 org_bluez_adapter_call_remove_device (
2417 OrgBluezAdapter *proxy,
2418 const gchar *arg_unnamed_arg0,
2419 GCancellable *cancellable,
2420 GAsyncReadyCallback callback,
2423 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2425 g_variant_new ("(o)",
2427 G_DBUS_CALL_FLAGS_NONE,
2435 * org_bluez_adapter_call_remove_device_finish:
2436 * @proxy: A #OrgBluezAdapterProxy.
2437 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_remove_device().
2438 * @error: Return location for error or %NULL.
2440 * Finishes an operation started with org_bluez_adapter_call_remove_device().
2442 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2445 org_bluez_adapter_call_remove_device_finish (
2446 OrgBluezAdapter *proxy,
2451 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2454 g_variant_get (_ret,
2456 g_variant_unref (_ret);
2458 return _ret != NULL;
2462 * org_bluez_adapter_call_remove_device_sync:
2463 * @proxy: A #OrgBluezAdapterProxy.
2464 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2465 * @cancellable: (allow-none): A #GCancellable or %NULL.
2466 * @error: Return location for error or %NULL.
2468 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.RemoveDevice">RemoveDevice()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2470 * See org_bluez_adapter_call_remove_device() for the asynchronous version of this method.
2472 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2475 org_bluez_adapter_call_remove_device_sync (
2476 OrgBluezAdapter *proxy,
2477 const gchar *arg_unnamed_arg0,
2478 GCancellable *cancellable,
2482 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2484 g_variant_new ("(o)",
2486 G_DBUS_CALL_FLAGS_NONE,
2492 g_variant_get (_ret,
2494 g_variant_unref (_ret);
2496 return _ret != NULL;
2500 * org_bluez_adapter_call_find_device:
2501 * @proxy: A #OrgBluezAdapterProxy.
2502 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2503 * @cancellable: (allow-none): A #GCancellable or %NULL.
2504 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2505 * @user_data: User data to pass to @callback.
2507 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.FindDevice">FindDevice()</link> D-Bus method on @proxy.
2508 * 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.
2509 * You can then call org_bluez_adapter_call_find_device_finish() to get the result of the operation.
2511 * See org_bluez_adapter_call_find_device_sync() for the synchronous, blocking version of this method.
2514 org_bluez_adapter_call_find_device (
2515 OrgBluezAdapter *proxy,
2516 const gchar *arg_unnamed_arg0,
2517 GCancellable *cancellable,
2518 GAsyncReadyCallback callback,
2521 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2523 g_variant_new ("(s)",
2525 G_DBUS_CALL_FLAGS_NONE,
2533 * org_bluez_adapter_call_find_device_finish:
2534 * @proxy: A #OrgBluezAdapterProxy.
2535 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
2536 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_find_device().
2537 * @error: Return location for error or %NULL.
2539 * Finishes an operation started with org_bluez_adapter_call_find_device().
2541 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2544 org_bluez_adapter_call_find_device_finish (
2545 OrgBluezAdapter *proxy,
2546 gchar **out_unnamed_arg1,
2551 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2554 g_variant_get (_ret,
2557 g_variant_unref (_ret);
2559 return _ret != NULL;
2563 * org_bluez_adapter_call_find_device_sync:
2564 * @proxy: A #OrgBluezAdapterProxy.
2565 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2566 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
2567 * @cancellable: (allow-none): A #GCancellable or %NULL.
2568 * @error: Return location for error or %NULL.
2570 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.FindDevice">FindDevice()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2572 * See org_bluez_adapter_call_find_device() for the asynchronous version of this method.
2574 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2577 org_bluez_adapter_call_find_device_sync (
2578 OrgBluezAdapter *proxy,
2579 const gchar *arg_unnamed_arg0,
2580 gchar **out_unnamed_arg1,
2581 GCancellable *cancellable,
2585 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2587 g_variant_new ("(s)",
2589 G_DBUS_CALL_FLAGS_NONE,
2595 g_variant_get (_ret,
2598 g_variant_unref (_ret);
2600 return _ret != NULL;
2604 * org_bluez_adapter_call_register_agent:
2605 * @proxy: A #OrgBluezAdapterProxy.
2606 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2607 * @arg_unnamed_arg1: Argument to pass with the method invocation.
2608 * @cancellable: (allow-none): A #GCancellable or %NULL.
2609 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2610 * @user_data: User data to pass to @callback.
2612 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.RegisterAgent">RegisterAgent()</link> D-Bus method on @proxy.
2613 * 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.
2614 * You can then call org_bluez_adapter_call_register_agent_finish() to get the result of the operation.
2616 * See org_bluez_adapter_call_register_agent_sync() for the synchronous, blocking version of this method.
2619 org_bluez_adapter_call_register_agent (
2620 OrgBluezAdapter *proxy,
2621 const gchar *arg_unnamed_arg0,
2622 const gchar *arg_unnamed_arg1,
2623 GCancellable *cancellable,
2624 GAsyncReadyCallback callback,
2627 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2629 g_variant_new ("(os)",
2632 G_DBUS_CALL_FLAGS_NONE,
2640 * org_bluez_adapter_call_register_agent_finish:
2641 * @proxy: A #OrgBluezAdapterProxy.
2642 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_register_agent().
2643 * @error: Return location for error or %NULL.
2645 * Finishes an operation started with org_bluez_adapter_call_register_agent().
2647 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2650 org_bluez_adapter_call_register_agent_finish (
2651 OrgBluezAdapter *proxy,
2656 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2659 g_variant_get (_ret,
2661 g_variant_unref (_ret);
2663 return _ret != NULL;
2667 * org_bluez_adapter_call_register_agent_sync:
2668 * @proxy: A #OrgBluezAdapterProxy.
2669 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2670 * @arg_unnamed_arg1: Argument to pass with the method invocation.
2671 * @cancellable: (allow-none): A #GCancellable or %NULL.
2672 * @error: Return location for error or %NULL.
2674 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.RegisterAgent">RegisterAgent()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2676 * See org_bluez_adapter_call_register_agent() for the asynchronous version of this method.
2678 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2681 org_bluez_adapter_call_register_agent_sync (
2682 OrgBluezAdapter *proxy,
2683 const gchar *arg_unnamed_arg0,
2684 const gchar *arg_unnamed_arg1,
2685 GCancellable *cancellable,
2689 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2691 g_variant_new ("(os)",
2694 G_DBUS_CALL_FLAGS_NONE,
2700 g_variant_get (_ret,
2702 g_variant_unref (_ret);
2704 return _ret != NULL;
2708 * org_bluez_adapter_call_unregister_agent:
2709 * @proxy: A #OrgBluezAdapterProxy.
2710 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2711 * @cancellable: (allow-none): A #GCancellable or %NULL.
2712 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
2713 * @user_data: User data to pass to @callback.
2715 * Asynchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.UnregisterAgent">UnregisterAgent()</link> D-Bus method on @proxy.
2716 * 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.
2717 * You can then call org_bluez_adapter_call_unregister_agent_finish() to get the result of the operation.
2719 * See org_bluez_adapter_call_unregister_agent_sync() for the synchronous, blocking version of this method.
2722 org_bluez_adapter_call_unregister_agent (
2723 OrgBluezAdapter *proxy,
2724 const gchar *arg_unnamed_arg0,
2725 GCancellable *cancellable,
2726 GAsyncReadyCallback callback,
2729 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
2731 g_variant_new ("(o)",
2733 G_DBUS_CALL_FLAGS_NONE,
2741 * org_bluez_adapter_call_unregister_agent_finish:
2742 * @proxy: A #OrgBluezAdapterProxy.
2743 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_call_unregister_agent().
2744 * @error: Return location for error or %NULL.
2746 * Finishes an operation started with org_bluez_adapter_call_unregister_agent().
2748 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2751 org_bluez_adapter_call_unregister_agent_finish (
2752 OrgBluezAdapter *proxy,
2757 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
2760 g_variant_get (_ret,
2762 g_variant_unref (_ret);
2764 return _ret != NULL;
2768 * org_bluez_adapter_call_unregister_agent_sync:
2769 * @proxy: A #OrgBluezAdapterProxy.
2770 * @arg_unnamed_arg0: Argument to pass with the method invocation.
2771 * @cancellable: (allow-none): A #GCancellable or %NULL.
2772 * @error: Return location for error or %NULL.
2774 * Synchronously invokes the <link linkend="gdbus-method-org-bluez-Adapter.UnregisterAgent">UnregisterAgent()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
2776 * See org_bluez_adapter_call_unregister_agent() for the asynchronous version of this method.
2778 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
2781 org_bluez_adapter_call_unregister_agent_sync (
2782 OrgBluezAdapter *proxy,
2783 const gchar *arg_unnamed_arg0,
2784 GCancellable *cancellable,
2788 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
2790 g_variant_new ("(o)",
2792 G_DBUS_CALL_FLAGS_NONE,
2798 g_variant_get (_ret,
2800 g_variant_unref (_ret);
2802 return _ret != NULL;
2806 * org_bluez_adapter_complete_get_properties:
2807 * @object: A #OrgBluezAdapter.
2808 * @invocation: (transfer full): A #GDBusMethodInvocation.
2809 * @unnamed_arg0: Parameter to return.
2811 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.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.
2813 * This method will free @invocation, you cannot use it afterwards.
2816 org_bluez_adapter_complete_get_properties (
2817 OrgBluezAdapter *object,
2818 GDBusMethodInvocation *invocation,
2819 GVariant *unnamed_arg0)
2821 g_dbus_method_invocation_return_value (invocation,
2822 g_variant_new ("(@a{sv})",
2827 * org_bluez_adapter_complete_set_property:
2828 * @object: A #OrgBluezAdapter.
2829 * @invocation: (transfer full): A #GDBusMethodInvocation.
2831 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.SetProperty">SetProperty()</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.
2833 * This method will free @invocation, you cannot use it afterwards.
2836 org_bluez_adapter_complete_set_property (
2837 OrgBluezAdapter *object,
2838 GDBusMethodInvocation *invocation)
2840 g_dbus_method_invocation_return_value (invocation,
2841 g_variant_new ("()"));
2845 * org_bluez_adapter_complete_request_session:
2846 * @object: A #OrgBluezAdapter.
2847 * @invocation: (transfer full): A #GDBusMethodInvocation.
2849 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.RequestSession">RequestSession()</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.
2851 * This method will free @invocation, you cannot use it afterwards.
2854 org_bluez_adapter_complete_request_session (
2855 OrgBluezAdapter *object,
2856 GDBusMethodInvocation *invocation)
2858 g_dbus_method_invocation_return_value (invocation,
2859 g_variant_new ("()"));
2863 * org_bluez_adapter_complete_release_session:
2864 * @object: A #OrgBluezAdapter.
2865 * @invocation: (transfer full): A #GDBusMethodInvocation.
2867 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.ReleaseSession">ReleaseSession()</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.
2869 * This method will free @invocation, you cannot use it afterwards.
2872 org_bluez_adapter_complete_release_session (
2873 OrgBluezAdapter *object,
2874 GDBusMethodInvocation *invocation)
2876 g_dbus_method_invocation_return_value (invocation,
2877 g_variant_new ("()"));
2881 * org_bluez_adapter_complete_start_discovery:
2882 * @object: A #OrgBluezAdapter.
2883 * @invocation: (transfer full): A #GDBusMethodInvocation.
2885 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.StartDiscovery">StartDiscovery()</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.
2887 * This method will free @invocation, you cannot use it afterwards.
2890 org_bluez_adapter_complete_start_discovery (
2891 OrgBluezAdapter *object,
2892 GDBusMethodInvocation *invocation)
2894 g_dbus_method_invocation_return_value (invocation,
2895 g_variant_new ("()"));
2899 * org_bluez_adapter_complete_stop_discovery:
2900 * @object: A #OrgBluezAdapter.
2901 * @invocation: (transfer full): A #GDBusMethodInvocation.
2903 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.StopDiscovery">StopDiscovery()</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.
2905 * This method will free @invocation, you cannot use it afterwards.
2908 org_bluez_adapter_complete_stop_discovery (
2909 OrgBluezAdapter *object,
2910 GDBusMethodInvocation *invocation)
2912 g_dbus_method_invocation_return_value (invocation,
2913 g_variant_new ("()"));
2917 * org_bluez_adapter_complete_list_devices:
2918 * @object: A #OrgBluezAdapter.
2919 * @invocation: (transfer full): A #GDBusMethodInvocation.
2920 * @unnamed_arg0: Parameter to return.
2922 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.ListDevices">ListDevices()</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.
2924 * This method will free @invocation, you cannot use it afterwards.
2927 org_bluez_adapter_complete_list_devices (
2928 OrgBluezAdapter *object,
2929 GDBusMethodInvocation *invocation,
2930 const gchar *const *unnamed_arg0)
2932 g_dbus_method_invocation_return_value (invocation,
2933 g_variant_new ("(^ao)",
2938 * org_bluez_adapter_complete_create_device:
2939 * @object: A #OrgBluezAdapter.
2940 * @invocation: (transfer full): A #GDBusMethodInvocation.
2941 * @unnamed_arg1: Parameter to return.
2943 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.CreateDevice">CreateDevice()</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.
2945 * This method will free @invocation, you cannot use it afterwards.
2948 org_bluez_adapter_complete_create_device (
2949 OrgBluezAdapter *object,
2950 GDBusMethodInvocation *invocation,
2951 const gchar *unnamed_arg1)
2953 g_dbus_method_invocation_return_value (invocation,
2954 g_variant_new ("(o)",
2959 * org_bluez_adapter_complete_create_paired_device:
2960 * @object: A #OrgBluezAdapter.
2961 * @invocation: (transfer full): A #GDBusMethodInvocation.
2962 * @unnamed_arg3: Parameter to return.
2964 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.CreatePairedDevice">CreatePairedDevice()</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.
2966 * This method will free @invocation, you cannot use it afterwards.
2969 org_bluez_adapter_complete_create_paired_device (
2970 OrgBluezAdapter *object,
2971 GDBusMethodInvocation *invocation,
2972 const gchar *unnamed_arg3)
2974 g_dbus_method_invocation_return_value (invocation,
2975 g_variant_new ("(o)",
2980 * org_bluez_adapter_complete_cancel_device_creation:
2981 * @object: A #OrgBluezAdapter.
2982 * @invocation: (transfer full): A #GDBusMethodInvocation.
2984 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.CancelDeviceCreation">CancelDeviceCreation()</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.
2986 * This method will free @invocation, you cannot use it afterwards.
2989 org_bluez_adapter_complete_cancel_device_creation (
2990 OrgBluezAdapter *object,
2991 GDBusMethodInvocation *invocation)
2993 g_dbus_method_invocation_return_value (invocation,
2994 g_variant_new ("()"));
2998 * org_bluez_adapter_complete_remove_device:
2999 * @object: A #OrgBluezAdapter.
3000 * @invocation: (transfer full): A #GDBusMethodInvocation.
3002 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.RemoveDevice">RemoveDevice()</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.
3004 * This method will free @invocation, you cannot use it afterwards.
3007 org_bluez_adapter_complete_remove_device (
3008 OrgBluezAdapter *object,
3009 GDBusMethodInvocation *invocation)
3011 g_dbus_method_invocation_return_value (invocation,
3012 g_variant_new ("()"));
3016 * org_bluez_adapter_complete_find_device:
3017 * @object: A #OrgBluezAdapter.
3018 * @invocation: (transfer full): A #GDBusMethodInvocation.
3019 * @unnamed_arg1: Parameter to return.
3021 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.FindDevice">FindDevice()</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.
3023 * This method will free @invocation, you cannot use it afterwards.
3026 org_bluez_adapter_complete_find_device (
3027 OrgBluezAdapter *object,
3028 GDBusMethodInvocation *invocation,
3029 const gchar *unnamed_arg1)
3031 g_dbus_method_invocation_return_value (invocation,
3032 g_variant_new ("(o)",
3037 * org_bluez_adapter_complete_register_agent:
3038 * @object: A #OrgBluezAdapter.
3039 * @invocation: (transfer full): A #GDBusMethodInvocation.
3041 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.RegisterAgent">RegisterAgent()</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.
3043 * This method will free @invocation, you cannot use it afterwards.
3046 org_bluez_adapter_complete_register_agent (
3047 OrgBluezAdapter *object,
3048 GDBusMethodInvocation *invocation)
3050 g_dbus_method_invocation_return_value (invocation,
3051 g_variant_new ("()"));
3055 * org_bluez_adapter_complete_unregister_agent:
3056 * @object: A #OrgBluezAdapter.
3057 * @invocation: (transfer full): A #GDBusMethodInvocation.
3059 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-bluez-Adapter.UnregisterAgent">UnregisterAgent()</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.
3061 * This method will free @invocation, you cannot use it afterwards.
3064 org_bluez_adapter_complete_unregister_agent (
3065 OrgBluezAdapter *object,
3066 GDBusMethodInvocation *invocation)
3068 g_dbus_method_invocation_return_value (invocation,
3069 g_variant_new ("()"));
3072 /* ------------------------------------------------------------------------ */
3075 * OrgBluezAdapterProxy:
3077 * The #OrgBluezAdapterProxy structure contains only private data and should only be accessed using the provided API.
3081 * OrgBluezAdapterProxyClass:
3082 * @parent_class: The parent class.
3084 * Class structure for #OrgBluezAdapterProxy.
3087 struct _OrgBluezAdapterProxyPrivate
3092 static void org_bluez_adapter_proxy_iface_init (OrgBluezAdapterIface *iface);
3094 G_DEFINE_TYPE_WITH_CODE (OrgBluezAdapterProxy, org_bluez_adapter_proxy, G_TYPE_DBUS_PROXY,
3095 G_IMPLEMENT_INTERFACE (TYPE_ORG_BLUEZ_ADAPTER, org_bluez_adapter_proxy_iface_init));
3098 org_bluez_adapter_proxy_finalize (GObject *object)
3100 OrgBluezAdapterProxy *proxy = ORG_BLUEZ_ADAPTER_PROXY (object);
3101 g_datalist_clear (&proxy->priv->qdata);
3102 G_OBJECT_CLASS (org_bluez_adapter_proxy_parent_class)->finalize (object);
3106 org_bluez_adapter_proxy_get_property (GObject *object,
3114 org_bluez_adapter_proxy_set_property (GObject *object,
3116 const GValue *value,
3122 org_bluez_adapter_proxy_g_signal (GDBusProxy *proxy,
3123 const gchar *sender_name,
3124 const gchar *signal_name,
3125 GVariant *parameters)
3127 _ExtendedGDBusSignalInfo *info;
3134 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_bluez_adapter_interface_info, signal_name);
3137 num_params = g_variant_n_children (parameters);
3138 paramv = g_new0 (GValue, num_params + 1);
3139 g_value_init (¶mv[0], TYPE_ORG_BLUEZ_ADAPTER);
3140 g_value_set_object (¶mv[0], proxy);
3141 g_variant_iter_init (&iter, parameters);
3143 while ((child = g_variant_iter_next_value (&iter)) != NULL)
3145 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
3146 if (arg_info->use_gvariant)
3148 g_value_init (¶mv[n], G_TYPE_VARIANT);
3149 g_value_set_variant (¶mv[n], child);
3153 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
3154 g_variant_unref (child);
3156 signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_BLUEZ_ADAPTER);
3157 g_signal_emitv (paramv, signal_id, 0, NULL);
3158 for (n = 0; n < num_params + 1; n++)
3159 g_value_unset (¶mv[n]);
3164 org_bluez_adapter_proxy_g_properties_changed (GDBusProxy *_proxy,
3165 GVariant *changed_properties,
3166 const gchar *const *invalidated_properties)
3168 OrgBluezAdapterProxy *proxy = ORG_BLUEZ_ADAPTER_PROXY (_proxy);
3172 _ExtendedGDBusPropertyInfo *info;
3173 g_variant_get (changed_properties, "a{sv}", &iter);
3174 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
3176 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_bluez_adapter_interface_info, key);
3177 g_datalist_remove_data (&proxy->priv->qdata, key);
3179 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
3181 g_variant_iter_free (iter);
3182 for (n = 0; invalidated_properties[n] != NULL; n++)
3184 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_bluez_adapter_interface_info, invalidated_properties[n]);
3185 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
3187 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
3192 org_bluez_adapter_proxy_init (OrgBluezAdapterProxy *proxy)
3194 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_BLUEZ_ADAPTER_PROXY, OrgBluezAdapterProxyPrivate);
3195 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_bluez_adapter_interface_info ());
3199 org_bluez_adapter_proxy_class_init (OrgBluezAdapterProxyClass *klass)
3201 GObjectClass *gobject_class;
3202 GDBusProxyClass *proxy_class;
3204 g_type_class_add_private (klass, sizeof (OrgBluezAdapterProxyPrivate));
3206 gobject_class = G_OBJECT_CLASS (klass);
3207 gobject_class->finalize = org_bluez_adapter_proxy_finalize;
3208 gobject_class->get_property = org_bluez_adapter_proxy_get_property;
3209 gobject_class->set_property = org_bluez_adapter_proxy_set_property;
3211 proxy_class = G_DBUS_PROXY_CLASS (klass);
3212 proxy_class->g_signal = org_bluez_adapter_proxy_g_signal;
3213 proxy_class->g_properties_changed = org_bluez_adapter_proxy_g_properties_changed;
3218 org_bluez_adapter_proxy_iface_init (OrgBluezAdapterIface *iface)
3223 * org_bluez_adapter_proxy_new:
3224 * @connection: A #GDBusConnection.
3225 * @flags: Flags from the #GDBusProxyFlags enumeration.
3226 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
3227 * @object_path: An object path.
3228 * @cancellable: (allow-none): A #GCancellable or %NULL.
3229 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
3230 * @user_data: User data to pass to @callback.
3232 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-bluez-Adapter.top_of_page">org.bluez.Adapter</link>. See g_dbus_proxy_new() for more details.
3234 * 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.
3235 * You can then call org_bluez_adapter_proxy_new_finish() to get the result of the operation.
3237 * See org_bluez_adapter_proxy_new_sync() for the synchronous, blocking version of this constructor.
3240 org_bluez_adapter_proxy_new (
3241 GDBusConnection *connection,
3242 GDBusProxyFlags flags,
3244 const gchar *object_path,
3245 GCancellable *cancellable,
3246 GAsyncReadyCallback callback,
3249 g_async_initable_new_async (TYPE_ORG_BLUEZ_ADAPTER_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.bluez.Adapter", NULL);
3253 * org_bluez_adapter_proxy_new_finish:
3254 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_proxy_new().
3255 * @error: Return location for error or %NULL
3257 * Finishes an operation started with org_bluez_adapter_proxy_new().
3259 * Returns: (transfer full) (type OrgBluezAdapterProxy): The constructed proxy object or %NULL if @error is set.
3262 org_bluez_adapter_proxy_new_finish (
3267 GObject *source_object;
3268 source_object = g_async_result_get_source_object (res);
3269 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
3270 g_object_unref (source_object);
3272 return ORG_BLUEZ_ADAPTER (ret);
3278 * org_bluez_adapter_proxy_new_sync:
3279 * @connection: A #GDBusConnection.
3280 * @flags: Flags from the #GDBusProxyFlags enumeration.
3281 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
3282 * @object_path: An object path.
3283 * @cancellable: (allow-none): A #GCancellable or %NULL.
3284 * @error: Return location for error or %NULL
3286 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-bluez-Adapter.top_of_page">org.bluez.Adapter</link>. See g_dbus_proxy_new_sync() for more details.
3288 * The calling thread is blocked until a reply is received.
3290 * See org_bluez_adapter_proxy_new() for the asynchronous version of this constructor.
3292 * Returns: (transfer full) (type OrgBluezAdapterProxy): The constructed proxy object or %NULL if @error is set.
3295 org_bluez_adapter_proxy_new_sync (
3296 GDBusConnection *connection,
3297 GDBusProxyFlags flags,
3299 const gchar *object_path,
3300 GCancellable *cancellable,
3304 ret = g_initable_new (TYPE_ORG_BLUEZ_ADAPTER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.bluez.Adapter", NULL);
3306 return ORG_BLUEZ_ADAPTER (ret);
3313 * org_bluez_adapter_proxy_new_for_bus:
3314 * @bus_type: A #GBusType.
3315 * @flags: Flags from the #GDBusProxyFlags enumeration.
3316 * @name: A bus name (well-known or unique).
3317 * @object_path: An object path.
3318 * @cancellable: (allow-none): A #GCancellable or %NULL.
3319 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
3320 * @user_data: User data to pass to @callback.
3322 * Like org_bluez_adapter_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
3324 * 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.
3325 * You can then call org_bluez_adapter_proxy_new_for_bus_finish() to get the result of the operation.
3327 * See org_bluez_adapter_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
3330 org_bluez_adapter_proxy_new_for_bus (
3332 GDBusProxyFlags flags,
3334 const gchar *object_path,
3335 GCancellable *cancellable,
3336 GAsyncReadyCallback callback,
3339 g_async_initable_new_async (TYPE_ORG_BLUEZ_ADAPTER_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.bluez.Adapter", NULL);
3343 * org_bluez_adapter_proxy_new_for_bus_finish:
3344 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_bluez_adapter_proxy_new_for_bus().
3345 * @error: Return location for error or %NULL
3347 * Finishes an operation started with org_bluez_adapter_proxy_new_for_bus().
3349 * Returns: (transfer full) (type OrgBluezAdapterProxy): The constructed proxy object or %NULL if @error is set.
3352 org_bluez_adapter_proxy_new_for_bus_finish (
3357 GObject *source_object;
3358 source_object = g_async_result_get_source_object (res);
3359 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
3360 g_object_unref (source_object);
3362 return ORG_BLUEZ_ADAPTER (ret);
3368 * org_bluez_adapter_proxy_new_for_bus_sync:
3369 * @bus_type: A #GBusType.
3370 * @flags: Flags from the #GDBusProxyFlags enumeration.
3371 * @name: A bus name (well-known or unique).
3372 * @object_path: An object path.
3373 * @cancellable: (allow-none): A #GCancellable or %NULL.
3374 * @error: Return location for error or %NULL
3376 * Like org_bluez_adapter_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
3378 * The calling thread is blocked until a reply is received.
3380 * See org_bluez_adapter_proxy_new_for_bus() for the asynchronous version of this constructor.
3382 * Returns: (transfer full) (type OrgBluezAdapterProxy): The constructed proxy object or %NULL if @error is set.
3385 org_bluez_adapter_proxy_new_for_bus_sync (
3387 GDBusProxyFlags flags,
3389 const gchar *object_path,
3390 GCancellable *cancellable,
3394 ret = g_initable_new (TYPE_ORG_BLUEZ_ADAPTER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.bluez.Adapter", NULL);
3396 return ORG_BLUEZ_ADAPTER (ret);
3402 /* ------------------------------------------------------------------------ */
3405 * OrgBluezAdapterSkeleton:
3407 * The #OrgBluezAdapterSkeleton structure contains only private data and should only be accessed using the provided API.
3411 * OrgBluezAdapterSkeletonClass:
3412 * @parent_class: The parent class.
3414 * Class structure for #OrgBluezAdapterSkeleton.
3417 struct _OrgBluezAdapterSkeletonPrivate
3420 GList *changed_properties;
3421 GSource *changed_properties_idle_source;
3422 GMainContext *context;
3427 _org_bluez_adapter_skeleton_handle_method_call (
3428 GDBusConnection *connection,
3429 const gchar *sender,
3430 const gchar *object_path,
3431 const gchar *interface_name,
3432 const gchar *method_name,
3433 GVariant *parameters,
3434 GDBusMethodInvocation *invocation,
3437 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (user_data);
3438 _ExtendedGDBusMethodInfo *info;
3446 GValue return_value = G_VALUE_INIT;
3447 info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
3448 g_assert (info != NULL);
3449 num_params = g_variant_n_children (parameters);
3450 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
3452 g_value_init (¶mv[n], TYPE_ORG_BLUEZ_ADAPTER);
3453 g_value_set_object (¶mv[n++], skeleton);
3454 g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
3455 g_value_set_object (¶mv[n++], invocation);
3456 if (info->pass_fdlist)
3459 g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
3460 g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
3462 g_assert_not_reached ();
3465 g_variant_iter_init (&iter, parameters);
3466 while ((child = g_variant_iter_next_value (&iter)) != NULL)
3468 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
3469 if (arg_info->use_gvariant)
3471 g_value_init (¶mv[n], G_TYPE_VARIANT);
3472 g_value_set_variant (¶mv[n], child);
3476 g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
3477 g_variant_unref (child);
3479 signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_BLUEZ_ADAPTER);
3480 g_value_init (&return_value, G_TYPE_BOOLEAN);
3481 g_signal_emitv (paramv, signal_id, 0, &return_value);
3482 if (!g_value_get_boolean (&return_value))
3483 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);
3484 g_value_unset (&return_value);
3485 for (n = 0; n < num_params + num_extra; n++)
3486 g_value_unset (¶mv[n]);
3491 _org_bluez_adapter_skeleton_handle_get_property (
3492 GDBusConnection *connection,
3493 const gchar *sender,
3494 const gchar *object_path,
3495 const gchar *interface_name,
3496 const gchar *property_name,
3500 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (user_data);
3501 GValue value = G_VALUE_INIT;
3503 _ExtendedGDBusPropertyInfo *info;
3506 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_bluez_adapter_interface_info, property_name);
3507 g_assert (info != NULL);
3508 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
3511 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
3515 g_value_init (&value, pspec->value_type);
3516 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
3517 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
3518 g_value_unset (&value);
3524 _org_bluez_adapter_skeleton_handle_set_property (
3525 GDBusConnection *connection,
3526 const gchar *sender,
3527 const gchar *object_path,
3528 const gchar *interface_name,
3529 const gchar *property_name,
3534 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (user_data);
3535 GValue value = G_VALUE_INIT;
3537 _ExtendedGDBusPropertyInfo *info;
3540 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_bluez_adapter_interface_info, property_name);
3541 g_assert (info != NULL);
3542 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
3545 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
3549 if (info->use_gvariant)
3550 g_value_set_variant (&value, variant);
3552 g_dbus_gvariant_to_gvalue (variant, &value);
3553 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
3554 g_value_unset (&value);
3560 static const GDBusInterfaceVTable _org_bluez_adapter_skeleton_vtable =
3562 _org_bluez_adapter_skeleton_handle_method_call,
3563 _org_bluez_adapter_skeleton_handle_get_property,
3564 _org_bluez_adapter_skeleton_handle_set_property
3567 static GDBusInterfaceInfo *
3568 org_bluez_adapter_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
3570 return org_bluez_adapter_interface_info ();
3573 static GDBusInterfaceVTable *
3574 org_bluez_adapter_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
3576 return (GDBusInterfaceVTable *) &_org_bluez_adapter_skeleton_vtable;
3580 org_bluez_adapter_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
3582 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (_skeleton);
3584 GVariantBuilder builder;
3586 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
3587 if (_org_bluez_adapter_interface_info.parent_struct.properties == NULL)
3589 for (n = 0; _org_bluez_adapter_interface_info.parent_struct.properties[n] != NULL; n++)
3591 GDBusPropertyInfo *info = _org_bluez_adapter_interface_info.parent_struct.properties[n];
3592 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
3595 value = _org_bluez_adapter_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.bluez.Adapter", info->name, NULL, skeleton);
3598 g_variant_take_ref (value);
3599 g_variant_builder_add (&builder, "{sv}", info->name, value);
3600 g_variant_unref (value);
3605 return g_variant_builder_end (&builder);
3609 org_bluez_adapter_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
3614 _org_bluez_adapter_on_signal_property_changed (
3615 OrgBluezAdapter *object,
3616 const gchar *arg_unnamed_arg0,
3617 GVariant *arg_unnamed_arg1)
3619 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (object);
3621 GList *connections, *l;
3622 GVariant *signal_variant;
3623 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3625 signal_variant = g_variant_ref_sink (g_variant_new ("(s@v)",
3628 for (l = connections; l != NULL; l = l->next)
3630 GDBusConnection *connection = l->data;
3631 g_dbus_connection_emit_signal (connection,
3632 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.bluez.Adapter", "PropertyChanged",
3633 signal_variant, NULL);
3635 g_variant_unref (signal_variant);
3636 g_list_free_full (connections, g_object_unref);
3640 _org_bluez_adapter_on_signal_device_created (
3641 OrgBluezAdapter *object,
3642 const gchar *arg_unnamed_arg0)
3644 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (object);
3646 GList *connections, *l;
3647 GVariant *signal_variant;
3648 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3650 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
3652 for (l = connections; l != NULL; l = l->next)
3654 GDBusConnection *connection = l->data;
3655 g_dbus_connection_emit_signal (connection,
3656 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.bluez.Adapter", "DeviceCreated",
3657 signal_variant, NULL);
3659 g_variant_unref (signal_variant);
3660 g_list_free_full (connections, g_object_unref);
3664 _org_bluez_adapter_on_signal_device_removed (
3665 OrgBluezAdapter *object,
3666 const gchar *arg_unnamed_arg0)
3668 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (object);
3670 GList *connections, *l;
3671 GVariant *signal_variant;
3672 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3674 signal_variant = g_variant_ref_sink (g_variant_new ("(o)",
3676 for (l = connections; l != NULL; l = l->next)
3678 GDBusConnection *connection = l->data;
3679 g_dbus_connection_emit_signal (connection,
3680 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.bluez.Adapter", "DeviceRemoved",
3681 signal_variant, NULL);
3683 g_variant_unref (signal_variant);
3684 g_list_free_full (connections, g_object_unref);
3688 _org_bluez_adapter_on_signal_device_found (
3689 OrgBluezAdapter *object,
3690 const gchar *arg_unnamed_arg0,
3691 GVariant *arg_unnamed_arg1)
3693 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (object);
3695 GList *connections, *l;
3696 GVariant *signal_variant;
3697 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3699 signal_variant = g_variant_ref_sink (g_variant_new ("(s@a{sv})",
3702 for (l = connections; l != NULL; l = l->next)
3704 GDBusConnection *connection = l->data;
3705 g_dbus_connection_emit_signal (connection,
3706 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.bluez.Adapter", "DeviceFound",
3707 signal_variant, NULL);
3709 g_variant_unref (signal_variant);
3710 g_list_free_full (connections, g_object_unref);
3714 _org_bluez_adapter_on_signal_device_disappeared (
3715 OrgBluezAdapter *object,
3716 const gchar *arg_unnamed_arg0)
3718 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (object);
3720 GList *connections, *l;
3721 GVariant *signal_variant;
3722 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3724 signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
3726 for (l = connections; l != NULL; l = l->next)
3728 GDBusConnection *connection = l->data;
3729 g_dbus_connection_emit_signal (connection,
3730 NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.bluez.Adapter", "DeviceDisappeared",
3731 signal_variant, NULL);
3733 g_variant_unref (signal_variant);
3734 g_list_free_full (connections, g_object_unref);
3737 static void org_bluez_adapter_skeleton_iface_init (OrgBluezAdapterIface *iface);
3738 G_DEFINE_TYPE_WITH_CODE (OrgBluezAdapterSkeleton, org_bluez_adapter_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
3739 G_IMPLEMENT_INTERFACE (TYPE_ORG_BLUEZ_ADAPTER, org_bluez_adapter_skeleton_iface_init));
3742 org_bluez_adapter_skeleton_finalize (GObject *object)
3744 OrgBluezAdapterSkeleton *skeleton = ORG_BLUEZ_ADAPTER_SKELETON (object);
3745 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
3746 if (skeleton->priv->changed_properties_idle_source != NULL)
3747 g_source_destroy (skeleton->priv->changed_properties_idle_source);
3748 g_main_context_unref (skeleton->priv->context);
3749 g_mutex_clear (&skeleton->priv->lock);
3750 G_OBJECT_CLASS (org_bluez_adapter_skeleton_parent_class)->finalize (object);
3754 org_bluez_adapter_skeleton_init (OrgBluezAdapterSkeleton *skeleton)
3756 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_BLUEZ_ADAPTER_SKELETON, OrgBluezAdapterSkeletonPrivate);
3757 g_mutex_init (&skeleton->priv->lock);
3758 skeleton->priv->context = g_main_context_ref_thread_default ();
3762 org_bluez_adapter_skeleton_class_init (OrgBluezAdapterSkeletonClass *klass)
3764 GObjectClass *gobject_class;
3765 GDBusInterfaceSkeletonClass *skeleton_class;
3767 g_type_class_add_private (klass, sizeof (OrgBluezAdapterSkeletonPrivate));
3769 gobject_class = G_OBJECT_CLASS (klass);
3770 gobject_class->finalize = org_bluez_adapter_skeleton_finalize;
3772 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
3773 skeleton_class->get_info = org_bluez_adapter_skeleton_dbus_interface_get_info;
3774 skeleton_class->get_properties = org_bluez_adapter_skeleton_dbus_interface_get_properties;
3775 skeleton_class->flush = org_bluez_adapter_skeleton_dbus_interface_flush;
3776 skeleton_class->get_vtable = org_bluez_adapter_skeleton_dbus_interface_get_vtable;
3780 org_bluez_adapter_skeleton_iface_init (OrgBluezAdapterIface *iface)
3782 iface->property_changed = _org_bluez_adapter_on_signal_property_changed;
3783 iface->device_created = _org_bluez_adapter_on_signal_device_created;
3784 iface->device_removed = _org_bluez_adapter_on_signal_device_removed;
3785 iface->device_found = _org_bluez_adapter_on_signal_device_found;
3786 iface->device_disappeared = _org_bluez_adapter_on_signal_device_disappeared;
3790 * org_bluez_adapter_skeleton_new:
3792 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-bluez-Adapter.top_of_page">org.bluez.Adapter</link>.
3794 * Returns: (transfer full) (type OrgBluezAdapterSkeleton): The skeleton object.
3797 org_bluez_adapter_skeleton_new (void)
3799 return ORG_BLUEZ_ADAPTER (g_object_new (TYPE_ORG_BLUEZ_ADAPTER_SKELETON, NULL));