static gboolean gclue_service_location_handle_set_property (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GVariant *variant, GError **error, gpointer user_data) { GClueServiceLocationPrivate *priv = GCLUE_SERVICE_LOCATION (user_data)->priv; GDBusInterfaceSkeletonClass *skeleton_class; GDBusInterfaceVTable *skeleton_vtable; if (strcmp (sender, priv->peer) != 0) { g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_ACCESS_DENIED, "Access denied"); return FALSE; } skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (gclue_service_location_parent_class); skeleton_vtable = skeleton_class->get_vtable (G_DBUS_INTERFACE_SKELETON (user_data)); return skeleton_vtable->set_property (connection, sender, object_path, interface_name, property_name, variant, error, user_data); }
static void gclue_service_location_handle_method_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { GClueServiceLocationPrivate *priv = GCLUE_SERVICE_LOCATION (user_data)->priv; GDBusInterfaceSkeletonClass *skeleton_class; GDBusInterfaceVTable *skeleton_vtable; if (strcmp (sender, priv->peer) != 0) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_ACCESS_DENIED, "Access denied"); return; } skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (gclue_service_location_parent_class); skeleton_vtable = skeleton_class->get_vtable (G_DBUS_INTERFACE_SKELETON (user_data)); skeleton_vtable->method_call (connection, sender, object_path, interface_name, method_name, parameters, invocation, user_data); }
static void accounts_class_init (AccountsClass *klass) { GObjectClass *gobject_class; GDBusInterfaceSkeletonClass *skeleton_class; gobject_class = G_OBJECT_CLASS (klass); gobject_class->finalize = accounts_finalize; skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); skeleton_class->g_authorize_method = accounts_authorize_method; }
static GDBusInterfaceVTable * gkd_secret_item_skeleton_get_vtable (GDBusInterfaceSkeleton *skeleton) { static GDBusInterfaceVTable vtable; GDBusInterfaceVTable *parent_vtable; parent_vtable = G_DBUS_INTERFACE_SKELETON_CLASS (gkd_secret_item_skeleton_parent_class)->get_vtable (skeleton); (&vtable)->get_property = gkd_secret_item_skeleton_get_property_dbus; (&vtable)->set_property = gkd_secret_item_skeleton_set_property_dbus; (&vtable)->method_call = parent_vtable->method_call; return &vtable; }
static void hev_dbus_interface_test_class_init(HevDBusInterfaceTestClass *klass) { GObjectClass *obj_class = G_OBJECT_CLASS(klass); GDBusInterfaceSkeletonClass *skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS(klass); g_debug("%s:%d[%s]", __FILE__, __LINE__, __FUNCTION__); obj_class->constructor = hev_dbus_interface_test_constructor; obj_class->constructed = hev_dbus_interface_test_constructed; obj_class->dispose = hev_dbus_interface_test_dispose; obj_class->finalize = hev_dbus_interface_test_finalize; skeleton_class->get_info = hev_dbus_interface_test_get_info; skeleton_class->get_vtable = hev_dbus_interface_test_get_vtable; skeleton_class->get_properties = hev_dbus_interface_test_get_properties; g_type_class_add_private(klass, sizeof(HevDBusInterfaceTestPrivate)); }
static void gkd_secret_item_skeleton_class_init (GkdSecretItemSkeletonClass *klass) { GDBusInterfaceSkeletonClass *skclass = G_DBUS_INTERFACE_SKELETON_CLASS (klass); skclass->get_vtable = gkd_secret_item_skeleton_get_vtable; }