+++ /dev/null
-/*
- * Generated by gdbus-codegen 2.44.1. DO NOT EDIT.
- *
- * The license of this code is the same as for the source it was derived from.
- */
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "ic-dbus.h"
-
-#include <string.h>
-#ifdef G_OS_UNIX
-# include <gio/gunixfdlist.h>
-#endif
-
-typedef struct
-{
- GDBusArgInfo parent_struct;
- gboolean use_gvariant;
-} _ExtendedGDBusArgInfo;
-
-typedef struct
-{
- GDBusMethodInfo parent_struct;
- const gchar *signal_name;
- gboolean pass_fdlist;
-} _ExtendedGDBusMethodInfo;
-
-typedef struct
-{
- GDBusSignalInfo parent_struct;
- const gchar *signal_name;
-} _ExtendedGDBusSignalInfo;
-
-typedef struct
-{
- GDBusPropertyInfo parent_struct;
- const gchar *hyphen_name;
- gboolean use_gvariant;
-} _ExtendedGDBusPropertyInfo;
-
-typedef struct
-{
- GDBusInterfaceInfo parent_struct;
- const gchar *hyphen_name;
-} _ExtendedGDBusInterfaceInfo;
-
-typedef struct
-{
- const _ExtendedGDBusPropertyInfo *info;
- guint prop_id;
- GValue orig_value; /* the value before the change */
-} ChangedProperty;
-
-static void
-_changed_property_free (ChangedProperty *data)
-{
- g_value_unset (&data->orig_value);
- g_free (data);
-}
-
-static gboolean
-_g_strv_equal0 (gchar **a, gchar **b)
-{
- gboolean ret = FALSE;
- guint n;
- if (a == NULL && b == NULL)
- {
- ret = TRUE;
- goto out;
- }
- if (a == NULL || b == NULL)
- goto out;
- if (g_strv_length (a) != g_strv_length (b))
- goto out;
- for (n = 0; a[n] != NULL; n++)
- if (g_strcmp0 (a[n], b[n]) != 0)
- goto out;
- ret = TRUE;
-out:
- return ret;
-}
-
-static gboolean
-_g_variant_equal0 (GVariant *a, GVariant *b)
-{
- gboolean ret = FALSE;
- if (a == NULL && b == NULL)
- {
- ret = TRUE;
- goto out;
- }
- if (a == NULL || b == NULL)
- goto out;
- ret = g_variant_equal (a, b);
-out:
- return ret;
-}
-
-G_GNUC_UNUSED static gboolean
-_g_value_equal (const GValue *a, const GValue *b)
-{
- gboolean ret = FALSE;
- g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
- switch (G_VALUE_TYPE (a))
- {
- case G_TYPE_BOOLEAN:
- ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
- break;
- case G_TYPE_UCHAR:
- ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
- break;
- case G_TYPE_INT:
- ret = (g_value_get_int (a) == g_value_get_int (b));
- break;
- case G_TYPE_UINT:
- ret = (g_value_get_uint (a) == g_value_get_uint (b));
- break;
- case G_TYPE_INT64:
- ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
- break;
- case G_TYPE_UINT64:
- ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
- break;
- case G_TYPE_DOUBLE:
- {
- /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
- gdouble da = g_value_get_double (a);
- gdouble db = g_value_get_double (b);
- ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
- }
- break;
- case G_TYPE_STRING:
- ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
- break;
- case G_TYPE_VARIANT:
- ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
- break;
- default:
- if (G_VALUE_TYPE (a) == G_TYPE_STRV)
- ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
- else
- g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
- break;
- }
- return ret;
-}
-
-/* ------------------------------------------------------------------------
- * Code for interface org.tizen.iotcon.dbus
- * ------------------------------------------------------------------------
- */
-
-/**
- * SECTION:icDbus
- * @title: icDbus
- * @short_description: Generated C code for the org.tizen.iotcon.dbus D-Bus interface
- *
- * This section contains code for working with the <link linkend="gdbus-interface-org-tizen-iotcon-dbus.top_of_page">org.tizen.iotcon.dbus</link> D-Bus interface in C.
- */
-
-/* ---- Introspection data for org.tizen.iotcon.dbus ---- */
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_resource_IN_ARG_uri =
-{
- {
- -1,
- (gchar *) "uri",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_resource_IN_ARG_resource_types =
-{
- {
- -1,
- (gchar *) "resource_types",
- (gchar *) "as",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_resource_IN_ARG_ifaces =
-{
- {
- -1,
- (gchar *) "ifaces",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_resource_IN_ARG_properties =
-{
- {
- -1,
- (gchar *) "properties",
- (gchar *) "y",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_resource_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_register_resource_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_register_resource_IN_ARG_uri,
- &_ic_dbus_method_info_register_resource_IN_ARG_resource_types,
- &_ic_dbus_method_info_register_resource_IN_ARG_ifaces,
- &_ic_dbus_method_info_register_resource_IN_ARG_properties,
- &_ic_dbus_method_info_register_resource_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_resource_OUT_ARG_resource =
-{
- {
- -1,
- (gchar *) "resource",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_register_resource_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_register_resource_OUT_ARG_resource,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_register_resource =
-{
- {
- -1,
- (gchar *) "registerResource",
- (GDBusArgInfo **) &_ic_dbus_method_info_register_resource_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_register_resource_OUT_ARG_pointers,
- NULL
- },
- "handle-register-resource",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_unregister_resource_IN_ARG_resource =
-{
- {
- -1,
- (gchar *) "resource",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_unregister_resource_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_unregister_resource_IN_ARG_resource,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_unregister_resource_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_unregister_resource_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_unregister_resource_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_unregister_resource =
-{
- {
- -1,
- (gchar *) "unregisterResource",
- (GDBusArgInfo **) &_ic_dbus_method_info_unregister_resource_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_unregister_resource_OUT_ARG_pointers,
- NULL
- },
- "handle-unregister-resource",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_interface_IN_ARG_resource =
-{
- {
- -1,
- (gchar *) "resource",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_interface_IN_ARG_iface =
-{
- {
- -1,
- (gchar *) "iface",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_bind_interface_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_bind_interface_IN_ARG_resource,
- &_ic_dbus_method_info_bind_interface_IN_ARG_iface,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_interface_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_bind_interface_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_bind_interface_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_bind_interface =
-{
- {
- -1,
- (gchar *) "bindInterface",
- (GDBusArgInfo **) &_ic_dbus_method_info_bind_interface_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_bind_interface_OUT_ARG_pointers,
- NULL
- },
- "handle-bind-interface",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_type_IN_ARG_resource =
-{
- {
- -1,
- (gchar *) "resource",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_type_IN_ARG_type =
-{
- {
- -1,
- (gchar *) "type",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_bind_type_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_bind_type_IN_ARG_resource,
- &_ic_dbus_method_info_bind_type_IN_ARG_type,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_type_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_bind_type_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_bind_type_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_bind_type =
-{
- {
- -1,
- (gchar *) "bindType",
- (GDBusArgInfo **) &_ic_dbus_method_info_bind_type_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_bind_type_OUT_ARG_pointers,
- NULL
- },
- "handle-bind-type",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_resource_IN_ARG_parent =
-{
- {
- -1,
- (gchar *) "parent",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_resource_IN_ARG_child =
-{
- {
- -1,
- (gchar *) "child",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_bind_resource_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_bind_resource_IN_ARG_parent,
- &_ic_dbus_method_info_bind_resource_IN_ARG_child,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_bind_resource_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_bind_resource_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_bind_resource_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_bind_resource =
-{
- {
- -1,
- (gchar *) "bindResource",
- (GDBusArgInfo **) &_ic_dbus_method_info_bind_resource_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_bind_resource_OUT_ARG_pointers,
- NULL
- },
- "handle-bind-resource",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_unbind_resource_IN_ARG_parent =
-{
- {
- -1,
- (gchar *) "parent",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_unbind_resource_IN_ARG_child =
-{
- {
- -1,
- (gchar *) "child",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_unbind_resource_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_unbind_resource_IN_ARG_parent,
- &_ic_dbus_method_info_unbind_resource_IN_ARG_child,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_unbind_resource_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_unbind_resource_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_unbind_resource_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_unbind_resource =
-{
- {
- -1,
- (gchar *) "unbindResource",
- (GDBusArgInfo **) &_ic_dbus_method_info_unbind_resource_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_unbind_resource_OUT_ARG_pointers,
- NULL
- },
- "handle-unbind-resource",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_notify_list_of_observers_IN_ARG_resource =
-{
- {
- -1,
- (gchar *) "resource",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_notify_list_of_observers_IN_ARG_notify_msg =
-{
- {
- -1,
- (gchar *) "notify_msg",
- (gchar *) "a(iis)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_notify_list_of_observers_IN_ARG_observers =
-{
- {
- -1,
- (gchar *) "observers",
- (gchar *) "ai",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_notify_list_of_observers_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_notify_list_of_observers_IN_ARG_resource,
- &_ic_dbus_method_info_notify_list_of_observers_IN_ARG_notify_msg,
- &_ic_dbus_method_info_notify_list_of_observers_IN_ARG_observers,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_notify_list_of_observers_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_notify_list_of_observers_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_notify_list_of_observers_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_notify_list_of_observers =
-{
- {
- -1,
- (gchar *) "notifyListOfObservers",
- (GDBusArgInfo **) &_ic_dbus_method_info_notify_list_of_observers_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_notify_list_of_observers_OUT_ARG_pointers,
- NULL
- },
- "handle-notify-list-of-observers",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_notify_all_IN_ARG_resource =
-{
- {
- -1,
- (gchar *) "resource",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_notify_all_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_notify_all_IN_ARG_resource,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_notify_all_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_notify_all_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_notify_all_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_notify_all =
-{
- {
- -1,
- (gchar *) "notifyAll",
- (GDBusArgInfo **) &_ic_dbus_method_info_notify_all_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_notify_all_OUT_ARG_pointers,
- NULL
- },
- "handle-notify-all",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_send_response_IN_ARG_response =
-{
- {
- -1,
- (gchar *) "response",
- (gchar *) "(sia(qs)iisii)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_send_response_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_send_response_IN_ARG_response,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_send_response_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_send_response_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_send_response_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_send_response =
-{
- {
- -1,
- (gchar *) "sendResponse",
- (GDBusArgInfo **) &_ic_dbus_method_info_send_response_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_send_response_OUT_ARG_pointers,
- NULL
- },
- "handle-send-response",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_find_resource_IN_ARG_host_address =
-{
- {
- -1,
- (gchar *) "host_address",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_find_resource_IN_ARG_type =
-{
- {
- -1,
- (gchar *) "type",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_find_resource_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_find_resource_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_find_resource_IN_ARG_host_address,
- &_ic_dbus_method_info_find_resource_IN_ARG_type,
- &_ic_dbus_method_info_find_resource_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_find_resource_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_find_resource_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_find_resource_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_find_resource =
-{
- {
- -1,
- (gchar *) "findResource",
- (GDBusArgInfo **) &_ic_dbus_method_info_find_resource_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_find_resource_OUT_ARG_pointers,
- NULL
- },
- "handle-find-resource",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_IN_ARG_client =
-{
- {
- -1,
- (gchar *) "client",
- (gchar *) "(ssba(qs)asii)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_IN_ARG_query =
-{
- {
- -1,
- (gchar *) "query",
- (gchar *) "a(ss)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_get_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_get_IN_ARG_client,
- &_ic_dbus_method_info_get_IN_ARG_query,
- &_ic_dbus_method_info_get_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_get_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_get_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_get =
-{
- {
- -1,
- (gchar *) "get",
- (GDBusArgInfo **) &_ic_dbus_method_info_get_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_get_OUT_ARG_pointers,
- NULL
- },
- "handle-get",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_put_IN_ARG_client =
-{
- {
- -1,
- (gchar *) "client",
- (gchar *) "(ssba(qs)asii)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_put_IN_ARG_repr =
-{
- {
- -1,
- (gchar *) "repr",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_put_IN_ARG_query =
-{
- {
- -1,
- (gchar *) "query",
- (gchar *) "a(ss)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_put_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_put_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_put_IN_ARG_client,
- &_ic_dbus_method_info_put_IN_ARG_repr,
- &_ic_dbus_method_info_put_IN_ARG_query,
- &_ic_dbus_method_info_put_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_put_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_put_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_put_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_put =
-{
- {
- -1,
- (gchar *) "put",
- (GDBusArgInfo **) &_ic_dbus_method_info_put_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_put_OUT_ARG_pointers,
- NULL
- },
- "handle-put",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_post_IN_ARG_client =
-{
- {
- -1,
- (gchar *) "client",
- (gchar *) "(ssba(qs)asii)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_post_IN_ARG_repr =
-{
- {
- -1,
- (gchar *) "repr",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_post_IN_ARG_query =
-{
- {
- -1,
- (gchar *) "query",
- (gchar *) "a(ss)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_post_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_post_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_post_IN_ARG_client,
- &_ic_dbus_method_info_post_IN_ARG_repr,
- &_ic_dbus_method_info_post_IN_ARG_query,
- &_ic_dbus_method_info_post_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_post_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_post_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_post_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_post =
-{
- {
- -1,
- (gchar *) "post",
- (GDBusArgInfo **) &_ic_dbus_method_info_post_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_post_OUT_ARG_pointers,
- NULL
- },
- "handle-post",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_delete_IN_ARG_client =
-{
- {
- -1,
- (gchar *) "client",
- (gchar *) "(ssba(qs)asii)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_delete_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_delete_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_delete_IN_ARG_client,
- &_ic_dbus_method_info_delete_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_delete_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_delete_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_delete_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_delete =
-{
- {
- -1,
- (gchar *) "delete",
- (GDBusArgInfo **) &_ic_dbus_method_info_delete_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_delete_OUT_ARG_pointers,
- NULL
- },
- "handle-delete",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_observer_start_IN_ARG_client =
-{
- {
- -1,
- (gchar *) "client",
- (gchar *) "(ssba(qs)asii)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_observer_start_IN_ARG_observe_type =
-{
- {
- -1,
- (gchar *) "observe_type",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_observer_start_IN_ARG_query =
-{
- {
- -1,
- (gchar *) "query",
- (gchar *) "a(ss)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_observer_start_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_observer_start_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_observer_start_IN_ARG_client,
- &_ic_dbus_method_info_observer_start_IN_ARG_observe_type,
- &_ic_dbus_method_info_observer_start_IN_ARG_query,
- &_ic_dbus_method_info_observer_start_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_observer_start_OUT_ARG_observe_h =
-{
- {
- -1,
- (gchar *) "observe_h",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_observer_start_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_observer_start_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_observer_start_OUT_ARG_observe_h,
- &_ic_dbus_method_info_observer_start_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_observer_start =
-{
- {
- -1,
- (gchar *) "observerStart",
- (GDBusArgInfo **) &_ic_dbus_method_info_observer_start_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_observer_start_OUT_ARG_pointers,
- NULL
- },
- "handle-observer-start",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_observer_stop_IN_ARG_observe_h =
-{
- {
- -1,
- (gchar *) "observe_h",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_observer_stop_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_observer_stop_IN_ARG_observe_h,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_observer_stop_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_observer_stop_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_observer_stop_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_observer_stop =
-{
- {
- -1,
- (gchar *) "observerStop",
- (GDBusArgInfo **) &_ic_dbus_method_info_observer_stop_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_observer_stop_OUT_ARG_pointers,
- NULL
- },
- "handle-observer-stop",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_device_info_IN_ARG_device_info =
-{
- {
- -1,
- (gchar *) "device_info",
- (gchar *) "(ssssssssssss)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_register_device_info_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_register_device_info_IN_ARG_device_info,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_device_info_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_register_device_info_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_register_device_info_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_register_device_info =
-{
- {
- -1,
- (gchar *) "registerDeviceInfo",
- (GDBusArgInfo **) &_ic_dbus_method_info_register_device_info_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_register_device_info_OUT_ARG_pointers,
- NULL
- },
- "handle-register-device-info",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_device_info_IN_ARG_host_address =
-{
- {
- -1,
- (gchar *) "host_address",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_device_info_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_get_device_info_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_get_device_info_IN_ARG_host_address,
- &_ic_dbus_method_info_get_device_info_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_device_info_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_get_device_info_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_get_device_info_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_get_device_info =
-{
- {
- -1,
- (gchar *) "getDeviceInfo",
- (GDBusArgInfo **) &_ic_dbus_method_info_get_device_info_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_get_device_info_OUT_ARG_pointers,
- NULL
- },
- "handle-get-device-info",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_platform_info_IN_ARG_platform_info =
-{
- {
- -1,
- (gchar *) "platform_info",
- (gchar *) "(sssssssssss)",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_register_platform_info_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_register_platform_info_IN_ARG_platform_info,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_register_platform_info_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_register_platform_info_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_register_platform_info_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_register_platform_info =
-{
- {
- -1,
- (gchar *) "registerPlatformInfo",
- (GDBusArgInfo **) &_ic_dbus_method_info_register_platform_info_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_register_platform_info_OUT_ARG_pointers,
- NULL
- },
- "handle-register-platform-info",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_platform_info_IN_ARG_host_address =
-{
- {
- -1,
- (gchar *) "host_address",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_platform_info_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_get_platform_info_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_get_platform_info_IN_ARG_host_address,
- &_ic_dbus_method_info_get_platform_info_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_get_platform_info_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_get_platform_info_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_get_platform_info_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_get_platform_info =
-{
- {
- -1,
- (gchar *) "getPlatformInfo",
- (GDBusArgInfo **) &_ic_dbus_method_info_get_platform_info_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_get_platform_info_OUT_ARG_pointers,
- NULL
- },
- "handle-get-platform-info",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_subscribe_presence_IN_ARG_host_address =
-{
- {
- -1,
- (gchar *) "host_address",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_subscribe_presence_IN_ARG_type =
-{
- {
- -1,
- (gchar *) "type",
- (gchar *) "s",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_subscribe_presence_IN_ARG_signal_number =
-{
- {
- -1,
- (gchar *) "signal_number",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_subscribe_presence_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_subscribe_presence_IN_ARG_host_address,
- &_ic_dbus_method_info_subscribe_presence_IN_ARG_type,
- &_ic_dbus_method_info_subscribe_presence_IN_ARG_signal_number,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_subscribe_presence_OUT_ARG_presence_h =
-{
- {
- -1,
- (gchar *) "presence_h",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_subscribe_presence_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_subscribe_presence_OUT_ARG_presence_h,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_subscribe_presence =
-{
- {
- -1,
- (gchar *) "subscribePresence",
- (GDBusArgInfo **) &_ic_dbus_method_info_subscribe_presence_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_subscribe_presence_OUT_ARG_pointers,
- NULL
- },
- "handle-subscribe-presence",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_unsubscribe_presence_IN_ARG_presence_h =
-{
- {
- -1,
- (gchar *) "presence_h",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_unsubscribe_presence_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_unsubscribe_presence_IN_ARG_presence_h,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_unsubscribe_presence_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_unsubscribe_presence_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_unsubscribe_presence_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_unsubscribe_presence =
-{
- {
- -1,
- (gchar *) "unsubscribePresence",
- (GDBusArgInfo **) &_ic_dbus_method_info_unsubscribe_presence_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_unsubscribe_presence_OUT_ARG_pointers,
- NULL
- },
- "handle-unsubscribe-presence",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_start_presence_IN_ARG_time_to_live =
-{
- {
- -1,
- (gchar *) "time_to_live",
- (gchar *) "u",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_start_presence_IN_ARG_pointers[] =
-{
- &_ic_dbus_method_info_start_presence_IN_ARG_time_to_live,
- NULL
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_start_presence_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_start_presence_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_start_presence_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_start_presence =
-{
- {
- -1,
- (gchar *) "startPresence",
- (GDBusArgInfo **) &_ic_dbus_method_info_start_presence_IN_ARG_pointers,
- (GDBusArgInfo **) &_ic_dbus_method_info_start_presence_OUT_ARG_pointers,
- NULL
- },
- "handle-start-presence",
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo _ic_dbus_method_info_stop_presence_OUT_ARG_ret =
-{
- {
- -1,
- (gchar *) "ret",
- (gchar *) "i",
- NULL
- },
- FALSE
-};
-
-static const _ExtendedGDBusArgInfo * const _ic_dbus_method_info_stop_presence_OUT_ARG_pointers[] =
-{
- &_ic_dbus_method_info_stop_presence_OUT_ARG_ret,
- NULL
-};
-
-static const _ExtendedGDBusMethodInfo _ic_dbus_method_info_stop_presence =
-{
- {
- -1,
- (gchar *) "stopPresence",
- NULL,
- (GDBusArgInfo **) &_ic_dbus_method_info_stop_presence_OUT_ARG_pointers,
- NULL
- },
- "handle-stop-presence",
- FALSE
-};
-
-static const _ExtendedGDBusMethodInfo * const _ic_dbus_method_info_pointers[] =
-{
- &_ic_dbus_method_info_register_resource,
- &_ic_dbus_method_info_unregister_resource,
- &_ic_dbus_method_info_bind_interface,
- &_ic_dbus_method_info_bind_type,
- &_ic_dbus_method_info_bind_resource,
- &_ic_dbus_method_info_unbind_resource,
- &_ic_dbus_method_info_notify_list_of_observers,
- &_ic_dbus_method_info_notify_all,
- &_ic_dbus_method_info_send_response,
- &_ic_dbus_method_info_find_resource,
- &_ic_dbus_method_info_get,
- &_ic_dbus_method_info_put,
- &_ic_dbus_method_info_post,
- &_ic_dbus_method_info_delete,
- &_ic_dbus_method_info_observer_start,
- &_ic_dbus_method_info_observer_stop,
- &_ic_dbus_method_info_register_device_info,
- &_ic_dbus_method_info_get_device_info,
- &_ic_dbus_method_info_register_platform_info,
- &_ic_dbus_method_info_get_platform_info,
- &_ic_dbus_method_info_subscribe_presence,
- &_ic_dbus_method_info_unsubscribe_presence,
- &_ic_dbus_method_info_start_presence,
- &_ic_dbus_method_info_stop_presence,
- NULL
-};
-
-static const _ExtendedGDBusInterfaceInfo _ic_dbus_interface_info =
-{
- {
- -1,
- (gchar *) "org.tizen.iotcon.dbus",
- (GDBusMethodInfo **) &_ic_dbus_method_info_pointers,
- NULL,
- NULL,
- NULL
- },
- "dbus",
-};
-
-
-/**
- * ic_dbus_interface_info:
- *
- * Gets a machine-readable description of the <link linkend="gdbus-interface-org-tizen-iotcon-dbus.top_of_page">org.tizen.iotcon.dbus</link> D-Bus interface.
- *
- * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
- */
-GDBusInterfaceInfo *
-ic_dbus_interface_info (void)
-{
- return (GDBusInterfaceInfo *) &_ic_dbus_interface_info.parent_struct;
-}
-
-/**
- * ic_dbus_override_properties:
- * @klass: The class structure for a #GObject<!-- -->-derived class.
- * @property_id_begin: The property id to assign to the first overridden property.
- *
- * Overrides all #GObject properties in the #icDbus interface for a concrete class.
- * The properties are overridden in the order they are defined.
- *
- * Returns: The last property id.
- */
-guint
-ic_dbus_override_properties (GObjectClass *klass, guint property_id_begin)
-{
- return property_id_begin - 1;
-}
-
-
-
-/**
- * icDbus:
- *
- * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-tizen-iotcon-dbus.top_of_page">org.tizen.iotcon.dbus</link>.
- */
-
-/**
- * icDbusIface:
- * @parent_iface: The parent interface.
- * @handle_bind_interface: Handler for the #icDbus::handle-bind-interface signal.
- * @handle_bind_resource: Handler for the #icDbus::handle-bind-resource signal.
- * @handle_bind_type: Handler for the #icDbus::handle-bind-type signal.
- * @handle_delete: Handler for the #icDbus::handle-delete signal.
- * @handle_find_resource: Handler for the #icDbus::handle-find-resource signal.
- * @handle_get: Handler for the #icDbus::handle-get signal.
- * @handle_get_device_info: Handler for the #icDbus::handle-get-device-info signal.
- * @handle_get_platform_info: Handler for the #icDbus::handle-get-platform-info signal.
- * @handle_notify_all: Handler for the #icDbus::handle-notify-all signal.
- * @handle_notify_list_of_observers: Handler for the #icDbus::handle-notify-list-of-observers signal.
- * @handle_observer_start: Handler for the #icDbus::handle-observer-start signal.
- * @handle_observer_stop: Handler for the #icDbus::handle-observer-stop signal.
- * @handle_post: Handler for the #icDbus::handle-post signal.
- * @handle_put: Handler for the #icDbus::handle-put signal.
- * @handle_register_device_info: Handler for the #icDbus::handle-register-device-info signal.
- * @handle_register_platform_info: Handler for the #icDbus::handle-register-platform-info signal.
- * @handle_register_resource: Handler for the #icDbus::handle-register-resource signal.
- * @handle_send_response: Handler for the #icDbus::handle-send-response signal.
- * @handle_start_presence: Handler for the #icDbus::handle-start-presence signal.
- * @handle_stop_presence: Handler for the #icDbus::handle-stop-presence signal.
- * @handle_subscribe_presence: Handler for the #icDbus::handle-subscribe-presence signal.
- * @handle_unbind_resource: Handler for the #icDbus::handle-unbind-resource signal.
- * @handle_unregister_resource: Handler for the #icDbus::handle-unregister-resource signal.
- * @handle_unsubscribe_presence: Handler for the #icDbus::handle-unsubscribe-presence signal.
- *
- * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-tizen-iotcon-dbus.top_of_page">org.tizen.iotcon.dbus</link>.
- */
-
-typedef icDbusIface icDbusInterface;
-G_DEFINE_INTERFACE (icDbus, ic_dbus, G_TYPE_OBJECT);
-
-static void
-ic_dbus_default_init (icDbusIface *iface)
-{
- /* GObject signals for incoming D-Bus method calls: */
- /**
- * icDbus::handle-register-resource:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_uri: Argument passed by remote caller.
- * @arg_resource_types: Argument passed by remote caller.
- * @arg_ifaces: Argument passed by remote caller.
- * @arg_properties: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerResource">registerResource()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_register_resource() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-register-resource",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_register_resource),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 6,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_INT, G_TYPE_UCHAR, G_TYPE_UINT);
-
- /**
- * icDbus::handle-unregister-resource:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_resource: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unregisterResource">unregisterResource()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_unregister_resource() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-unregister-resource",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_unregister_resource),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 2,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT);
-
- /**
- * icDbus::handle-bind-interface:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_resource: Argument passed by remote caller.
- * @arg_iface: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindInterface">bindInterface()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_bind_interface() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-bind-interface",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_bind_interface),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 3,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_INT);
-
- /**
- * icDbus::handle-bind-type:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_resource: Argument passed by remote caller.
- * @arg_type: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindType">bindType()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_bind_type() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-bind-type",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_bind_type),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 3,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_STRING);
-
- /**
- * icDbus::handle-bind-resource:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_parent: Argument passed by remote caller.
- * @arg_child: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindResource">bindResource()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_bind_resource() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-bind-resource",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_bind_resource),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 3,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_INT);
-
- /**
- * icDbus::handle-unbind-resource:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_parent: Argument passed by remote caller.
- * @arg_child: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unbindResource">unbindResource()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_unbind_resource() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-unbind-resource",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_unbind_resource),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 3,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_INT);
-
- /**
- * icDbus::handle-notify-list-of-observers:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_resource: Argument passed by remote caller.
- * @arg_notify_msg: Argument passed by remote caller.
- * @arg_observers: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.notifyListOfObservers">notifyListOfObservers()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_notify_list_of_observers() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-notify-list-of-observers",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_notify_list_of_observers),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 4,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT, G_TYPE_VARIANT, G_TYPE_VARIANT);
-
- /**
- * icDbus::handle-notify-all:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_resource: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.notifyAll">notifyAll()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_notify_all() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-notify-all",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_notify_all),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 2,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT);
-
- /**
- * icDbus::handle-send-response:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_response: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.sendResponse">sendResponse()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_send_response() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-send-response",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_send_response),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 2,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
-
- /**
- * icDbus::handle-find-resource:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_host_address: Argument passed by remote caller.
- * @arg_type: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.findResource">findResource()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_find_resource() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-find-resource",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_find_resource),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 4,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT);
-
- /**
- * icDbus::handle-get:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_client: Argument passed by remote caller.
- * @arg_query: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.get">get()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_get() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-get",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_get),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 4,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_VARIANT, G_TYPE_UINT);
-
- /**
- * icDbus::handle-put:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_client: Argument passed by remote caller.
- * @arg_repr: Argument passed by remote caller.
- * @arg_query: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.put">put()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_put() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-put",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_put),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 5,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_UINT);
-
- /**
- * icDbus::handle-post:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_client: Argument passed by remote caller.
- * @arg_repr: Argument passed by remote caller.
- * @arg_query: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.post">post()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_post() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-post",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_post),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 5,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_UINT);
-
- /**
- * icDbus::handle-delete:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_client: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.delete">delete()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_delete() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-delete",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_delete),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 3,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_UINT);
-
- /**
- * icDbus::handle-observer-start:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_client: Argument passed by remote caller.
- * @arg_observe_type: Argument passed by remote caller.
- * @arg_query: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.observerStart">observerStart()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_observer_start() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-observer-start",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_observer_start),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 5,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_INT, G_TYPE_VARIANT, G_TYPE_UINT);
-
- /**
- * icDbus::handle-observer-stop:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_observe_h: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.observerStop">observerStop()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_observer_stop() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-observer-stop",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_observer_stop),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 2,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT);
-
- /**
- * icDbus::handle-register-device-info:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_device_info: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerDeviceInfo">registerDeviceInfo()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_register_device_info() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-register-device-info",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_register_device_info),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 2,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
-
- /**
- * icDbus::handle-get-device-info:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_host_address: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.getDeviceInfo">getDeviceInfo()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_get_device_info() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-get-device-info",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_get_device_info),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 3,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT);
-
- /**
- * icDbus::handle-register-platform-info:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_platform_info: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerPlatformInfo">registerPlatformInfo()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_register_platform_info() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-register-platform-info",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_register_platform_info),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 2,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);
-
- /**
- * icDbus::handle-get-platform-info:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_host_address: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.getPlatformInfo">getPlatformInfo()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_get_platform_info() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-get-platform-info",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_get_platform_info),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 3,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT);
-
- /**
- * icDbus::handle-subscribe-presence:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_host_address: Argument passed by remote caller.
- * @arg_type: Argument passed by remote caller.
- * @arg_signal_number: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.subscribePresence">subscribePresence()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_subscribe_presence() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-subscribe-presence",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_subscribe_presence),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 4,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT);
-
- /**
- * icDbus::handle-unsubscribe-presence:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_presence_h: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unsubscribePresence">unsubscribePresence()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_unsubscribe_presence() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-unsubscribe-presence",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_unsubscribe_presence),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 2,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT);
-
- /**
- * icDbus::handle-start-presence:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- * @arg_time_to_live: Argument passed by remote caller.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.startPresence">startPresence()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_start_presence() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-start-presence",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_start_presence),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 2,
- G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
-
- /**
- * icDbus::handle-stop-presence:
- * @object: A #icDbus.
- * @invocation: A #GDBusMethodInvocation.
- *
- * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-tizen-iotcon-dbus.stopPresence">stopPresence()</link> D-Bus method.
- *
- * 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 ic_dbus_complete_stop_presence() 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.
- *
- * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
- */
- g_signal_new ("handle-stop-presence",
- G_TYPE_FROM_INTERFACE (iface),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (icDbusIface, handle_stop_presence),
- g_signal_accumulator_true_handled,
- NULL,
- g_cclosure_marshal_generic,
- G_TYPE_BOOLEAN,
- 1,
- G_TYPE_DBUS_METHOD_INVOCATION);
-
-}
-
-/**
- * ic_dbus_call_register_resource:
- * @proxy: A #icDbusProxy.
- * @arg_uri: Argument to pass with the method invocation.
- * @arg_resource_types: Argument to pass with the method invocation.
- * @arg_ifaces: Argument to pass with the method invocation.
- * @arg_properties: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerResource">registerResource()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_register_resource_finish() to get the result of the operation.
- *
- * See ic_dbus_call_register_resource_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_register_resource (
- icDbus *proxy,
- const gchar *arg_uri,
- const gchar *const *arg_resource_types,
- gint arg_ifaces,
- guchar arg_properties,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "registerResource",
- g_variant_new ("(s^asiyu)",
- arg_uri,
- arg_resource_types,
- arg_ifaces,
- arg_properties,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_register_resource_finish:
- * @proxy: A #icDbusProxy.
- * @out_resource: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_register_resource().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_register_resource().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_register_resource_finish (
- icDbus *proxy,
- gint *out_resource,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_resource);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_register_resource_sync:
- * @proxy: A #icDbusProxy.
- * @arg_uri: Argument to pass with the method invocation.
- * @arg_resource_types: Argument to pass with the method invocation.
- * @arg_ifaces: Argument to pass with the method invocation.
- * @arg_properties: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_resource: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerResource">registerResource()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_register_resource() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_register_resource_sync (
- icDbus *proxy,
- const gchar *arg_uri,
- const gchar *const *arg_resource_types,
- gint arg_ifaces,
- guchar arg_properties,
- guint arg_signal_number,
- gint *out_resource,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "registerResource",
- g_variant_new ("(s^asiyu)",
- arg_uri,
- arg_resource_types,
- arg_ifaces,
- arg_properties,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_resource);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_unregister_resource:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unregisterResource">unregisterResource()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_unregister_resource_finish() to get the result of the operation.
- *
- * See ic_dbus_call_unregister_resource_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_unregister_resource (
- icDbus *proxy,
- gint arg_resource,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "unregisterResource",
- g_variant_new ("(i)",
- arg_resource),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_unregister_resource_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_unregister_resource().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_unregister_resource().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_unregister_resource_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_unregister_resource_sync:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unregisterResource">unregisterResource()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_unregister_resource() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_unregister_resource_sync (
- icDbus *proxy,
- gint arg_resource,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "unregisterResource",
- g_variant_new ("(i)",
- arg_resource),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_bind_interface:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @arg_iface: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindInterface">bindInterface()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_bind_interface_finish() to get the result of the operation.
- *
- * See ic_dbus_call_bind_interface_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_bind_interface (
- icDbus *proxy,
- gint arg_resource,
- gint arg_iface,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "bindInterface",
- g_variant_new ("(ii)",
- arg_resource,
- arg_iface),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_bind_interface_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_bind_interface().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_bind_interface().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_bind_interface_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_bind_interface_sync:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @arg_iface: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindInterface">bindInterface()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_bind_interface() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_bind_interface_sync (
- icDbus *proxy,
- gint arg_resource,
- gint arg_iface,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "bindInterface",
- g_variant_new ("(ii)",
- arg_resource,
- arg_iface),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_bind_type:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @arg_type: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindType">bindType()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_bind_type_finish() to get the result of the operation.
- *
- * See ic_dbus_call_bind_type_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_bind_type (
- icDbus *proxy,
- gint arg_resource,
- const gchar *arg_type,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "bindType",
- g_variant_new ("(is)",
- arg_resource,
- arg_type),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_bind_type_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_bind_type().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_bind_type().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_bind_type_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_bind_type_sync:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @arg_type: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindType">bindType()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_bind_type() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_bind_type_sync (
- icDbus *proxy,
- gint arg_resource,
- const gchar *arg_type,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "bindType",
- g_variant_new ("(is)",
- arg_resource,
- arg_type),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_bind_resource:
- * @proxy: A #icDbusProxy.
- * @arg_parent: Argument to pass with the method invocation.
- * @arg_child: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindResource">bindResource()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_bind_resource_finish() to get the result of the operation.
- *
- * See ic_dbus_call_bind_resource_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_bind_resource (
- icDbus *proxy,
- gint arg_parent,
- gint arg_child,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "bindResource",
- g_variant_new ("(ii)",
- arg_parent,
- arg_child),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_bind_resource_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_bind_resource().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_bind_resource().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_bind_resource_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_bind_resource_sync:
- * @proxy: A #icDbusProxy.
- * @arg_parent: Argument to pass with the method invocation.
- * @arg_child: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindResource">bindResource()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_bind_resource() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_bind_resource_sync (
- icDbus *proxy,
- gint arg_parent,
- gint arg_child,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "bindResource",
- g_variant_new ("(ii)",
- arg_parent,
- arg_child),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_unbind_resource:
- * @proxy: A #icDbusProxy.
- * @arg_parent: Argument to pass with the method invocation.
- * @arg_child: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unbindResource">unbindResource()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_unbind_resource_finish() to get the result of the operation.
- *
- * See ic_dbus_call_unbind_resource_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_unbind_resource (
- icDbus *proxy,
- gint arg_parent,
- gint arg_child,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "unbindResource",
- g_variant_new ("(ii)",
- arg_parent,
- arg_child),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_unbind_resource_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_unbind_resource().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_unbind_resource().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_unbind_resource_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_unbind_resource_sync:
- * @proxy: A #icDbusProxy.
- * @arg_parent: Argument to pass with the method invocation.
- * @arg_child: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unbindResource">unbindResource()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_unbind_resource() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_unbind_resource_sync (
- icDbus *proxy,
- gint arg_parent,
- gint arg_child,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "unbindResource",
- g_variant_new ("(ii)",
- arg_parent,
- arg_child),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_notify_list_of_observers:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @arg_notify_msg: Argument to pass with the method invocation.
- * @arg_observers: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.notifyListOfObservers">notifyListOfObservers()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_notify_list_of_observers_finish() to get the result of the operation.
- *
- * See ic_dbus_call_notify_list_of_observers_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_notify_list_of_observers (
- icDbus *proxy,
- gint arg_resource,
- GVariant *arg_notify_msg,
- GVariant *arg_observers,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "notifyListOfObservers",
- g_variant_new ("(i@a(iis)@ai)",
- arg_resource,
- arg_notify_msg,
- arg_observers),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_notify_list_of_observers_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_notify_list_of_observers().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_notify_list_of_observers().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_notify_list_of_observers_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_notify_list_of_observers_sync:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @arg_notify_msg: Argument to pass with the method invocation.
- * @arg_observers: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.notifyListOfObservers">notifyListOfObservers()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_notify_list_of_observers() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_notify_list_of_observers_sync (
- icDbus *proxy,
- gint arg_resource,
- GVariant *arg_notify_msg,
- GVariant *arg_observers,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "notifyListOfObservers",
- g_variant_new ("(i@a(iis)@ai)",
- arg_resource,
- arg_notify_msg,
- arg_observers),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_notify_all:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.notifyAll">notifyAll()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_notify_all_finish() to get the result of the operation.
- *
- * See ic_dbus_call_notify_all_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_notify_all (
- icDbus *proxy,
- gint arg_resource,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "notifyAll",
- g_variant_new ("(i)",
- arg_resource),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_notify_all_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_notify_all().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_notify_all().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_notify_all_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_notify_all_sync:
- * @proxy: A #icDbusProxy.
- * @arg_resource: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.notifyAll">notifyAll()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_notify_all() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_notify_all_sync (
- icDbus *proxy,
- gint arg_resource,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "notifyAll",
- g_variant_new ("(i)",
- arg_resource),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_send_response:
- * @proxy: A #icDbusProxy.
- * @arg_response: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.sendResponse">sendResponse()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_send_response_finish() to get the result of the operation.
- *
- * See ic_dbus_call_send_response_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_send_response (
- icDbus *proxy,
- GVariant *arg_response,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "sendResponse",
- g_variant_new ("(@(sia(qs)iisii))",
- arg_response),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_send_response_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_send_response().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_send_response().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_send_response_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_send_response_sync:
- * @proxy: A #icDbusProxy.
- * @arg_response: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.sendResponse">sendResponse()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_send_response() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_send_response_sync (
- icDbus *proxy,
- GVariant *arg_response,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "sendResponse",
- g_variant_new ("(@(sia(qs)iisii))",
- arg_response),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_find_resource:
- * @proxy: A #icDbusProxy.
- * @arg_host_address: Argument to pass with the method invocation.
- * @arg_type: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.findResource">findResource()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_find_resource_finish() to get the result of the operation.
- *
- * See ic_dbus_call_find_resource_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_find_resource (
- icDbus *proxy,
- const gchar *arg_host_address,
- const gchar *arg_type,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "findResource",
- g_variant_new ("(ssu)",
- arg_host_address,
- arg_type,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_find_resource_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_find_resource().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_find_resource().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_find_resource_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_find_resource_sync:
- * @proxy: A #icDbusProxy.
- * @arg_host_address: Argument to pass with the method invocation.
- * @arg_type: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.findResource">findResource()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_find_resource() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_find_resource_sync (
- icDbus *proxy,
- const gchar *arg_host_address,
- const gchar *arg_type,
- guint arg_signal_number,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "findResource",
- g_variant_new ("(ssu)",
- arg_host_address,
- arg_type,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_get:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_query: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.get">get()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_get_finish() to get the result of the operation.
- *
- * See ic_dbus_call_get_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_get (
- icDbus *proxy,
- GVariant *arg_client,
- GVariant *arg_query,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "get",
- g_variant_new ("(@(ssba(qs)asii)@a(ss)u)",
- arg_client,
- arg_query,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_get_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_get().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_get().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_get_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_get_sync:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_query: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.get">get()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_get() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_get_sync (
- icDbus *proxy,
- GVariant *arg_client,
- GVariant *arg_query,
- guint arg_signal_number,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "get",
- g_variant_new ("(@(ssba(qs)asii)@a(ss)u)",
- arg_client,
- arg_query,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_put:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_repr: Argument to pass with the method invocation.
- * @arg_query: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.put">put()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_put_finish() to get the result of the operation.
- *
- * See ic_dbus_call_put_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_put (
- icDbus *proxy,
- GVariant *arg_client,
- const gchar *arg_repr,
- GVariant *arg_query,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "put",
- g_variant_new ("(@(ssba(qs)asii)s@a(ss)u)",
- arg_client,
- arg_repr,
- arg_query,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_put_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_put().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_put().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_put_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_put_sync:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_repr: Argument to pass with the method invocation.
- * @arg_query: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.put">put()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_put() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_put_sync (
- icDbus *proxy,
- GVariant *arg_client,
- const gchar *arg_repr,
- GVariant *arg_query,
- guint arg_signal_number,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "put",
- g_variant_new ("(@(ssba(qs)asii)s@a(ss)u)",
- arg_client,
- arg_repr,
- arg_query,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_post:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_repr: Argument to pass with the method invocation.
- * @arg_query: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.post">post()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_post_finish() to get the result of the operation.
- *
- * See ic_dbus_call_post_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_post (
- icDbus *proxy,
- GVariant *arg_client,
- const gchar *arg_repr,
- GVariant *arg_query,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "post",
- g_variant_new ("(@(ssba(qs)asii)s@a(ss)u)",
- arg_client,
- arg_repr,
- arg_query,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_post_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_post().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_post().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_post_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_post_sync:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_repr: Argument to pass with the method invocation.
- * @arg_query: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.post">post()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_post() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_post_sync (
- icDbus *proxy,
- GVariant *arg_client,
- const gchar *arg_repr,
- GVariant *arg_query,
- guint arg_signal_number,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "post",
- g_variant_new ("(@(ssba(qs)asii)s@a(ss)u)",
- arg_client,
- arg_repr,
- arg_query,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_delete:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.delete">delete()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_delete_finish() to get the result of the operation.
- *
- * See ic_dbus_call_delete_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_delete (
- icDbus *proxy,
- GVariant *arg_client,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "delete",
- g_variant_new ("(@(ssba(qs)asii)u)",
- arg_client,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_delete_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_delete().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_delete().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_delete_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_delete_sync:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.delete">delete()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_delete() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_delete_sync (
- icDbus *proxy,
- GVariant *arg_client,
- guint arg_signal_number,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "delete",
- g_variant_new ("(@(ssba(qs)asii)u)",
- arg_client,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_observer_start:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_observe_type: Argument to pass with the method invocation.
- * @arg_query: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.observerStart">observerStart()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_observer_start_finish() to get the result of the operation.
- *
- * See ic_dbus_call_observer_start_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_observer_start (
- icDbus *proxy,
- GVariant *arg_client,
- gint arg_observe_type,
- GVariant *arg_query,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "observerStart",
- g_variant_new ("(@(ssba(qs)asii)i@a(ss)u)",
- arg_client,
- arg_observe_type,
- arg_query,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_observer_start_finish:
- * @proxy: A #icDbusProxy.
- * @out_observe_h: (out): Return location for return parameter or %NULL to ignore.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_observer_start().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_observer_start().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_observer_start_finish (
- icDbus *proxy,
- gint *out_observe_h,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(ii)",
- out_observe_h,
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_observer_start_sync:
- * @proxy: A #icDbusProxy.
- * @arg_client: Argument to pass with the method invocation.
- * @arg_observe_type: Argument to pass with the method invocation.
- * @arg_query: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_observe_h: (out): Return location for return parameter or %NULL to ignore.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.observerStart">observerStart()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_observer_start() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_observer_start_sync (
- icDbus *proxy,
- GVariant *arg_client,
- gint arg_observe_type,
- GVariant *arg_query,
- guint arg_signal_number,
- gint *out_observe_h,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "observerStart",
- g_variant_new ("(@(ssba(qs)asii)i@a(ss)u)",
- arg_client,
- arg_observe_type,
- arg_query,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(ii)",
- out_observe_h,
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_observer_stop:
- * @proxy: A #icDbusProxy.
- * @arg_observe_h: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.observerStop">observerStop()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_observer_stop_finish() to get the result of the operation.
- *
- * See ic_dbus_call_observer_stop_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_observer_stop (
- icDbus *proxy,
- gint arg_observe_h,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "observerStop",
- g_variant_new ("(i)",
- arg_observe_h),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_observer_stop_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_observer_stop().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_observer_stop().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_observer_stop_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_observer_stop_sync:
- * @proxy: A #icDbusProxy.
- * @arg_observe_h: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.observerStop">observerStop()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_observer_stop() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_observer_stop_sync (
- icDbus *proxy,
- gint arg_observe_h,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "observerStop",
- g_variant_new ("(i)",
- arg_observe_h),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_register_device_info:
- * @proxy: A #icDbusProxy.
- * @arg_device_info: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerDeviceInfo">registerDeviceInfo()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_register_device_info_finish() to get the result of the operation.
- *
- * See ic_dbus_call_register_device_info_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_register_device_info (
- icDbus *proxy,
- GVariant *arg_device_info,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "registerDeviceInfo",
- g_variant_new ("(@(ssssssssssss))",
- arg_device_info),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_register_device_info_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_register_device_info().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_register_device_info().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_register_device_info_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_register_device_info_sync:
- * @proxy: A #icDbusProxy.
- * @arg_device_info: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerDeviceInfo">registerDeviceInfo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_register_device_info() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_register_device_info_sync (
- icDbus *proxy,
- GVariant *arg_device_info,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "registerDeviceInfo",
- g_variant_new ("(@(ssssssssssss))",
- arg_device_info),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_get_device_info:
- * @proxy: A #icDbusProxy.
- * @arg_host_address: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.getDeviceInfo">getDeviceInfo()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_get_device_info_finish() to get the result of the operation.
- *
- * See ic_dbus_call_get_device_info_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_get_device_info (
- icDbus *proxy,
- const gchar *arg_host_address,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "getDeviceInfo",
- g_variant_new ("(su)",
- arg_host_address,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_get_device_info_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_get_device_info().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_get_device_info().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_get_device_info_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_get_device_info_sync:
- * @proxy: A #icDbusProxy.
- * @arg_host_address: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.getDeviceInfo">getDeviceInfo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_get_device_info() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_get_device_info_sync (
- icDbus *proxy,
- const gchar *arg_host_address,
- guint arg_signal_number,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "getDeviceInfo",
- g_variant_new ("(su)",
- arg_host_address,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_register_platform_info:
- * @proxy: A #icDbusProxy.
- * @arg_platform_info: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerPlatformInfo">registerPlatformInfo()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_register_platform_info_finish() to get the result of the operation.
- *
- * See ic_dbus_call_register_platform_info_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_register_platform_info (
- icDbus *proxy,
- GVariant *arg_platform_info,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "registerPlatformInfo",
- g_variant_new ("(@(sssssssssss))",
- arg_platform_info),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_register_platform_info_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_register_platform_info().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_register_platform_info().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_register_platform_info_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_register_platform_info_sync:
- * @proxy: A #icDbusProxy.
- * @arg_platform_info: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerPlatformInfo">registerPlatformInfo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_register_platform_info() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_register_platform_info_sync (
- icDbus *proxy,
- GVariant *arg_platform_info,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "registerPlatformInfo",
- g_variant_new ("(@(sssssssssss))",
- arg_platform_info),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_get_platform_info:
- * @proxy: A #icDbusProxy.
- * @arg_host_address: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.getPlatformInfo">getPlatformInfo()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_get_platform_info_finish() to get the result of the operation.
- *
- * See ic_dbus_call_get_platform_info_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_get_platform_info (
- icDbus *proxy,
- const gchar *arg_host_address,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "getPlatformInfo",
- g_variant_new ("(su)",
- arg_host_address,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_get_platform_info_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_get_platform_info().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_get_platform_info().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_get_platform_info_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_get_platform_info_sync:
- * @proxy: A #icDbusProxy.
- * @arg_host_address: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.getPlatformInfo">getPlatformInfo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_get_platform_info() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_get_platform_info_sync (
- icDbus *proxy,
- const gchar *arg_host_address,
- guint arg_signal_number,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "getPlatformInfo",
- g_variant_new ("(su)",
- arg_host_address,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_subscribe_presence:
- * @proxy: A #icDbusProxy.
- * @arg_host_address: Argument to pass with the method invocation.
- * @arg_type: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.subscribePresence">subscribePresence()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_subscribe_presence_finish() to get the result of the operation.
- *
- * See ic_dbus_call_subscribe_presence_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_subscribe_presence (
- icDbus *proxy,
- const gchar *arg_host_address,
- const gchar *arg_type,
- guint arg_signal_number,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "subscribePresence",
- g_variant_new ("(ssu)",
- arg_host_address,
- arg_type,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_subscribe_presence_finish:
- * @proxy: A #icDbusProxy.
- * @out_presence_h: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_subscribe_presence().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_subscribe_presence().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_subscribe_presence_finish (
- icDbus *proxy,
- gint *out_presence_h,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_presence_h);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_subscribe_presence_sync:
- * @proxy: A #icDbusProxy.
- * @arg_host_address: Argument to pass with the method invocation.
- * @arg_type: Argument to pass with the method invocation.
- * @arg_signal_number: Argument to pass with the method invocation.
- * @out_presence_h: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.subscribePresence">subscribePresence()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_subscribe_presence() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_subscribe_presence_sync (
- icDbus *proxy,
- const gchar *arg_host_address,
- const gchar *arg_type,
- guint arg_signal_number,
- gint *out_presence_h,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "subscribePresence",
- g_variant_new ("(ssu)",
- arg_host_address,
- arg_type,
- arg_signal_number),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_presence_h);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_unsubscribe_presence:
- * @proxy: A #icDbusProxy.
- * @arg_presence_h: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unsubscribePresence">unsubscribePresence()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_unsubscribe_presence_finish() to get the result of the operation.
- *
- * See ic_dbus_call_unsubscribe_presence_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_unsubscribe_presence (
- icDbus *proxy,
- gint arg_presence_h,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "unsubscribePresence",
- g_variant_new ("(i)",
- arg_presence_h),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_unsubscribe_presence_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_unsubscribe_presence().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_unsubscribe_presence().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_unsubscribe_presence_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_unsubscribe_presence_sync:
- * @proxy: A #icDbusProxy.
- * @arg_presence_h: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unsubscribePresence">unsubscribePresence()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_unsubscribe_presence() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_unsubscribe_presence_sync (
- icDbus *proxy,
- gint arg_presence_h,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "unsubscribePresence",
- g_variant_new ("(i)",
- arg_presence_h),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_start_presence:
- * @proxy: A #icDbusProxy.
- * @arg_time_to_live: Argument to pass with the method invocation.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.startPresence">startPresence()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_start_presence_finish() to get the result of the operation.
- *
- * See ic_dbus_call_start_presence_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_start_presence (
- icDbus *proxy,
- guint arg_time_to_live,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "startPresence",
- g_variant_new ("(u)",
- arg_time_to_live),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_start_presence_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_start_presence().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_start_presence().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_start_presence_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_start_presence_sync:
- * @proxy: A #icDbusProxy.
- * @arg_time_to_live: Argument to pass with the method invocation.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.startPresence">startPresence()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_start_presence() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_start_presence_sync (
- icDbus *proxy,
- guint arg_time_to_live,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "startPresence",
- g_variant_new ("(u)",
- arg_time_to_live),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_stop_presence:
- * @proxy: A #icDbusProxy.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.stopPresence">stopPresence()</link> D-Bus method on @proxy.
- * 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.
- * You can then call ic_dbus_call_stop_presence_finish() to get the result of the operation.
- *
- * See ic_dbus_call_stop_presence_sync() for the synchronous, blocking version of this method.
- */
-void
-ic_dbus_call_stop_presence (
- icDbus *proxy,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_dbus_proxy_call (G_DBUS_PROXY (proxy),
- "stopPresence",
- g_variant_new ("()"),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- callback,
- user_data);
-}
-
-/**
- * ic_dbus_call_stop_presence_finish:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_call_stop_presence().
- * @error: Return location for error or %NULL.
- *
- * Finishes an operation started with ic_dbus_call_stop_presence().
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_stop_presence_finish (
- icDbus *proxy,
- gint *out_ret,
- GAsyncResult *res,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_call_stop_presence_sync:
- * @proxy: A #icDbusProxy.
- * @out_ret: (out): Return location for return parameter or %NULL to ignore.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL.
- *
- * Synchronously invokes the <link linkend="gdbus-method-org-tizen-iotcon-dbus.stopPresence">stopPresence()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_call_stop_presence() for the asynchronous version of this method.
- *
- * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
- */
-gboolean
-ic_dbus_call_stop_presence_sync (
- icDbus *proxy,
- gint *out_ret,
- GCancellable *cancellable,
- GError **error)
-{
- GVariant *_ret;
- _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
- "stopPresence",
- g_variant_new ("()"),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- cancellable,
- error);
- if (_ret == NULL)
- goto _out;
- g_variant_get (_ret,
- "(i)",
- out_ret);
- g_variant_unref (_ret);
-_out:
- return _ret != NULL;
-}
-
-/**
- * ic_dbus_complete_register_resource:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @resource: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerResource">registerResource()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_register_resource (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint resource)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- resource));
-}
-
-/**
- * ic_dbus_complete_unregister_resource:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unregisterResource">unregisterResource()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_unregister_resource (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_bind_interface:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindInterface">bindInterface()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_bind_interface (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_bind_type:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindType">bindType()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_bind_type (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_bind_resource:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.bindResource">bindResource()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_bind_resource (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_unbind_resource:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unbindResource">unbindResource()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_unbind_resource (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_notify_list_of_observers:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.notifyListOfObservers">notifyListOfObservers()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_notify_list_of_observers (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_notify_all:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.notifyAll">notifyAll()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_notify_all (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_send_response:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.sendResponse">sendResponse()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_send_response (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_find_resource:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.findResource">findResource()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_find_resource (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_get:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.get">get()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_get (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_put:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.put">put()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_put (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_post:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.post">post()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_post (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_delete:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.delete">delete()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_delete (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_observer_start:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @observe_h: Parameter to return.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.observerStart">observerStart()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_observer_start (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint observe_h,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(ii)",
- observe_h,
- ret));
-}
-
-/**
- * ic_dbus_complete_observer_stop:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.observerStop">observerStop()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_observer_stop (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_register_device_info:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerDeviceInfo">registerDeviceInfo()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_register_device_info (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_get_device_info:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.getDeviceInfo">getDeviceInfo()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_get_device_info (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_register_platform_info:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.registerPlatformInfo">registerPlatformInfo()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_register_platform_info (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_get_platform_info:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.getPlatformInfo">getPlatformInfo()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_get_platform_info (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_subscribe_presence:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @presence_h: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.subscribePresence">subscribePresence()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_subscribe_presence (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint presence_h)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- presence_h));
-}
-
-/**
- * ic_dbus_complete_unsubscribe_presence:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.unsubscribePresence">unsubscribePresence()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_unsubscribe_presence (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_start_presence:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.startPresence">startPresence()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_start_presence (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/**
- * ic_dbus_complete_stop_presence:
- * @object: A #icDbus.
- * @invocation: (transfer full): A #GDBusMethodInvocation.
- * @ret: Parameter to return.
- *
- * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-tizen-iotcon-dbus.stopPresence">stopPresence()</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.
- *
- * This method will free @invocation, you cannot use it afterwards.
- */
-void
-ic_dbus_complete_stop_presence (
- icDbus *object,
- GDBusMethodInvocation *invocation,
- gint ret)
-{
- g_dbus_method_invocation_return_value (invocation,
- g_variant_new ("(i)",
- ret));
-}
-
-/* ------------------------------------------------------------------------ */
-
-/**
- * icDbusProxy:
- *
- * The #icDbusProxy structure contains only private data and should only be accessed using the provided API.
- */
-
-/**
- * icDbusProxyClass:
- * @parent_class: The parent class.
- *
- * Class structure for #icDbusProxy.
- */
-
-struct _icDbusProxyPrivate
-{
- GData *qdata;
-};
-
-static void ic_dbus_proxy_iface_init (icDbusIface *iface);
-
-#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
-G_DEFINE_TYPE_WITH_CODE (icDbusProxy, ic_dbus_proxy, G_TYPE_DBUS_PROXY,
- G_ADD_PRIVATE (icDbusProxy)
- G_IMPLEMENT_INTERFACE (IC_TYPE_DBUS, ic_dbus_proxy_iface_init));
-
-#else
-G_DEFINE_TYPE_WITH_CODE (icDbusProxy, ic_dbus_proxy, G_TYPE_DBUS_PROXY,
- G_IMPLEMENT_INTERFACE (IC_TYPE_DBUS, ic_dbus_proxy_iface_init));
-
-#endif
-static void
-ic_dbus_proxy_finalize (GObject *object)
-{
- icDbusProxy *proxy = IC_DBUS_PROXY (object);
- g_datalist_clear (&proxy->priv->qdata);
- G_OBJECT_CLASS (ic_dbus_proxy_parent_class)->finalize (object);
-}
-
-static void
-ic_dbus_proxy_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec G_GNUC_UNUSED)
-{
-}
-
-static void
-ic_dbus_proxy_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec G_GNUC_UNUSED)
-{
-}
-
-static void
-ic_dbus_proxy_g_signal (GDBusProxy *proxy,
- const gchar *sender_name G_GNUC_UNUSED,
- const gchar *signal_name,
- GVariant *parameters)
-{
- _ExtendedGDBusSignalInfo *info;
- GVariantIter iter;
- GVariant *child;
- GValue *paramv;
- guint num_params;
- guint n;
- guint signal_id;
- info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_ic_dbus_interface_info.parent_struct, signal_name);
- if (info == NULL)
- return;
- num_params = g_variant_n_children (parameters);
- paramv = g_new0 (GValue, num_params + 1);
- g_value_init (¶mv[0], IC_TYPE_DBUS);
- g_value_set_object (¶mv[0], proxy);
- g_variant_iter_init (&iter, parameters);
- n = 1;
- while ((child = g_variant_iter_next_value (&iter)) != NULL)
- {
- _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
- if (arg_info->use_gvariant)
- {
- g_value_init (¶mv[n], G_TYPE_VARIANT);
- g_value_set_variant (¶mv[n], child);
- n++;
- }
- else
- g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
- g_variant_unref (child);
- }
- signal_id = g_signal_lookup (info->signal_name, IC_TYPE_DBUS);
- g_signal_emitv (paramv, signal_id, 0, NULL);
- for (n = 0; n < num_params + 1; n++)
- g_value_unset (¶mv[n]);
- g_free (paramv);
-}
-
-static void
-ic_dbus_proxy_g_properties_changed (GDBusProxy *_proxy,
- GVariant *changed_properties,
- const gchar *const *invalidated_properties)
-{
- icDbusProxy *proxy = IC_DBUS_PROXY (_proxy);
- guint n;
- const gchar *key;
- GVariantIter *iter;
- _ExtendedGDBusPropertyInfo *info;
- g_variant_get (changed_properties, "a{sv}", &iter);
- while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
- {
- info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ic_dbus_interface_info.parent_struct, key);
- g_datalist_remove_data (&proxy->priv->qdata, key);
- if (info != NULL)
- g_object_notify (G_OBJECT (proxy), info->hyphen_name);
- }
- g_variant_iter_free (iter);
- for (n = 0; invalidated_properties[n] != NULL; n++)
- {
- info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ic_dbus_interface_info.parent_struct, invalidated_properties[n]);
- g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
- if (info != NULL)
- g_object_notify (G_OBJECT (proxy), info->hyphen_name);
- }
-}
-
-static void
-ic_dbus_proxy_init (icDbusProxy *proxy)
-{
-#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
- proxy->priv = ic_dbus_proxy_get_instance_private (proxy);
-#else
- proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, IC_TYPE_DBUS_PROXY, icDbusProxyPrivate);
-#endif
-
- g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), ic_dbus_interface_info ());
-}
-
-static void
-ic_dbus_proxy_class_init (icDbusProxyClass *klass)
-{
- GObjectClass *gobject_class;
- GDBusProxyClass *proxy_class;
-
- gobject_class = G_OBJECT_CLASS (klass);
- gobject_class->finalize = ic_dbus_proxy_finalize;
- gobject_class->get_property = ic_dbus_proxy_get_property;
- gobject_class->set_property = ic_dbus_proxy_set_property;
-
- proxy_class = G_DBUS_PROXY_CLASS (klass);
- proxy_class->g_signal = ic_dbus_proxy_g_signal;
- proxy_class->g_properties_changed = ic_dbus_proxy_g_properties_changed;
-
-#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
- g_type_class_add_private (klass, sizeof (icDbusProxyPrivate));
-#endif
-}
-
-static void
-ic_dbus_proxy_iface_init (icDbusIface *iface)
-{
-}
-
-/**
- * ic_dbus_proxy_new:
- * @connection: A #GDBusConnection.
- * @flags: Flags from the #GDBusProxyFlags enumeration.
- * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
- * @object_path: An object path.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
- * @user_data: User data to pass to @callback.
- *
- * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-tizen-iotcon-dbus.top_of_page">org.tizen.iotcon.dbus</link>. See g_dbus_proxy_new() for more details.
- *
- * 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.
- * You can then call ic_dbus_proxy_new_finish() to get the result of the operation.
- *
- * See ic_dbus_proxy_new_sync() for the synchronous, blocking version of this constructor.
- */
-void
-ic_dbus_proxy_new (
- GDBusConnection *connection,
- GDBusProxyFlags flags,
- const gchar *name,
- const gchar *object_path,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_async_initable_new_async (IC_TYPE_DBUS_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.tizen.iotcon.dbus", NULL);
-}
-
-/**
- * ic_dbus_proxy_new_finish:
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_proxy_new().
- * @error: Return location for error or %NULL
- *
- * Finishes an operation started with ic_dbus_proxy_new().
- *
- * Returns: (transfer full) (type icDbusProxy): The constructed proxy object or %NULL if @error is set.
- */
-icDbus *
-ic_dbus_proxy_new_finish (
- GAsyncResult *res,
- GError **error)
-{
- GObject *ret;
- GObject *source_object;
- source_object = g_async_result_get_source_object (res);
- ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
- g_object_unref (source_object);
- if (ret != NULL)
- return IC_DBUS (ret);
- else
- return NULL;
-}
-
-/**
- * ic_dbus_proxy_new_sync:
- * @connection: A #GDBusConnection.
- * @flags: Flags from the #GDBusProxyFlags enumeration.
- * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
- * @object_path: An object path.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL
- *
- * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-tizen-iotcon-dbus.top_of_page">org.tizen.iotcon.dbus</link>. See g_dbus_proxy_new_sync() for more details.
- *
- * The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_proxy_new() for the asynchronous version of this constructor.
- *
- * Returns: (transfer full) (type icDbusProxy): The constructed proxy object or %NULL if @error is set.
- */
-icDbus *
-ic_dbus_proxy_new_sync (
- GDBusConnection *connection,
- GDBusProxyFlags flags,
- const gchar *name,
- const gchar *object_path,
- GCancellable *cancellable,
- GError **error)
-{
- GInitable *ret;
- ret = g_initable_new (IC_TYPE_DBUS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.tizen.iotcon.dbus", NULL);
- if (ret != NULL)
- return IC_DBUS (ret);
- else
- return NULL;
-}
-
-
-/**
- * ic_dbus_proxy_new_for_bus:
- * @bus_type: A #GBusType.
- * @flags: Flags from the #GDBusProxyFlags enumeration.
- * @name: A bus name (well-known or unique).
- * @object_path: An object path.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
- * @user_data: User data to pass to @callback.
- *
- * Like ic_dbus_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
- *
- * 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.
- * You can then call ic_dbus_proxy_new_for_bus_finish() to get the result of the operation.
- *
- * See ic_dbus_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
- */
-void
-ic_dbus_proxy_new_for_bus (
- GBusType bus_type,
- GDBusProxyFlags flags,
- const gchar *name,
- const gchar *object_path,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_async_initable_new_async (IC_TYPE_DBUS_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.tizen.iotcon.dbus", NULL);
-}
-
-/**
- * ic_dbus_proxy_new_for_bus_finish:
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to ic_dbus_proxy_new_for_bus().
- * @error: Return location for error or %NULL
- *
- * Finishes an operation started with ic_dbus_proxy_new_for_bus().
- *
- * Returns: (transfer full) (type icDbusProxy): The constructed proxy object or %NULL if @error is set.
- */
-icDbus *
-ic_dbus_proxy_new_for_bus_finish (
- GAsyncResult *res,
- GError **error)
-{
- GObject *ret;
- GObject *source_object;
- source_object = g_async_result_get_source_object (res);
- ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
- g_object_unref (source_object);
- if (ret != NULL)
- return IC_DBUS (ret);
- else
- return NULL;
-}
-
-/**
- * ic_dbus_proxy_new_for_bus_sync:
- * @bus_type: A #GBusType.
- * @flags: Flags from the #GDBusProxyFlags enumeration.
- * @name: A bus name (well-known or unique).
- * @object_path: An object path.
- * @cancellable: (allow-none): A #GCancellable or %NULL.
- * @error: Return location for error or %NULL
- *
- * Like ic_dbus_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
- *
- * The calling thread is blocked until a reply is received.
- *
- * See ic_dbus_proxy_new_for_bus() for the asynchronous version of this constructor.
- *
- * Returns: (transfer full) (type icDbusProxy): The constructed proxy object or %NULL if @error is set.
- */
-icDbus *
-ic_dbus_proxy_new_for_bus_sync (
- GBusType bus_type,
- GDBusProxyFlags flags,
- const gchar *name,
- const gchar *object_path,
- GCancellable *cancellable,
- GError **error)
-{
- GInitable *ret;
- ret = g_initable_new (IC_TYPE_DBUS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.tizen.iotcon.dbus", NULL);
- if (ret != NULL)
- return IC_DBUS (ret);
- else
- return NULL;
-}
-
-
-/* ------------------------------------------------------------------------ */
-
-/**
- * icDbusSkeleton:
- *
- * The #icDbusSkeleton structure contains only private data and should only be accessed using the provided API.
- */
-
-/**
- * icDbusSkeletonClass:
- * @parent_class: The parent class.
- *
- * Class structure for #icDbusSkeleton.
- */
-
-struct _icDbusSkeletonPrivate
-{
- GValue *properties;
- GList *changed_properties;
- GSource *changed_properties_idle_source;
- GMainContext *context;
- GMutex lock;
-};
-
-static void
-_ic_dbus_skeleton_handle_method_call (
- GDBusConnection *connection G_GNUC_UNUSED,
- const gchar *sender G_GNUC_UNUSED,
- const gchar *object_path G_GNUC_UNUSED,
- const gchar *interface_name,
- const gchar *method_name,
- GVariant *parameters,
- GDBusMethodInvocation *invocation,
- gpointer user_data)
-{
- icDbusSkeleton *skeleton = IC_DBUS_SKELETON (user_data);
- _ExtendedGDBusMethodInfo *info;
- GVariantIter iter;
- GVariant *child;
- GValue *paramv;
- guint num_params;
- guint num_extra;
- guint n;
- guint signal_id;
- GValue return_value = G_VALUE_INIT;
- info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
- g_assert (info != NULL);
- num_params = g_variant_n_children (parameters);
- num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
- n = 0;
- g_value_init (¶mv[n], IC_TYPE_DBUS);
- g_value_set_object (¶mv[n++], skeleton);
- g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION);
- g_value_set_object (¶mv[n++], invocation);
- if (info->pass_fdlist)
- {
-#ifdef G_OS_UNIX
- g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST);
- g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
-#else
- g_assert_not_reached ();
-#endif
- }
- g_variant_iter_init (&iter, parameters);
- while ((child = g_variant_iter_next_value (&iter)) != NULL)
- {
- _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
- if (arg_info->use_gvariant)
- {
- g_value_init (¶mv[n], G_TYPE_VARIANT);
- g_value_set_variant (¶mv[n], child);
- n++;
- }
- else
- g_dbus_gvariant_to_gvalue (child, ¶mv[n++]);
- g_variant_unref (child);
- }
- signal_id = g_signal_lookup (info->signal_name, IC_TYPE_DBUS);
- g_value_init (&return_value, G_TYPE_BOOLEAN);
- g_signal_emitv (paramv, signal_id, 0, &return_value);
- if (!g_value_get_boolean (&return_value))
- 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);
- g_value_unset (&return_value);
- for (n = 0; n < num_params + num_extra; n++)
- g_value_unset (¶mv[n]);
- g_free (paramv);
-}
-
-static GVariant *
-_ic_dbus_skeleton_handle_get_property (
- GDBusConnection *connection G_GNUC_UNUSED,
- const gchar *sender G_GNUC_UNUSED,
- const gchar *object_path G_GNUC_UNUSED,
- const gchar *interface_name G_GNUC_UNUSED,
- const gchar *property_name,
- GError **error,
- gpointer user_data)
-{
- icDbusSkeleton *skeleton = IC_DBUS_SKELETON (user_data);
- GValue value = G_VALUE_INIT;
- GParamSpec *pspec;
- _ExtendedGDBusPropertyInfo *info;
- GVariant *ret;
- ret = NULL;
- info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ic_dbus_interface_info.parent_struct, property_name);
- g_assert (info != NULL);
- pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
- if (pspec == NULL)
- {
- g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
- }
- else
- {
- g_value_init (&value, pspec->value_type);
- g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
- ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
- g_value_unset (&value);
- }
- return ret;
-}
-
-static gboolean
-_ic_dbus_skeleton_handle_set_property (
- GDBusConnection *connection G_GNUC_UNUSED,
- const gchar *sender G_GNUC_UNUSED,
- const gchar *object_path G_GNUC_UNUSED,
- const gchar *interface_name G_GNUC_UNUSED,
- const gchar *property_name,
- GVariant *variant,
- GError **error,
- gpointer user_data)
-{
- icDbusSkeleton *skeleton = IC_DBUS_SKELETON (user_data);
- GValue value = G_VALUE_INIT;
- GParamSpec *pspec;
- _ExtendedGDBusPropertyInfo *info;
- gboolean ret;
- ret = FALSE;
- info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_ic_dbus_interface_info.parent_struct, property_name);
- g_assert (info != NULL);
- pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
- if (pspec == NULL)
- {
- g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
- }
- else
- {
- if (info->use_gvariant)
- g_value_set_variant (&value, variant);
- else
- g_dbus_gvariant_to_gvalue (variant, &value);
- g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
- g_value_unset (&value);
- ret = TRUE;
- }
- return ret;
-}
-
-static const GDBusInterfaceVTable _ic_dbus_skeleton_vtable =
-{
- _ic_dbus_skeleton_handle_method_call,
- _ic_dbus_skeleton_handle_get_property,
- _ic_dbus_skeleton_handle_set_property,
- {NULL}
-};
-
-static GDBusInterfaceInfo *
-ic_dbus_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
-{
- return ic_dbus_interface_info ();
-}
-
-static GDBusInterfaceVTable *
-ic_dbus_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
-{
- return (GDBusInterfaceVTable *) &_ic_dbus_skeleton_vtable;
-}
-
-static GVariant *
-ic_dbus_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
-{
- icDbusSkeleton *skeleton = IC_DBUS_SKELETON (_skeleton);
-
- GVariantBuilder builder;
- guint n;
- g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
- if (_ic_dbus_interface_info.parent_struct.properties == NULL)
- goto out;
- for (n = 0; _ic_dbus_interface_info.parent_struct.properties[n] != NULL; n++)
- {
- GDBusPropertyInfo *info = _ic_dbus_interface_info.parent_struct.properties[n];
- if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
- {
- GVariant *value;
- value = _ic_dbus_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.tizen.iotcon.dbus", info->name, NULL, skeleton);
- if (value != NULL)
- {
- g_variant_take_ref (value);
- g_variant_builder_add (&builder, "{sv}", info->name, value);
- g_variant_unref (value);
- }
- }
- }
-out:
- return g_variant_builder_end (&builder);
-}
-
-static void
-ic_dbus_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
-{
-}
-
-static void ic_dbus_skeleton_iface_init (icDbusIface *iface);
-#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
-G_DEFINE_TYPE_WITH_CODE (icDbusSkeleton, ic_dbus_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
- G_ADD_PRIVATE (icDbusSkeleton)
- G_IMPLEMENT_INTERFACE (IC_TYPE_DBUS, ic_dbus_skeleton_iface_init));
-
-#else
-G_DEFINE_TYPE_WITH_CODE (icDbusSkeleton, ic_dbus_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
- G_IMPLEMENT_INTERFACE (IC_TYPE_DBUS, ic_dbus_skeleton_iface_init));
-
-#endif
-static void
-ic_dbus_skeleton_finalize (GObject *object)
-{
- icDbusSkeleton *skeleton = IC_DBUS_SKELETON (object);
- g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
- if (skeleton->priv->changed_properties_idle_source != NULL)
- g_source_destroy (skeleton->priv->changed_properties_idle_source);
- g_main_context_unref (skeleton->priv->context);
- g_mutex_clear (&skeleton->priv->lock);
- G_OBJECT_CLASS (ic_dbus_skeleton_parent_class)->finalize (object);
-}
-
-static void
-ic_dbus_skeleton_init (icDbusSkeleton *skeleton)
-{
-#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
- skeleton->priv = ic_dbus_skeleton_get_instance_private (skeleton);
-#else
- skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, IC_TYPE_DBUS_SKELETON, icDbusSkeletonPrivate);
-#endif
-
- g_mutex_init (&skeleton->priv->lock);
- skeleton->priv->context = g_main_context_ref_thread_default ();
-}
-
-static void
-ic_dbus_skeleton_class_init (icDbusSkeletonClass *klass)
-{
- GObjectClass *gobject_class;
- GDBusInterfaceSkeletonClass *skeleton_class;
-
- gobject_class = G_OBJECT_CLASS (klass);
- gobject_class->finalize = ic_dbus_skeleton_finalize;
-
- skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
- skeleton_class->get_info = ic_dbus_skeleton_dbus_interface_get_info;
- skeleton_class->get_properties = ic_dbus_skeleton_dbus_interface_get_properties;
- skeleton_class->flush = ic_dbus_skeleton_dbus_interface_flush;
- skeleton_class->get_vtable = ic_dbus_skeleton_dbus_interface_get_vtable;
-
-#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
- g_type_class_add_private (klass, sizeof (icDbusSkeletonPrivate));
-#endif
-}
-
-static void
-ic_dbus_skeleton_iface_init (icDbusIface *iface)
-{
-}
-
-/**
- * ic_dbus_skeleton_new:
- *
- * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-tizen-iotcon-dbus.top_of_page">org.tizen.iotcon.dbus</link>.
- *
- * Returns: (transfer full) (type icDbusSkeleton): The skeleton object.
- */
-icDbus *
-ic_dbus_skeleton_new (void)
-{
- return IC_DBUS (g_object_new (IC_TYPE_DBUS_SKELETON, NULL));
-}
-