/* snitem.c generated by valac 0.26.2, the Vala compiler
 * generated from snitem.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>


#define TYPE_SOME_INTERFACE (some_interface_get_type ())
#define SOME_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SOME_INTERFACE, SomeInterface))
#define IS_SOME_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SOME_INTERFACE))
#define SOME_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_SOME_INTERFACE, SomeInterfaceIface))

typedef struct _SomeInterface SomeInterface;
typedef struct _SomeInterfaceIface SomeInterfaceIface;

#define TYPE_SOME_INTERFACE_PROXY (some_interface_proxy_get_type ())
typedef GDBusProxy SomeInterfaceProxy;
typedef GDBusProxyClass SomeInterfaceProxyClass;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _SomeInterfaceIface {
	GTypeInterface parent_iface;
	void (*context_menu) (SomeInterface* self, gint x, gint y);
	void (*activate) (SomeInterface* self, gint x, gint y);
	void (*secondary_activate) (SomeInterface* self, gint x, gint y);
	void (*scroll) (SomeInterface* self, gint delta, const gchar* orientation);
};


static GType some_interface_type_id = 0;

GType some_interface_proxy_get_type (void) G_GNUC_CONST;
void some_interface_proxy_register_dynamic_type (GTypeModule* module);
guint some_interface_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType some_interface_get_type (void) G_GNUC_CONST;
GType some_interface_register_type (GTypeModule * module);
void some_interface_context_menu (SomeInterface* self, gint x, gint y);
void some_interface_activate (SomeInterface* self, gint x, gint y);
void some_interface_secondary_activate (SomeInterface* self, gint x, gint y);
void some_interface_scroll (SomeInterface* self, gint delta, const gchar* orientation);
static void some_interface_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void some_interface_proxy_context_menu (SomeInterface* self, gint x, gint y);
static void some_interface_proxy_activate (SomeInterface* self, gint x, gint y);
static void some_interface_proxy_secondary_activate (SomeInterface* self, gint x, gint y);
static void some_interface_proxy_scroll (SomeInterface* self, gint delta, const gchar* orientation);
static void some_interface_proxy_some_interface_interface_init (SomeInterfaceIface* iface);
static void _dbus_some_interface_context_menu (SomeInterface* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_some_interface_activate (SomeInterface* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_some_interface_secondary_activate (SomeInterface* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_some_interface_scroll (SomeInterface* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void some_interface_dbus_interface_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);
static GVariant* some_interface_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
static gboolean some_interface_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
static void _some_interface_unregister_object (gpointer user_data);

static const GDBusArgInfo _some_interface_dbus_arg_info_context_menu_x = {-1, "x", "i"};
static const GDBusArgInfo _some_interface_dbus_arg_info_context_menu_y = {-1, "y", "i"};
static const GDBusArgInfo * const _some_interface_dbus_arg_info_context_menu_in[] = {&_some_interface_dbus_arg_info_context_menu_x, &_some_interface_dbus_arg_info_context_menu_y, NULL};
static const GDBusArgInfo * const _some_interface_dbus_arg_info_context_menu_out[] = {NULL};
static const GDBusMethodInfo _some_interface_dbus_method_info_context_menu = {-1, "ContextMenu", (GDBusArgInfo **) (&_some_interface_dbus_arg_info_context_menu_in), (GDBusArgInfo **) (&_some_interface_dbus_arg_info_context_menu_out)};
static const GDBusArgInfo _some_interface_dbus_arg_info_activate_x = {-1, "x", "i"};
static const GDBusArgInfo _some_interface_dbus_arg_info_activate_y = {-1, "y", "i"};
static const GDBusArgInfo * const _some_interface_dbus_arg_info_activate_in[] = {&_some_interface_dbus_arg_info_activate_x, &_some_interface_dbus_arg_info_activate_y, NULL};
static const GDBusArgInfo * const _some_interface_dbus_arg_info_activate_out[] = {NULL};
static const GDBusMethodInfo _some_interface_dbus_method_info_activate = {-1, "Activate", (GDBusArgInfo **) (&_some_interface_dbus_arg_info_activate_in), (GDBusArgInfo **) (&_some_interface_dbus_arg_info_activate_out)};
static const GDBusArgInfo _some_interface_dbus_arg_info_secondary_activate_x = {-1, "x", "i"};
static const GDBusArgInfo _some_interface_dbus_arg_info_secondary_activate_y = {-1, "y", "i"};
static const GDBusArgInfo * const _some_interface_dbus_arg_info_secondary_activate_in[] = {&_some_interface_dbus_arg_info_secondary_activate_x, &_some_interface_dbus_arg_info_secondary_activate_y, NULL};
static const GDBusArgInfo * const _some_interface_dbus_arg_info_secondary_activate_out[] = {NULL};
static const GDBusMethodInfo _some_interface_dbus_method_info_secondary_activate = {-1, "SecondaryActivate", (GDBusArgInfo **) (&_some_interface_dbus_arg_info_secondary_activate_in), (GDBusArgInfo **) (&_some_interface_dbus_arg_info_secondary_activate_out)};
static const GDBusArgInfo _some_interface_dbus_arg_info_scroll_delta = {-1, "delta", "i"};
static const GDBusArgInfo _some_interface_dbus_arg_info_scroll_orientation = {-1, "orientation", "s"};
static const GDBusArgInfo * const _some_interface_dbus_arg_info_scroll_in[] = {&_some_interface_dbus_arg_info_scroll_delta, &_some_interface_dbus_arg_info_scroll_orientation, NULL};
static const GDBusArgInfo * const _some_interface_dbus_arg_info_scroll_out[] = {NULL};
static const GDBusMethodInfo _some_interface_dbus_method_info_scroll = {-1, "Scroll", (GDBusArgInfo **) (&_some_interface_dbus_arg_info_scroll_in), (GDBusArgInfo **) (&_some_interface_dbus_arg_info_scroll_out)};
static const GDBusMethodInfo * const _some_interface_dbus_method_info[] = {&_some_interface_dbus_method_info_context_menu, &_some_interface_dbus_method_info_activate, &_some_interface_dbus_method_info_secondary_activate, &_some_interface_dbus_method_info_scroll, NULL};
static const GDBusSignalInfo * const _some_interface_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _some_interface_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _some_interface_dbus_interface_info = {-1, "org.kde.StatusNotifierItem", (GDBusMethodInfo **) (&_some_interface_dbus_method_info), (GDBusSignalInfo **) (&_some_interface_dbus_signal_info), (GDBusPropertyInfo **) (&_some_interface_dbus_property_info)};
static const GDBusInterfaceVTable _some_interface_dbus_interface_vtable = {some_interface_dbus_interface_method_call, some_interface_dbus_interface_get_property, some_interface_dbus_interface_set_property};

void some_interface_context_menu (SomeInterface* self, gint x, gint y) {
#line 49 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	g_return_if_fail (self != NULL);
#line 49 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	SOME_INTERFACE_GET_INTERFACE (self)->context_menu (self, x, y);
#line 92 "snitem.c"
}


void some_interface_activate (SomeInterface* self, gint x, gint y) {
#line 50 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	g_return_if_fail (self != NULL);
#line 50 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	SOME_INTERFACE_GET_INTERFACE (self)->activate (self, x, y);
#line 101 "snitem.c"
}


void some_interface_secondary_activate (SomeInterface* self, gint x, gint y) {
#line 51 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	g_return_if_fail (self != NULL);
#line 51 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	SOME_INTERFACE_GET_INTERFACE (self)->secondary_activate (self, x, y);
#line 110 "snitem.c"
}


void some_interface_scroll (SomeInterface* self, gint delta, const gchar* orientation) {
#line 52 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	g_return_if_fail (self != NULL);
#line 52 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	SOME_INTERFACE_GET_INTERFACE (self)->scroll (self, delta, orientation);
#line 119 "snitem.c"
}


static void some_interface_base_init (SomeInterfaceIface * iface) {
#line 5 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	static gboolean initialized = FALSE;
#line 5 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
	if (!initialized) {
#line 5 "/home/athor/Downloads/Panel/vala-panel/applets/core/sntray/snitem.vala"
		initialized = TRUE;
#line 130 "snitem.c"
	}
}


GType some_interface_get_type (void) {
	return some_interface_type_id;
}


GType some_interface_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (SomeInterfaceIface), (GBaseInitFunc) some_interface_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	some_interface_type_id = g_type_module_register_type (module, G_TYPE_INTERFACE, "SomeInterface", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (some_interface_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (some_interface_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) some_interface_proxy_get_type);
	g_type_set_qdata (some_interface_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.kde.StatusNotifierItem");
	g_type_set_qdata (some_interface_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_some_interface_dbus_interface_info));
	g_type_set_qdata (some_interface_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) some_interface_register_object);
	return some_interface_type_id;
}


G_DEFINE_DYNAMIC_TYPE_EXTENDED (SomeInterfaceProxy, some_interface_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE_DYNAMIC (TYPE_SOME_INTERFACE, some_interface_proxy_some_interface_interface_init) )
static void some_interface_proxy_class_init (SomeInterfaceProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = some_interface_proxy_g_signal;
}


static void some_interface_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
}


static void some_interface_proxy_class_finalize (SomeInterfaceProxyClass* klass) {
}


void some_interface_proxy_register_dynamic_type (GTypeModule* module) {
	some_interface_proxy_register_type (module);
}


static void some_interface_proxy_init (SomeInterfaceProxy* self) {
}


static void some_interface_proxy_context_menu (SomeInterface* self, gint x, gint y) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.kde.StatusNotifierItem", "ContextMenu");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (x));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (y));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static void some_interface_proxy_activate (SomeInterface* self, gint x, gint y) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.kde.StatusNotifierItem", "Activate");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (x));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (y));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static void some_interface_proxy_secondary_activate (SomeInterface* self, gint x, gint y) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.kde.StatusNotifierItem", "SecondaryActivate");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (x));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (y));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static void some_interface_proxy_scroll (SomeInterface* self, gint delta, const gchar* orientation) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.kde.StatusNotifierItem", "Scroll");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (delta));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (orientation));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static void some_interface_proxy_some_interface_interface_init (SomeInterfaceIface* iface) {
	iface->context_menu = some_interface_proxy_context_menu;
	iface->activate = some_interface_proxy_activate;
	iface->secondary_activate = some_interface_proxy_secondary_activate;
	iface->scroll = some_interface_proxy_scroll;
}


static void _dbus_some_interface_context_menu (SomeInterface* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gint x = 0;
	GVariant* _tmp0_;
	gint y = 0;
	GVariant* _tmp1_;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp0_ = g_variant_iter_next_value (&_arguments_iter);
	x = g_variant_get_int32 (_tmp0_);
	g_variant_unref (_tmp0_);
	_tmp1_ = g_variant_iter_next_value (&_arguments_iter);
	y = g_variant_get_int32 (_tmp1_);
	g_variant_unref (_tmp1_);
	some_interface_context_menu (self, x, y);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_some_interface_activate (SomeInterface* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gint x = 0;
	GVariant* _tmp2_;
	gint y = 0;
	GVariant* _tmp3_;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp2_ = g_variant_iter_next_value (&_arguments_iter);
	x = g_variant_get_int32 (_tmp2_);
	g_variant_unref (_tmp2_);
	_tmp3_ = g_variant_iter_next_value (&_arguments_iter);
	y = g_variant_get_int32 (_tmp3_);
	g_variant_unref (_tmp3_);
	some_interface_activate (self, x, y);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_some_interface_secondary_activate (SomeInterface* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gint x = 0;
	GVariant* _tmp4_;
	gint y = 0;
	GVariant* _tmp5_;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp4_ = g_variant_iter_next_value (&_arguments_iter);
	x = g_variant_get_int32 (_tmp4_);
	g_variant_unref (_tmp4_);
	_tmp5_ = g_variant_iter_next_value (&_arguments_iter);
	y = g_variant_get_int32 (_tmp5_);
	g_variant_unref (_tmp5_);
	some_interface_secondary_activate (self, x, y);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_some_interface_scroll (SomeInterface* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gint delta = 0;
	GVariant* _tmp6_;
	gchar* orientation = NULL;
	GVariant* _tmp7_;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp6_ = g_variant_iter_next_value (&_arguments_iter);
	delta = g_variant_get_int32 (_tmp6_);
	g_variant_unref (_tmp6_);
	_tmp7_ = g_variant_iter_next_value (&_arguments_iter);
	orientation = g_variant_dup_string (_tmp7_, NULL);
	g_variant_unref (_tmp7_);
	some_interface_scroll (self, delta, orientation);
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	_g_free0 (orientation);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void some_interface_dbus_interface_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) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "ContextMenu") == 0) {
		_dbus_some_interface_context_menu (object, parameters, invocation);
	} else if (strcmp (method_name, "Activate") == 0) {
		_dbus_some_interface_activate (object, parameters, invocation);
	} else if (strcmp (method_name, "SecondaryActivate") == 0) {
		_dbus_some_interface_secondary_activate (object, parameters, invocation);
	} else if (strcmp (method_name, "Scroll") == 0) {
		_dbus_some_interface_scroll (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* some_interface_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}


static gboolean some_interface_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}


guint some_interface_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) {
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_some_interface_dbus_interface_info), &_some_interface_dbus_interface_vtable, data, _some_interface_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}


static void _some_interface_unregister_object (gpointer user_data) {
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}



