/* xnoise-media-player-plugin.c generated by valac 0.56.17, the Vala compiler
 * generated from xnoise-media-player-plugin.vala, do not modify */

/*
 * Copyright (C) 2012 Jörn Magens <shuerhaaken@googlemail.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
 *
 * Authored by Jörn Magens <shuerhaaken@googlemail.com>
 *
 */

#include <glib-object.h>
#include <gio/gio.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include "plugins.h"
#include <gee.h>
#include <synapse-core.h>
#include <glib/gi18n-lib.h>

#define SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME "org.gtk.xnoise.PlayerEngine"
#define SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH "/PlayerEngine"
#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

#define SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE (synapse_xnoise_player_engine_get_type ())
#define SYNAPSE_XNOISE_PLAYER_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE, SynapseXnoisePlayerEngine))
#define SYNAPSE_IS_XNOISE_PLAYER_ENGINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE))
#define SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE, SynapseXnoisePlayerEngineIface))

typedef struct _SynapseXnoisePlayerEngine SynapseXnoisePlayerEngine;
typedef struct _SynapseXnoisePlayerEngineIface SynapseXnoisePlayerEngineIface;

#define SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY (synapse_xnoise_player_engine_proxy_get_type ())
typedef GDBusProxy SynapseXnoisePlayerEngineProxy;
typedef GDBusProxyClass SynapseXnoisePlayerEngineProxyClass;
#define _g_free0(var) (var = (g_free (var), NULL))

#define SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_ACTION (synapse_xnoise_actions_xnoise_action_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_XNOISE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_ACTION, SynapseXnoiseActionsXnoiseAction))
#define SYNAPSE_XNOISE_ACTIONS_XNOISE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_ACTION, SynapseXnoiseActionsXnoiseActionClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_XNOISE_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_ACTION))
#define SYNAPSE_XNOISE_ACTIONS_IS_XNOISE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_ACTION))
#define SYNAPSE_XNOISE_ACTIONS_XNOISE_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_ACTION, SynapseXnoiseActionsXnoiseActionClass))

typedef struct _SynapseXnoiseActionsXnoiseAction SynapseXnoiseActionsXnoiseAction;
typedef struct _SynapseXnoiseActionsXnoiseActionClass SynapseXnoiseActionsXnoiseActionClass;

#define SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH (synapse_xnoise_actions_xnoise_control_match_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_XNOISE_CONTROL_MATCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, SynapseXnoiseActionsXnoiseControlMatch))
#define SYNAPSE_XNOISE_ACTIONS_XNOISE_CONTROL_MATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, SynapseXnoiseActionsXnoiseControlMatchClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_XNOISE_CONTROL_MATCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH))
#define SYNAPSE_XNOISE_ACTIONS_IS_XNOISE_CONTROL_MATCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH))
#define SYNAPSE_XNOISE_ACTIONS_XNOISE_CONTROL_MATCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, SynapseXnoiseActionsXnoiseControlMatchClass))

typedef struct _SynapseXnoiseActionsXnoiseControlMatch SynapseXnoiseActionsXnoiseControlMatch;
typedef struct _SynapseXnoiseActionsXnoiseControlMatchClass SynapseXnoiseActionsXnoiseControlMatchClass;
enum  {
	SYNAPSE_XNOISE_ACTIONS_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_ENABLED_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_properties[SYNAPSE_XNOISE_ACTIONS_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _SynapseXnoiseActionsSearchData SynapseXnoiseActionsSearchData;
typedef struct _SynapseXnoiseActionsXnoiseActionPrivate SynapseXnoiseActionsXnoiseActionPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_XNOISE_ACTION_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_XNOISE_ACTION_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_xnoise_action_properties[SYNAPSE_XNOISE_ACTIONS_XNOISE_ACTION_NUM_PROPERTIES];
typedef struct _SynapseXnoiseActionsXnoiseControlMatchPrivate SynapseXnoiseActionsXnoiseControlMatchPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_XNOISE_CONTROL_MATCH_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_XNOISE_CONTROL_MATCH_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_xnoise_control_match_properties[SYNAPSE_XNOISE_ACTIONS_XNOISE_CONTROL_MATCH_NUM_PROPERTIES];

#define SYNAPSE_XNOISE_ACTIONS_TYPE_QUIT (synapse_xnoise_actions_quit_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_QUIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_QUIT, SynapseXnoiseActionsQuit))
#define SYNAPSE_XNOISE_ACTIONS_QUIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_QUIT, SynapseXnoiseActionsQuitClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_QUIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_QUIT))
#define SYNAPSE_XNOISE_ACTIONS_IS_QUIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_QUIT))
#define SYNAPSE_XNOISE_ACTIONS_QUIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_QUIT, SynapseXnoiseActionsQuitClass))

typedef struct _SynapseXnoiseActionsQuit SynapseXnoiseActionsQuit;
typedef struct _SynapseXnoiseActionsQuitClass SynapseXnoiseActionsQuitClass;
typedef struct _SynapseXnoiseActionsQuitPrivate SynapseXnoiseActionsQuitPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_QUIT_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_QUIT_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_quit_properties[SYNAPSE_XNOISE_ACTIONS_QUIT_NUM_PROPERTIES];
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define SYNAPSE_XNOISE_ACTIONS_TYPE_RAISE (synapse_xnoise_actions_raise_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_RAISE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_RAISE, SynapseXnoiseActionsRaise))
#define SYNAPSE_XNOISE_ACTIONS_RAISE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_RAISE, SynapseXnoiseActionsRaiseClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_RAISE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_RAISE))
#define SYNAPSE_XNOISE_ACTIONS_IS_RAISE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_RAISE))
#define SYNAPSE_XNOISE_ACTIONS_RAISE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_RAISE, SynapseXnoiseActionsRaiseClass))

typedef struct _SynapseXnoiseActionsRaise SynapseXnoiseActionsRaise;
typedef struct _SynapseXnoiseActionsRaiseClass SynapseXnoiseActionsRaiseClass;
typedef struct _SynapseXnoiseActionsRaisePrivate SynapseXnoiseActionsRaisePrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_RAISE_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_RAISE_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_raise_properties[SYNAPSE_XNOISE_ACTIONS_RAISE_NUM_PROPERTIES];

#define SYNAPSE_XNOISE_ACTIONS_TYPE_PLAY (synapse_xnoise_actions_play_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_PLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PLAY, SynapseXnoiseActionsPlay))
#define SYNAPSE_XNOISE_ACTIONS_PLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_PLAY, SynapseXnoiseActionsPlayClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_PLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PLAY))
#define SYNAPSE_XNOISE_ACTIONS_IS_PLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_PLAY))
#define SYNAPSE_XNOISE_ACTIONS_PLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PLAY, SynapseXnoiseActionsPlayClass))

typedef struct _SynapseXnoiseActionsPlay SynapseXnoiseActionsPlay;
typedef struct _SynapseXnoiseActionsPlayClass SynapseXnoiseActionsPlayClass;
typedef struct _SynapseXnoiseActionsPlayPrivate SynapseXnoiseActionsPlayPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_PLAY_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_PLAY_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_play_properties[SYNAPSE_XNOISE_ACTIONS_PLAY_NUM_PROPERTIES];

#define SYNAPSE_XNOISE_ACTIONS_TYPE_TOGGLE_PLAYING (synapse_xnoise_actions_toggle_playing_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_TOGGLE_PLAYING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_TOGGLE_PLAYING, SynapseXnoiseActionsTogglePlaying))
#define SYNAPSE_XNOISE_ACTIONS_TOGGLE_PLAYING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_TOGGLE_PLAYING, SynapseXnoiseActionsTogglePlayingClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_TOGGLE_PLAYING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_TOGGLE_PLAYING))
#define SYNAPSE_XNOISE_ACTIONS_IS_TOGGLE_PLAYING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_TOGGLE_PLAYING))
#define SYNAPSE_XNOISE_ACTIONS_TOGGLE_PLAYING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_TOGGLE_PLAYING, SynapseXnoiseActionsTogglePlayingClass))

typedef struct _SynapseXnoiseActionsTogglePlaying SynapseXnoiseActionsTogglePlaying;
typedef struct _SynapseXnoiseActionsTogglePlayingClass SynapseXnoiseActionsTogglePlayingClass;
typedef struct _SynapseXnoiseActionsTogglePlayingPrivate SynapseXnoiseActionsTogglePlayingPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_TOGGLE_PLAYING_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_TOGGLE_PLAYING_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_toggle_playing_properties[SYNAPSE_XNOISE_ACTIONS_TOGGLE_PLAYING_NUM_PROPERTIES];

#define SYNAPSE_XNOISE_ACTIONS_TYPE_PAUSE (synapse_xnoise_actions_pause_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_PAUSE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PAUSE, SynapseXnoiseActionsPause))
#define SYNAPSE_XNOISE_ACTIONS_PAUSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_PAUSE, SynapseXnoiseActionsPauseClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_PAUSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PAUSE))
#define SYNAPSE_XNOISE_ACTIONS_IS_PAUSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_PAUSE))
#define SYNAPSE_XNOISE_ACTIONS_PAUSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PAUSE, SynapseXnoiseActionsPauseClass))

typedef struct _SynapseXnoiseActionsPause SynapseXnoiseActionsPause;
typedef struct _SynapseXnoiseActionsPauseClass SynapseXnoiseActionsPauseClass;
typedef struct _SynapseXnoiseActionsPausePrivate SynapseXnoiseActionsPausePrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_PAUSE_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_PAUSE_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_pause_properties[SYNAPSE_XNOISE_ACTIONS_PAUSE_NUM_PROPERTIES];

#define SYNAPSE_XNOISE_ACTIONS_TYPE_NEXT (synapse_xnoise_actions_next_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_NEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_NEXT, SynapseXnoiseActionsNext))
#define SYNAPSE_XNOISE_ACTIONS_NEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_NEXT, SynapseXnoiseActionsNextClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_NEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_NEXT))
#define SYNAPSE_XNOISE_ACTIONS_IS_NEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_NEXT))
#define SYNAPSE_XNOISE_ACTIONS_NEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_NEXT, SynapseXnoiseActionsNextClass))

typedef struct _SynapseXnoiseActionsNext SynapseXnoiseActionsNext;
typedef struct _SynapseXnoiseActionsNextClass SynapseXnoiseActionsNextClass;
typedef struct _SynapseXnoiseActionsNextPrivate SynapseXnoiseActionsNextPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_NEXT_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_NEXT_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_next_properties[SYNAPSE_XNOISE_ACTIONS_NEXT_NUM_PROPERTIES];

#define SYNAPSE_XNOISE_ACTIONS_TYPE_PREVIOUS (synapse_xnoise_actions_previous_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_PREVIOUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PREVIOUS, SynapseXnoiseActionsPrevious))
#define SYNAPSE_XNOISE_ACTIONS_PREVIOUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_PREVIOUS, SynapseXnoiseActionsPreviousClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_PREVIOUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PREVIOUS))
#define SYNAPSE_XNOISE_ACTIONS_IS_PREVIOUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_PREVIOUS))
#define SYNAPSE_XNOISE_ACTIONS_PREVIOUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_PREVIOUS, SynapseXnoiseActionsPreviousClass))

typedef struct _SynapseXnoiseActionsPrevious SynapseXnoiseActionsPrevious;
typedef struct _SynapseXnoiseActionsPreviousClass SynapseXnoiseActionsPreviousClass;
typedef struct _SynapseXnoiseActionsPreviousPrivate SynapseXnoiseActionsPreviousPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_PREVIOUS_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_PREVIOUS_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_previous_properties[SYNAPSE_XNOISE_ACTIONS_PREVIOUS_NUM_PROPERTIES];

#define SYNAPSE_XNOISE_ACTIONS_TYPE_STOP (synapse_xnoise_actions_stop_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_STOP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_STOP, SynapseXnoiseActionsStop))
#define SYNAPSE_XNOISE_ACTIONS_STOP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_STOP, SynapseXnoiseActionsStopClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_STOP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_STOP))
#define SYNAPSE_XNOISE_ACTIONS_IS_STOP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_STOP))
#define SYNAPSE_XNOISE_ACTIONS_STOP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_STOP, SynapseXnoiseActionsStopClass))

typedef struct _SynapseXnoiseActionsStop SynapseXnoiseActionsStop;
typedef struct _SynapseXnoiseActionsStopClass SynapseXnoiseActionsStopClass;
typedef struct _SynapseXnoiseActionsStopPrivate SynapseXnoiseActionsStopPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_STOP_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_STOP_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_stop_properties[SYNAPSE_XNOISE_ACTIONS_STOP_NUM_PROPERTIES];

#define SYNAPSE_XNOISE_ACTIONS_TYPE_OPEN_URI (synapse_xnoise_actions_open_uri_get_type ())
#define SYNAPSE_XNOISE_ACTIONS_OPEN_URI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_OPEN_URI, SynapseXnoiseActionsOpenUri))
#define SYNAPSE_XNOISE_ACTIONS_OPEN_URI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_OPEN_URI, SynapseXnoiseActionsOpenUriClass))
#define SYNAPSE_XNOISE_ACTIONS_IS_OPEN_URI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_OPEN_URI))
#define SYNAPSE_XNOISE_ACTIONS_IS_OPEN_URI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_XNOISE_ACTIONS_TYPE_OPEN_URI))
#define SYNAPSE_XNOISE_ACTIONS_OPEN_URI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_XNOISE_ACTIONS_TYPE_OPEN_URI, SynapseXnoiseActionsOpenUriClass))

typedef struct _SynapseXnoiseActionsOpenUri SynapseXnoiseActionsOpenUri;
typedef struct _SynapseXnoiseActionsOpenUriClass SynapseXnoiseActionsOpenUriClass;
typedef struct _SynapseXnoiseActionsOpenUriPrivate SynapseXnoiseActionsOpenUriPrivate;
enum  {
	SYNAPSE_XNOISE_ACTIONS_OPEN_URI_0_PROPERTY,
	SYNAPSE_XNOISE_ACTIONS_OPEN_URI_NUM_PROPERTIES
};
static GParamSpec* synapse_xnoise_actions_open_uri_properties[SYNAPSE_XNOISE_ACTIONS_OPEN_URI_NUM_PROPERTIES];

struct _SynapseXnoisePlayerEngineIface {
	GTypeInterface parent_iface;
	void (*quit) (SynapseXnoisePlayerEngine* self, GError** error);
	void (*raise) (SynapseXnoisePlayerEngine* self, GError** error);
	void (*next) (SynapseXnoisePlayerEngine* self, GError** error);
	void (*previous) (SynapseXnoisePlayerEngine* self, GError** error);
	void (*pause) (SynapseXnoisePlayerEngine* self, GError** error);
	void (*toggle_playing) (SynapseXnoisePlayerEngine* self, GError** error);
	void (*stop) (SynapseXnoisePlayerEngine* self, GError** error);
	void (*play) (SynapseXnoisePlayerEngine* self, GError** error);
	void (*open_uri) (SynapseXnoisePlayerEngine* self, const gchar* uri, GError** error);
};

struct _SynapseXnoiseActionsPrivate {
	gboolean _enabled;
	GeeList* actions;
	GeeList* matches;
};

struct _SynapseXnoiseActionsSearchData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	SynapseXnoiseActions* self;
	SynapseQuery q;
	SynapseResultSet* result;
	SynapseQuery _tmp0_;
	SynapseResultSet* _result_;
	SynapseResultSet* _tmp1_;
	GeeList* matchers;
	SynapseQuery _tmp2_;
	const gchar* _tmp3_;
	GeeList* _tmp4_;
	GeeList* _action_list;
	GeeList* _tmp5_;
	gint _action_size;
	GeeList* _tmp6_;
	gint _tmp7_;
	gint _tmp8_;
	gint _action_index;
	gint _tmp9_;
	gint _tmp10_;
	SynapseXnoiseActionsXnoiseControlMatch* action;
	GeeList* _tmp11_;
	gpointer _tmp12_;
	SynapseXnoiseActionsXnoiseControlMatch* _tmp13_;
	GeeList* _matcher_list;
	GeeList* _tmp14_;
	gint _matcher_size;
	GeeList* _tmp15_;
	gint _tmp16_;
	gint _tmp17_;
	gint _matcher_index;
	gint _tmp18_;
	gint _tmp19_;
	GeeMapEntry* matcher;
	GeeList* _tmp20_;
	gpointer _tmp21_;
	GeeMapEntry* _tmp22_;
	gconstpointer _tmp23_;
	gconstpointer _tmp24_;
	SynapseXnoiseActionsXnoiseControlMatch* _tmp25_;
	const gchar* _tmp26_;
	const gchar* _tmp27_;
	SynapseResultSet* _tmp28_;
	SynapseXnoiseActionsXnoiseControlMatch* _tmp29_;
	GeeMapEntry* _tmp30_;
	gconstpointer _tmp31_;
	gconstpointer _tmp32_;
	GError* _inner_error0_;
};

struct _SynapseXnoiseActionsXnoiseAction {
	SynapseAction parent_instance;
	SynapseXnoiseActionsXnoiseActionPrivate * priv;
};

struct _SynapseXnoiseActionsXnoiseActionClass {
	SynapseActionClass parent_class;
	gint (*get_relevancy) (SynapseXnoiseActionsXnoiseAction* self);
};

struct _SynapseXnoiseActionsXnoiseControlMatch {
	SynapseActionMatch parent_instance;
	SynapseXnoiseActionsXnoiseControlMatchPrivate * priv;
};

struct _SynapseXnoiseActionsXnoiseControlMatchClass {
	SynapseActionMatchClass parent_class;
	gboolean (*action_available) (SynapseXnoiseActionsXnoiseControlMatch* self);
};

struct _SynapseXnoiseActionsQuit {
	SynapseXnoiseActionsXnoiseControlMatch parent_instance;
	SynapseXnoiseActionsQuitPrivate * priv;
};

struct _SynapseXnoiseActionsQuitClass {
	SynapseXnoiseActionsXnoiseControlMatchClass parent_class;
};

struct _SynapseXnoiseActionsRaise {
	SynapseXnoiseActionsXnoiseControlMatch parent_instance;
	SynapseXnoiseActionsRaisePrivate * priv;
};

struct _SynapseXnoiseActionsRaiseClass {
	SynapseXnoiseActionsXnoiseControlMatchClass parent_class;
};

struct _SynapseXnoiseActionsPlay {
	SynapseXnoiseActionsXnoiseControlMatch parent_instance;
	SynapseXnoiseActionsPlayPrivate * priv;
};

struct _SynapseXnoiseActionsPlayClass {
	SynapseXnoiseActionsXnoiseControlMatchClass parent_class;
};

struct _SynapseXnoiseActionsTogglePlaying {
	SynapseXnoiseActionsXnoiseControlMatch parent_instance;
	SynapseXnoiseActionsTogglePlayingPrivate * priv;
};

struct _SynapseXnoiseActionsTogglePlayingClass {
	SynapseXnoiseActionsXnoiseControlMatchClass parent_class;
};

struct _SynapseXnoiseActionsPause {
	SynapseXnoiseActionsXnoiseControlMatch parent_instance;
	SynapseXnoiseActionsPausePrivate * priv;
};

struct _SynapseXnoiseActionsPauseClass {
	SynapseXnoiseActionsXnoiseControlMatchClass parent_class;
};

struct _SynapseXnoiseActionsNext {
	SynapseXnoiseActionsXnoiseControlMatch parent_instance;
	SynapseXnoiseActionsNextPrivate * priv;
};

struct _SynapseXnoiseActionsNextClass {
	SynapseXnoiseActionsXnoiseControlMatchClass parent_class;
};

struct _SynapseXnoiseActionsPrevious {
	SynapseXnoiseActionsXnoiseControlMatch parent_instance;
	SynapseXnoiseActionsPreviousPrivate * priv;
};

struct _SynapseXnoiseActionsPreviousClass {
	SynapseXnoiseActionsXnoiseControlMatchClass parent_class;
};

struct _SynapseXnoiseActionsStop {
	SynapseXnoiseActionsXnoiseControlMatch parent_instance;
	SynapseXnoiseActionsStopPrivate * priv;
};

struct _SynapseXnoiseActionsStopClass {
	SynapseXnoiseActionsXnoiseControlMatchClass parent_class;
};

struct _SynapseXnoiseActionsOpenUri {
	SynapseXnoiseActionsXnoiseAction parent_instance;
	SynapseXnoiseActionsOpenUriPrivate * priv;
};

struct _SynapseXnoiseActionsOpenUriClass {
	SynapseXnoiseActionsXnoiseActionClass parent_class;
};

static gint SynapseXnoiseActions_private_offset;
static gpointer synapse_xnoise_actions_parent_class = NULL;
static gpointer synapse_xnoise_actions_xnoise_action_parent_class = NULL;
static gpointer synapse_xnoise_actions_xnoise_control_match_parent_class = NULL;
static gpointer synapse_xnoise_actions_quit_parent_class = NULL;
static gpointer synapse_xnoise_actions_raise_parent_class = NULL;
static gpointer synapse_xnoise_actions_play_parent_class = NULL;
static gpointer synapse_xnoise_actions_toggle_playing_parent_class = NULL;
static gpointer synapse_xnoise_actions_pause_parent_class = NULL;
static gpointer synapse_xnoise_actions_next_parent_class = NULL;
static gpointer synapse_xnoise_actions_previous_parent_class = NULL;
static gpointer synapse_xnoise_actions_stop_parent_class = NULL;
static gpointer synapse_xnoise_actions_open_uri_parent_class = NULL;
static SynapseActivatableIface * synapse_xnoise_actions_synapse_activatable_parent_iface = NULL;
static SynapseItemProviderIface * synapse_xnoise_actions_synapse_item_provider_parent_iface = NULL;
static SynapseActionProviderIface * synapse_xnoise_actions_synapse_action_provider_parent_iface = NULL;

VALA_EXTERN GType synapse_xnoise_player_engine_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint synapse_xnoise_player_engine_register_object (void* object,
                                                    GDBusConnection* connection,
                                                    const gchar* path,
                                                    GError** error);
VALA_EXTERN GType synapse_xnoise_player_engine_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void synapse_xnoise_player_engine_quit (SynapseXnoisePlayerEngine* self,
                                        GError** error);
VALA_EXTERN void synapse_xnoise_player_engine_raise (SynapseXnoisePlayerEngine* self,
                                         GError** error);
VALA_EXTERN void synapse_xnoise_player_engine_next (SynapseXnoisePlayerEngine* self,
                                        GError** error);
VALA_EXTERN void synapse_xnoise_player_engine_previous (SynapseXnoisePlayerEngine* self,
                                            GError** error);
VALA_EXTERN void synapse_xnoise_player_engine_pause (SynapseXnoisePlayerEngine* self,
                                         GError** error);
VALA_EXTERN void synapse_xnoise_player_engine_toggle_playing (SynapseXnoisePlayerEngine* self,
                                                  GError** error);
VALA_EXTERN void synapse_xnoise_player_engine_stop (SynapseXnoisePlayerEngine* self,
                                        GError** error);
VALA_EXTERN void synapse_xnoise_player_engine_play (SynapseXnoisePlayerEngine* self,
                                        GError** error);
VALA_EXTERN void synapse_xnoise_player_engine_open_uri (SynapseXnoisePlayerEngine* self,
                                            const gchar* uri,
                                            GError** error);
static GType synapse_xnoise_player_engine_get_type_once (void);
static void synapse_xnoise_player_engine_proxy_g_signal (GDBusProxy* proxy,
                                                  const gchar* sender_name,
                                                  const gchar* signal_name,
                                                  GVariant* parameters);
static void synapse_xnoise_player_engine_proxy_quit (SynapseXnoisePlayerEngine* self,
                                              GError** error);
static void synapse_xnoise_player_engine_proxy_raise (SynapseXnoisePlayerEngine* self,
                                               GError** error);
static void synapse_xnoise_player_engine_proxy_next (SynapseXnoisePlayerEngine* self,
                                              GError** error);
static void synapse_xnoise_player_engine_proxy_previous (SynapseXnoisePlayerEngine* self,
                                                  GError** error);
static void synapse_xnoise_player_engine_proxy_pause (SynapseXnoisePlayerEngine* self,
                                               GError** error);
static void synapse_xnoise_player_engine_proxy_toggle_playing (SynapseXnoisePlayerEngine* self,
                                                        GError** error);
static void synapse_xnoise_player_engine_proxy_stop (SynapseXnoisePlayerEngine* self,
                                              GError** error);
static void synapse_xnoise_player_engine_proxy_play (SynapseXnoisePlayerEngine* self,
                                              GError** error);
static void synapse_xnoise_player_engine_proxy_open_uri (SynapseXnoisePlayerEngine* self,
                                                  const gchar* uri,
                                                  GError** error);
static void synapse_xnoise_player_engine_proxy_synapse_xnoise_player_engine_interface_init (SynapseXnoisePlayerEngineIface* iface);
static void _dbus_synapse_xnoise_player_engine_quit (SynapseXnoisePlayerEngine* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation);
static void _dbus_synapse_xnoise_player_engine_raise (SynapseXnoisePlayerEngine* self,
                                               GVariant* _parameters_,
                                               GDBusMethodInvocation* invocation);
static void _dbus_synapse_xnoise_player_engine_next (SynapseXnoisePlayerEngine* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation);
static void _dbus_synapse_xnoise_player_engine_previous (SynapseXnoisePlayerEngine* self,
                                                  GVariant* _parameters_,
                                                  GDBusMethodInvocation* invocation);
static void _dbus_synapse_xnoise_player_engine_pause (SynapseXnoisePlayerEngine* self,
                                               GVariant* _parameters_,
                                               GDBusMethodInvocation* invocation);
static void _dbus_synapse_xnoise_player_engine_toggle_playing (SynapseXnoisePlayerEngine* self,
                                                        GVariant* _parameters_,
                                                        GDBusMethodInvocation* invocation);
static void _dbus_synapse_xnoise_player_engine_stop (SynapseXnoisePlayerEngine* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation);
static void _dbus_synapse_xnoise_player_engine_play (SynapseXnoisePlayerEngine* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation);
static void _dbus_synapse_xnoise_player_engine_open_uri (SynapseXnoisePlayerEngine* self,
                                                  GVariant* _parameters_,
                                                  GDBusMethodInvocation* invocation);
static void synapse_xnoise_player_engine_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* synapse_xnoise_player_engine_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 synapse_xnoise_player_engine_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 _synapse_xnoise_player_engine_unregister_object (gpointer user_data);
static GType synapse_xnoise_actions_xnoise_action_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static GType synapse_xnoise_actions_xnoise_control_match_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static void synapse_xnoise_actions_real_activate (SynapseActivatable* base);
static void synapse_xnoise_actions_real_deactivate (SynapseActivatable* base);
static void synapse_xnoise_actions_register_plugin (void);
static void _synapse_xnoise_actions_register_plugin_synapse_plugin_register_func (void);
static void synapse_xnoise_actions_real_search_data_free (gpointer _data);
static void synapse_xnoise_actions_real_search (SynapseItemProvider* base,
                                         SynapseQuery* q,
                                         GAsyncReadyCallback _callback_,
                                         gpointer _user_data_);
static gboolean synapse_xnoise_actions_real_search_co (SynapseXnoiseActionsSearchData* _data_);
static gboolean synapse_xnoise_actions_xnoise_control_match_action_available (SynapseXnoiseActionsXnoiseControlMatch* self);
static SynapseResultSet* synapse_xnoise_actions_real_find_for_match (SynapseActionProvider* base,
                                                              SynapseQuery* query,
                                                              SynapseMatch* match);
static gint synapse_xnoise_actions_xnoise_action_get_relevancy (SynapseXnoiseActionsXnoiseAction* self);
static gint synapse_xnoise_actions_xnoise_action_real_get_relevancy (SynapseXnoiseActionsXnoiseAction* self);
static SynapseXnoiseActionsXnoiseAction* synapse_xnoise_actions_xnoise_action_construct (GType object_type);
static GType synapse_xnoise_actions_xnoise_action_get_type_once (void);
static gboolean synapse_xnoise_actions_xnoise_control_match_real_action_available (SynapseXnoiseActionsXnoiseControlMatch* self);
static SynapseXnoiseActionsXnoiseControlMatch* synapse_xnoise_actions_xnoise_control_match_construct (GType object_type);
static GType synapse_xnoise_actions_xnoise_control_match_get_type_once (void);
static GType synapse_xnoise_actions_quit_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsQuit* synapse_xnoise_actions_quit_new (void);
static SynapseXnoiseActionsQuit* synapse_xnoise_actions_quit_construct (GType object_type);
static void synapse_xnoise_actions_quit_real_do_action (SynapseActionMatch* base);
static GType synapse_xnoise_actions_quit_get_type_once (void);
static GType synapse_xnoise_actions_raise_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsRaise* synapse_xnoise_actions_raise_new (void);
static SynapseXnoiseActionsRaise* synapse_xnoise_actions_raise_construct (GType object_type);
static void synapse_xnoise_actions_raise_real_do_action (SynapseActionMatch* base);
static GType synapse_xnoise_actions_raise_get_type_once (void);
static GType synapse_xnoise_actions_play_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsPlay* synapse_xnoise_actions_play_new (void);
static SynapseXnoiseActionsPlay* synapse_xnoise_actions_play_construct (GType object_type);
static void synapse_xnoise_actions_play_real_do_action (SynapseActionMatch* base);
static GType synapse_xnoise_actions_play_get_type_once (void);
static GType synapse_xnoise_actions_toggle_playing_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsTogglePlaying* synapse_xnoise_actions_toggle_playing_new (void);
static SynapseXnoiseActionsTogglePlaying* synapse_xnoise_actions_toggle_playing_construct (GType object_type);
static void synapse_xnoise_actions_toggle_playing_real_do_action (SynapseActionMatch* base);
static gboolean synapse_xnoise_actions_toggle_playing_real_action_available (SynapseXnoiseActionsXnoiseControlMatch* base);
static GType synapse_xnoise_actions_toggle_playing_get_type_once (void);
static GType synapse_xnoise_actions_pause_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsPause* synapse_xnoise_actions_pause_new (void);
static SynapseXnoiseActionsPause* synapse_xnoise_actions_pause_construct (GType object_type);
static void synapse_xnoise_actions_pause_real_do_action (SynapseActionMatch* base);
static GType synapse_xnoise_actions_pause_get_type_once (void);
static GType synapse_xnoise_actions_next_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsNext* synapse_xnoise_actions_next_new (void);
static SynapseXnoiseActionsNext* synapse_xnoise_actions_next_construct (GType object_type);
static void synapse_xnoise_actions_next_real_do_action (SynapseActionMatch* base);
static GType synapse_xnoise_actions_next_get_type_once (void);
static GType synapse_xnoise_actions_previous_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsPrevious* synapse_xnoise_actions_previous_new (void);
static SynapseXnoiseActionsPrevious* synapse_xnoise_actions_previous_construct (GType object_type);
static void synapse_xnoise_actions_previous_real_do_action (SynapseActionMatch* base);
static GType synapse_xnoise_actions_previous_get_type_once (void);
static GType synapse_xnoise_actions_stop_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsStop* synapse_xnoise_actions_stop_new (void);
static SynapseXnoiseActionsStop* synapse_xnoise_actions_stop_construct (GType object_type);
static void synapse_xnoise_actions_stop_real_do_action (SynapseActionMatch* base);
static GType synapse_xnoise_actions_stop_get_type_once (void);
static GType synapse_xnoise_actions_open_uri_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
static SynapseXnoiseActionsOpenUri* synapse_xnoise_actions_open_uri_new (void);
static SynapseXnoiseActionsOpenUri* synapse_xnoise_actions_open_uri_construct (GType object_type);
static void synapse_xnoise_actions_open_uri_real_do_execute (SynapseAction* base,
                                                      SynapseMatch* match,
                                                      SynapseMatch* target);
static gboolean synapse_xnoise_actions_open_uri_real_valid_for_match (SynapseAction* base,
                                                               SynapseMatch* match);
static GType synapse_xnoise_actions_open_uri_get_type_once (void);
static GObject * synapse_xnoise_actions_constructor (GType type,
                                              guint n_construct_properties,
                                              GObjectConstructParam * construct_properties);
static void synapse_xnoise_actions_finalize (GObject * obj);
static GType synapse_xnoise_actions_get_type_once (void);
static void _vala_synapse_xnoise_actions_get_property (GObject * object,
                                                guint property_id,
                                                GValue * value,
                                                GParamSpec * pspec);
static void _vala_synapse_xnoise_actions_set_property (GObject * object,
                                                guint property_id,
                                                const GValue * value,
                                                GParamSpec * pspec);

static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_quit_in[] = {NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_quit_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_quit = {-1, "Quit", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_quit_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_quit_out), NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_raise_in[] = {NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_raise_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_raise = {-1, "Raise", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_raise_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_raise_out), NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_next_in[] = {NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_next_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_next = {-1, "Next", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_next_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_next_out), NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_previous_in[] = {NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_previous_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_previous = {-1, "Previous", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_previous_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_previous_out), NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_pause_in[] = {NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_pause_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_pause = {-1, "Pause", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_pause_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_pause_out), NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_toggle_playing_in[] = {NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_toggle_playing_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_toggle_playing = {-1, "TogglePlaying", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_toggle_playing_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_toggle_playing_out), NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_stop_in[] = {NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_stop_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_stop = {-1, "Stop", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_stop_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_stop_out), NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_play_in[] = {NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_play_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_play = {-1, "Play", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_play_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_play_out), NULL};
static const GDBusArgInfo _synapse_xnoise_player_engine_dbus_arg_info_open_uri_uri = {-1, "uri", "s", NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_open_uri_in[] = {&_synapse_xnoise_player_engine_dbus_arg_info_open_uri_uri, NULL};
static const GDBusArgInfo * const _synapse_xnoise_player_engine_dbus_arg_info_open_uri_out[] = {NULL};
static const GDBusMethodInfo _synapse_xnoise_player_engine_dbus_method_info_open_uri = {-1, "OpenUri", (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_open_uri_in), (GDBusArgInfo **) (&_synapse_xnoise_player_engine_dbus_arg_info_open_uri_out), NULL};
static const GDBusMethodInfo * const _synapse_xnoise_player_engine_dbus_method_info[] = {&_synapse_xnoise_player_engine_dbus_method_info_quit, &_synapse_xnoise_player_engine_dbus_method_info_raise, &_synapse_xnoise_player_engine_dbus_method_info_next, &_synapse_xnoise_player_engine_dbus_method_info_previous, &_synapse_xnoise_player_engine_dbus_method_info_pause, &_synapse_xnoise_player_engine_dbus_method_info_toggle_playing, &_synapse_xnoise_player_engine_dbus_method_info_stop, &_synapse_xnoise_player_engine_dbus_method_info_play, &_synapse_xnoise_player_engine_dbus_method_info_open_uri, NULL};
static const GDBusSignalInfo * const _synapse_xnoise_player_engine_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _synapse_xnoise_player_engine_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _synapse_xnoise_player_engine_dbus_interface_info = {-1, "org.gtk.xnoise.PlayerEngine", (GDBusMethodInfo **) (&_synapse_xnoise_player_engine_dbus_method_info), (GDBusSignalInfo **) (&_synapse_xnoise_player_engine_dbus_signal_info), (GDBusPropertyInfo **) (&_synapse_xnoise_player_engine_dbus_property_info), NULL};
static const GDBusInterfaceVTable _synapse_xnoise_player_engine_dbus_interface_vtable = {synapse_xnoise_player_engine_dbus_interface_method_call, synapse_xnoise_player_engine_dbus_interface_get_property, synapse_xnoise_player_engine_dbus_interface_set_property};

void
synapse_xnoise_player_engine_quit (SynapseXnoisePlayerEngine* self,
                                   GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 30 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 30 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 30 "xnoise-media-player-plugin.vala"
	if (_iface_->quit) {
#line 30 "xnoise-media-player-plugin.vala"
		_iface_->quit (self, error);
#line 671 "xnoise-media-player-plugin.c"
	}
}

void
synapse_xnoise_player_engine_raise (SynapseXnoisePlayerEngine* self,
                                    GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 31 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 31 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 31 "xnoise-media-player-plugin.vala"
	if (_iface_->raise) {
#line 31 "xnoise-media-player-plugin.vala"
		_iface_->raise (self, error);
#line 688 "xnoise-media-player-plugin.c"
	}
}

void
synapse_xnoise_player_engine_next (SynapseXnoisePlayerEngine* self,
                                   GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 33 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 33 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 33 "xnoise-media-player-plugin.vala"
	if (_iface_->next) {
#line 33 "xnoise-media-player-plugin.vala"
		_iface_->next (self, error);
#line 705 "xnoise-media-player-plugin.c"
	}
}

void
synapse_xnoise_player_engine_previous (SynapseXnoisePlayerEngine* self,
                                       GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 34 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 34 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 34 "xnoise-media-player-plugin.vala"
	if (_iface_->previous) {
#line 34 "xnoise-media-player-plugin.vala"
		_iface_->previous (self, error);
#line 722 "xnoise-media-player-plugin.c"
	}
}

void
synapse_xnoise_player_engine_pause (SynapseXnoisePlayerEngine* self,
                                    GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 35 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 35 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 35 "xnoise-media-player-plugin.vala"
	if (_iface_->pause) {
#line 35 "xnoise-media-player-plugin.vala"
		_iface_->pause (self, error);
#line 739 "xnoise-media-player-plugin.c"
	}
}

void
synapse_xnoise_player_engine_toggle_playing (SynapseXnoisePlayerEngine* self,
                                             GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 36 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 36 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 36 "xnoise-media-player-plugin.vala"
	if (_iface_->toggle_playing) {
#line 36 "xnoise-media-player-plugin.vala"
		_iface_->toggle_playing (self, error);
#line 756 "xnoise-media-player-plugin.c"
	}
}

void
synapse_xnoise_player_engine_stop (SynapseXnoisePlayerEngine* self,
                                   GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 37 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 37 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 37 "xnoise-media-player-plugin.vala"
	if (_iface_->stop) {
#line 37 "xnoise-media-player-plugin.vala"
		_iface_->stop (self, error);
#line 773 "xnoise-media-player-plugin.c"
	}
}

void
synapse_xnoise_player_engine_play (SynapseXnoisePlayerEngine* self,
                                   GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 38 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 38 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 38 "xnoise-media-player-plugin.vala"
	if (_iface_->play) {
#line 38 "xnoise-media-player-plugin.vala"
		_iface_->play (self, error);
#line 790 "xnoise-media-player-plugin.c"
	}
}

void
synapse_xnoise_player_engine_open_uri (SynapseXnoisePlayerEngine* self,
                                       const gchar* uri,
                                       GError** error)
{
	SynapseXnoisePlayerEngineIface* _iface_;
#line 39 "xnoise-media-player-plugin.vala"
	g_return_if_fail (self != NULL);
#line 39 "xnoise-media-player-plugin.vala"
	_iface_ = SYNAPSE_XNOISE_PLAYER_ENGINE_GET_INTERFACE (self);
#line 39 "xnoise-media-player-plugin.vala"
	if (_iface_->open_uri) {
#line 39 "xnoise-media-player-plugin.vala"
		_iface_->open_uri (self, uri, error);
#line 808 "xnoise-media-player-plugin.c"
	}
}

static void
synapse_xnoise_player_engine_default_init (SynapseXnoisePlayerEngineIface * iface,
                                           gpointer iface_data)
{
}

static GType
synapse_xnoise_player_engine_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoisePlayerEngineIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_player_engine_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType synapse_xnoise_player_engine_type_id;
	synapse_xnoise_player_engine_type_id = g_type_register_static (G_TYPE_INTERFACE, "SynapseXnoisePlayerEngine", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (synapse_xnoise_player_engine_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (synapse_xnoise_player_engine_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) synapse_xnoise_player_engine_proxy_get_type);
	g_type_set_qdata (synapse_xnoise_player_engine_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.gtk.xnoise.PlayerEngine");
	g_type_set_qdata (synapse_xnoise_player_engine_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_synapse_xnoise_player_engine_dbus_interface_info));
	g_type_set_qdata (synapse_xnoise_player_engine_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) synapse_xnoise_player_engine_register_object);
	return synapse_xnoise_player_engine_type_id;
}

GType
synapse_xnoise_player_engine_get_type (void)
{
	static volatile gsize synapse_xnoise_player_engine_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_player_engine_type_id__once)) {
		GType synapse_xnoise_player_engine_type_id;
		synapse_xnoise_player_engine_type_id = synapse_xnoise_player_engine_get_type_once ();
		g_once_init_leave (&synapse_xnoise_player_engine_type_id__once, synapse_xnoise_player_engine_type_id);
	}
	return synapse_xnoise_player_engine_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (SynapseXnoisePlayerEngineProxy, synapse_xnoise_player_engine_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE, synapse_xnoise_player_engine_proxy_synapse_xnoise_player_engine_interface_init) )
static void
synapse_xnoise_player_engine_proxy_class_init (SynapseXnoisePlayerEngineProxyClass* klass)
{
#line 24 "pastebin-plugin.vala"
	G_DBUS_PROXY_CLASS (klass)->g_signal = synapse_xnoise_player_engine_proxy_g_signal;
#line 850 "xnoise-media-player-plugin.c"
}

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

static void
synapse_xnoise_player_engine_proxy_init (SynapseXnoisePlayerEngineProxy* self)
{
#line 24 "pastebin-plugin.vala"
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_synapse_xnoise_player_engine_dbus_interface_info));
#line 866 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_quit (SynapseXnoisePlayerEngine* self,
                                         GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "Quit");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 893 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 901 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 905 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_raise (SynapseXnoisePlayerEngine* self,
                                          GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "Raise");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 932 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 940 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 944 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_next (SynapseXnoisePlayerEngine* self,
                                         GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "Next");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 971 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 979 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 983 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_previous (SynapseXnoisePlayerEngine* self,
                                             GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "Previous");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 1010 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 1018 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1022 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_pause (SynapseXnoisePlayerEngine* self,
                                          GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "Pause");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 1049 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 1057 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1061 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_toggle_playing (SynapseXnoisePlayerEngine* self,
                                                   GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "TogglePlaying");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 1088 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 1096 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1100 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_stop (SynapseXnoisePlayerEngine* self,
                                         GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "Stop");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 1127 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 1135 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1139 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_play (SynapseXnoisePlayerEngine* self,
                                         GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "Play");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 1166 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 1174 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1178 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_open_uri (SynapseXnoisePlayerEngine* self,
                                             const gchar* uri,
                                             GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
#line 24 "pastebin-plugin.vala"
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gtk.xnoise.PlayerEngine", "OpenUri");
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (uri));
#line 24 "pastebin-plugin.vala"
	_arguments = g_variant_builder_end (&_arguments_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_message, _arguments);
#line 24 "pastebin-plugin.vala"
	_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);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_message);
#line 24 "pastebin-plugin.vala"
	if (!_reply_message) {
#line 24 "pastebin-plugin.vala"
		return;
#line 1208 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	if (g_dbus_message_to_gerror (_reply_message, error)) {
#line 24 "pastebin-plugin.vala"
		g_object_unref (_reply_message);
#line 24 "pastebin-plugin.vala"
		return;
#line 1216 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1220 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_player_engine_proxy_synapse_xnoise_player_engine_interface_init (SynapseXnoisePlayerEngineIface* iface)
{
#line 24 "pastebin-plugin.vala"
	iface->quit = synapse_xnoise_player_engine_proxy_quit;
#line 24 "pastebin-plugin.vala"
	iface->raise = synapse_xnoise_player_engine_proxy_raise;
#line 24 "pastebin-plugin.vala"
	iface->next = synapse_xnoise_player_engine_proxy_next;
#line 24 "pastebin-plugin.vala"
	iface->previous = synapse_xnoise_player_engine_proxy_previous;
#line 24 "pastebin-plugin.vala"
	iface->pause = synapse_xnoise_player_engine_proxy_pause;
#line 24 "pastebin-plugin.vala"
	iface->toggle_playing = synapse_xnoise_player_engine_proxy_toggle_playing;
#line 24 "pastebin-plugin.vala"
	iface->stop = synapse_xnoise_player_engine_proxy_stop;
#line 24 "pastebin-plugin.vala"
	iface->play = synapse_xnoise_player_engine_proxy_play;
#line 24 "pastebin-plugin.vala"
	iface->open_uri = synapse_xnoise_player_engine_proxy_open_uri;
#line 1244 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_quit (SynapseXnoisePlayerEngine* self,
                                         GVariant* _parameters_,
                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_quit (self, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 24 "pastebin-plugin.vala"
		return;
#line 1267 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1283 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_raise (SynapseXnoisePlayerEngine* self,
                                          GVariant* _parameters_,
                                          GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_raise (self, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 24 "pastebin-plugin.vala"
		return;
#line 1306 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1322 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_next (SynapseXnoisePlayerEngine* self,
                                         GVariant* _parameters_,
                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_next (self, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 24 "pastebin-plugin.vala"
		return;
#line 1345 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1361 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_previous (SynapseXnoisePlayerEngine* self,
                                             GVariant* _parameters_,
                                             GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_previous (self, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 24 "pastebin-plugin.vala"
		return;
#line 1384 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1400 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_pause (SynapseXnoisePlayerEngine* self,
                                          GVariant* _parameters_,
                                          GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_pause (self, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 24 "pastebin-plugin.vala"
		return;
#line 1423 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1439 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_toggle_playing (SynapseXnoisePlayerEngine* self,
                                                   GVariant* _parameters_,
                                                   GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_toggle_playing (self, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 24 "pastebin-plugin.vala"
		return;
#line 1462 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1478 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_stop (SynapseXnoisePlayerEngine* self,
                                         GVariant* _parameters_,
                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_stop (self, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 24 "pastebin-plugin.vala"
		return;
#line 1501 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1517 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_play (SynapseXnoisePlayerEngine* self,
                                         GVariant* _parameters_,
                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_play (self, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 24 "pastebin-plugin.vala"
		return;
#line 1540 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1556 "xnoise-media-player-plugin.c"
}

static void
_dbus_synapse_xnoise_player_engine_open_uri (SynapseXnoisePlayerEngine* self,
                                             GVariant* _parameters_,
                                             GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* uri = NULL;
	GVariant* _tmp74_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
#line 24 "pastebin-plugin.vala"
	g_variant_iter_init (&_arguments_iter, _parameters_);
#line 24 "pastebin-plugin.vala"
	_tmp74_ = g_variant_iter_next_value (&_arguments_iter);
#line 24 "pastebin-plugin.vala"
	uri = g_variant_dup_string (_tmp74_, NULL);
#line 24 "pastebin-plugin.vala"
	g_variant_unref (_tmp74_);
#line 24 "pastebin-plugin.vala"
	synapse_xnoise_player_engine_open_uri (self, uri, &error);
#line 24 "pastebin-plugin.vala"
	if (error) {
#line 24 "pastebin-plugin.vala"
		g_dbus_method_invocation_take_error (invocation, error);
#line 1585 "xnoise-media-player-plugin.c"
		goto _error;
	}
#line 24 "pastebin-plugin.vala"
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
#line 24 "pastebin-plugin.vala"
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
#line 24 "pastebin-plugin.vala"
	_reply = g_variant_builder_end (&_reply_builder);
#line 24 "pastebin-plugin.vala"
	g_dbus_message_set_body (_reply_message, _reply);
#line 24 "pastebin-plugin.vala"
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
#line 24 "pastebin-plugin.vala"
	g_object_unref (invocation);
#line 24 "pastebin-plugin.vala"
	g_object_unref (_reply_message);
#line 1602 "xnoise-media-player-plugin.c"
	_error:
#line 24 "pastebin-plugin.vala"
	_g_free0 (uri);
#line 1606 "xnoise-media-player-plugin.c"
	;
}

static void
synapse_xnoise_player_engine_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];
#line 24 "pastebin-plugin.vala"
	if (strcmp (method_name, "Quit") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_quit (object, parameters, invocation);
#line 1628 "xnoise-media-player-plugin.c"
	} else if (strcmp (method_name, "Raise") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_raise (object, parameters, invocation);
#line 1632 "xnoise-media-player-plugin.c"
	} else if (strcmp (method_name, "Next") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_next (object, parameters, invocation);
#line 1636 "xnoise-media-player-plugin.c"
	} else if (strcmp (method_name, "Previous") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_previous (object, parameters, invocation);
#line 1640 "xnoise-media-player-plugin.c"
	} else if (strcmp (method_name, "Pause") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_pause (object, parameters, invocation);
#line 1644 "xnoise-media-player-plugin.c"
	} else if (strcmp (method_name, "TogglePlaying") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_toggle_playing (object, parameters, invocation);
#line 1648 "xnoise-media-player-plugin.c"
	} else if (strcmp (method_name, "Stop") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_stop (object, parameters, invocation);
#line 1652 "xnoise-media-player-plugin.c"
	} else if (strcmp (method_name, "Play") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_play (object, parameters, invocation);
#line 1656 "xnoise-media-player-plugin.c"
	} else if (strcmp (method_name, "OpenUri") == 0) {
#line 24 "pastebin-plugin.vala"
		_dbus_synapse_xnoise_player_engine_open_uri (object, parameters, invocation);
#line 1660 "xnoise-media-player-plugin.c"
	} else {
#line 24 "pastebin-plugin.vala"
		g_object_unref (invocation);
#line 1664 "xnoise-media-player-plugin.c"
	}
}

static GVariant*
synapse_xnoise_player_engine_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];
#line 24 "pastebin-plugin.vala"
	return NULL;
#line 1683 "xnoise-media-player-plugin.c"
}

static gboolean
synapse_xnoise_player_engine_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];
#line 24 "pastebin-plugin.vala"
	return FALSE;
#line 1702 "xnoise-media-player-plugin.c"
}

guint
synapse_xnoise_player_engine_register_object (gpointer object,
                                              GDBusConnection* connection,
                                              const gchar* path,
                                              GError** error)
{
	guint result;
	gpointer *data;
#line 24 "pastebin-plugin.vala"
	data = g_new (gpointer, 3);
#line 24 "pastebin-plugin.vala"
	data[0] = g_object_ref (object);
#line 24 "pastebin-plugin.vala"
	data[1] = g_object_ref (connection);
#line 24 "pastebin-plugin.vala"
	data[2] = g_strdup (path);
#line 24 "pastebin-plugin.vala"
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_synapse_xnoise_player_engine_dbus_interface_info), &_synapse_xnoise_player_engine_dbus_interface_vtable, data, _synapse_xnoise_player_engine_unregister_object, error);
#line 24 "pastebin-plugin.vala"
	if (!result) {
#line 24 "pastebin-plugin.vala"
		return 0;
#line 1727 "xnoise-media-player-plugin.c"
	}
#line 24 "pastebin-plugin.vala"
	return result;
#line 1731 "xnoise-media-player-plugin.c"
}

static void
_synapse_xnoise_player_engine_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
#line 24 "pastebin-plugin.vala"
	g_object_unref (data[0]);
#line 24 "pastebin-plugin.vala"
	g_object_unref (data[1]);
#line 24 "pastebin-plugin.vala"
	g_free (data[2]);
#line 24 "pastebin-plugin.vala"
	g_free (data);
#line 1747 "xnoise-media-player-plugin.c"
}

static inline gpointer
synapse_xnoise_actions_get_instance_private (SynapseXnoiseActions* self)
{
	return G_STRUCT_MEMBER_P (self, SynapseXnoiseActions_private_offset);
}

static void
synapse_xnoise_actions_real_activate (SynapseActivatable* base)
{
	SynapseXnoiseActions * self;
#line 46 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActions*) base;
#line 1762 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_real_deactivate (SynapseActivatable* base)
{
	SynapseXnoiseActions * self;
#line 50 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActions*) base;
#line 1771 "xnoise-media-player-plugin.c"
}

static void
_synapse_xnoise_actions_register_plugin_synapse_plugin_register_func (void)
{
#line 56 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_register_plugin ();
#line 1779 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_register_plugin (void)
{
	SynapsePluginRegistry* _tmp0_;
	SynapsePluginRegistry* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
#line 56 "xnoise-media-player-plugin.vala"
	_tmp0_ = synapse_plugin_registry_get_default ();
#line 56 "xnoise-media-player-plugin.vala"
	_tmp1_ = _tmp0_;
#line 56 "xnoise-media-player-plugin.vala"
	_tmp2_ = g_find_program_in_path ("xnoise");
#line 56 "xnoise-media-player-plugin.vala"
	_tmp3_ = _tmp2_;
#line 56 "xnoise-media-player-plugin.vala"
	synapse_plugin_registry_register_plugin (_tmp1_, SYNAPSE_TYPE_XNOISE_ACTIONS, "Xnoise", _ ("Control Xnoise media player."), "xnoise", _synapse_xnoise_actions_register_plugin_synapse_plugin_register_func, _tmp3_ != NULL, _ ("Xnoise is not installed!"));
#line 56 "xnoise-media-player-plugin.vala"
	_g_free0 (_tmp3_);
#line 56 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp1_);
#line 1803 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_real_search_data_free (gpointer _data)
{
	SynapseXnoiseActionsSearchData* _data_;
	_data_ = _data;
#line 42 "xnoise-media-player-plugin.vala"
	synapse_query_destroy (&_data_->q);
#line 42 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_data_->result);
#line 42 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_data_->self);
#line 42 "xnoise-media-player-plugin.vala"
	g_slice_free (SynapseXnoiseActionsSearchData, _data_);
#line 1819 "xnoise-media-player-plugin.c"
}

static gpointer
_g_object_ref0 (gpointer self)
{
#line 42 "xnoise-media-player-plugin.vala"
	return self ? g_object_ref (self) : NULL;
#line 1827 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_real_search (SynapseItemProvider* base,
                                    SynapseQuery* q,
                                    GAsyncReadyCallback _callback_,
                                    gpointer _user_data_)
{
	SynapseXnoiseActions * self;
	SynapseXnoiseActionsSearchData* _data_;
	SynapseXnoiseActions* _tmp0_;
	SynapseQuery _tmp1_;
	SynapseQuery _tmp2_;
	SynapseQuery _tmp3_ = {0};
#line 42 "xnoise-media-player-plugin.vala"
	g_return_if_fail (q != NULL);
#line 42 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActions*) base;
#line 42 "xnoise-media-player-plugin.vala"
	_data_ = g_slice_new0 (SynapseXnoiseActionsSearchData);
#line 42 "xnoise-media-player-plugin.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 42 "xnoise-media-player-plugin.vala"
	g_task_set_task_data (_data_->_async_result, _data_, synapse_xnoise_actions_real_search_data_free);
#line 42 "xnoise-media-player-plugin.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 42 "xnoise-media-player-plugin.vala"
	_data_->self = _tmp0_;
#line 42 "xnoise-media-player-plugin.vala"
	_tmp1_ = *q;
#line 42 "xnoise-media-player-plugin.vala"
	_tmp2_ = _tmp1_;
#line 42 "xnoise-media-player-plugin.vala"
	synapse_query_copy (&_tmp2_, &_tmp3_);
#line 42 "xnoise-media-player-plugin.vala"
	synapse_query_destroy (&_data_->q);
#line 42 "xnoise-media-player-plugin.vala"
	_data_->q = _tmp3_;
#line 42 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_real_search_co (_data_);
#line 1868 "xnoise-media-player-plugin.c"
}

static SynapseResultSet*
synapse_xnoise_actions_search_finish (SynapseItemProvider* base,
                                      GAsyncResult* _res_,
                                      GError** error)
{
	SynapseResultSet* result;
	SynapseXnoiseActionsSearchData* _data_;
#line 42 "xnoise-media-player-plugin.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
#line 42 "xnoise-media-player-plugin.vala"
	if (NULL == _data_) {
#line 42 "xnoise-media-player-plugin.vala"
		return NULL;
#line 1884 "xnoise-media-player-plugin.c"
	}
#line 42 "xnoise-media-player-plugin.vala"
	result = _data_->result;
#line 42 "xnoise-media-player-plugin.vala"
	_data_->result = NULL;
#line 42 "xnoise-media-player-plugin.vala"
	return result;
#line 1892 "xnoise-media-player-plugin.c"
}

static gboolean
synapse_xnoise_actions_real_search_co (SynapseXnoiseActionsSearchData* _data_)
{
#line 343 "xnoise-media-player-plugin.vala"
	switch (_data_->_state_) {
#line 343 "xnoise-media-player-plugin.vala"
		case 0:
#line 1902 "xnoise-media-player-plugin.c"
		goto _state_0;
		default:
#line 343 "xnoise-media-player-plugin.vala"
		g_assert_not_reached ();
#line 1907 "xnoise-media-player-plugin.c"
	}
	_state_0:
#line 346 "xnoise-media-player-plugin.vala"
	_data_->_tmp0_ = _data_->q;
#line 346 "xnoise-media-player-plugin.vala"
	if (!((_data_->_tmp0_.query_type & SYNAPSE_QUERY_FLAGS_ACTIONS) == SYNAPSE_QUERY_FLAGS_ACTIONS)) {
#line 346 "xnoise-media-player-plugin.vala"
		_data_->result = NULL;
#line 346 "xnoise-media-player-plugin.vala"
		g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 346 "xnoise-media-player-plugin.vala"
		if (_data_->_state_ != 0) {
#line 346 "xnoise-media-player-plugin.vala"
			while (!g_task_get_completed (_data_->_async_result)) {
#line 346 "xnoise-media-player-plugin.vala"
				g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1924 "xnoise-media-player-plugin.c"
			}
		}
#line 346 "xnoise-media-player-plugin.vala"
		g_object_unref (_data_->_async_result);
#line 346 "xnoise-media-player-plugin.vala"
		return FALSE;
#line 1931 "xnoise-media-player-plugin.c"
	}
#line 348 "xnoise-media-player-plugin.vala"
	_data_->_tmp1_ = synapse_result_set_new ();
#line 348 "xnoise-media-player-plugin.vala"
	_data_->_result_ = _data_->_tmp1_;
#line 350 "xnoise-media-player-plugin.vala"
	_data_->_tmp2_ = _data_->q;
#line 350 "xnoise-media-player-plugin.vala"
	_data_->_tmp3_ = _data_->_tmp2_.query_string;
#line 350 "xnoise-media-player-plugin.vala"
	_data_->_tmp4_ = synapse_query_get_matchers_for_query (_data_->_tmp3_, 0, G_REGEX_OPTIMIZE | G_REGEX_CASELESS);
#line 350 "xnoise-media-player-plugin.vala"
	_data_->matchers = _data_->_tmp4_;
#line 1945 "xnoise-media-player-plugin.c"
	{
#line 353 "xnoise-media-player-plugin.vala"
		_data_->_tmp5_ = _data_->self->priv->matches;
#line 353 "xnoise-media-player-plugin.vala"
		_data_->_action_list = _data_->_tmp5_;
#line 353 "xnoise-media-player-plugin.vala"
		_data_->_tmp6_ = _data_->_action_list;
#line 353 "xnoise-media-player-plugin.vala"
		_data_->_tmp7_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp6_);
#line 353 "xnoise-media-player-plugin.vala"
		_data_->_tmp8_ = _data_->_tmp7_;
#line 353 "xnoise-media-player-plugin.vala"
		_data_->_action_size = _data_->_tmp8_;
#line 353 "xnoise-media-player-plugin.vala"
		_data_->_action_index = -1;
#line 353 "xnoise-media-player-plugin.vala"
		while (TRUE) {
#line 353 "xnoise-media-player-plugin.vala"
			_data_->_action_index = _data_->_action_index + 1;
#line 353 "xnoise-media-player-plugin.vala"
			_data_->_tmp9_ = _data_->_action_index;
#line 353 "xnoise-media-player-plugin.vala"
			_data_->_tmp10_ = _data_->_action_size;
#line 353 "xnoise-media-player-plugin.vala"
			if (!(_data_->_tmp9_ < _data_->_tmp10_)) {
#line 353 "xnoise-media-player-plugin.vala"
				break;
#line 1973 "xnoise-media-player-plugin.c"
			}
#line 353 "xnoise-media-player-plugin.vala"
			_data_->_tmp11_ = _data_->_action_list;
#line 353 "xnoise-media-player-plugin.vala"
			_data_->_tmp12_ = gee_list_get (_data_->_tmp11_, _data_->_action_index);
#line 353 "xnoise-media-player-plugin.vala"
			_data_->action = (SynapseXnoiseActionsXnoiseControlMatch*) _data_->_tmp12_;
#line 355 "xnoise-media-player-plugin.vala"
			_data_->_tmp13_ = _data_->action;
#line 355 "xnoise-media-player-plugin.vala"
			if (!synapse_xnoise_actions_xnoise_control_match_action_available (_data_->_tmp13_)) {
#line 355 "xnoise-media-player-plugin.vala"
				_g_object_unref0 (_data_->action);
#line 355 "xnoise-media-player-plugin.vala"
				continue;
#line 1989 "xnoise-media-player-plugin.c"
			}
			{
#line 356 "xnoise-media-player-plugin.vala"
				_data_->_tmp14_ = _data_->matchers;
#line 356 "xnoise-media-player-plugin.vala"
				_data_->_matcher_list = _data_->_tmp14_;
#line 356 "xnoise-media-player-plugin.vala"
				_data_->_tmp15_ = _data_->_matcher_list;
#line 356 "xnoise-media-player-plugin.vala"
				_data_->_tmp16_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp15_);
#line 356 "xnoise-media-player-plugin.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 356 "xnoise-media-player-plugin.vala"
				_data_->_matcher_size = _data_->_tmp17_;
#line 356 "xnoise-media-player-plugin.vala"
				_data_->_matcher_index = -1;
#line 356 "xnoise-media-player-plugin.vala"
				while (TRUE) {
#line 356 "xnoise-media-player-plugin.vala"
					_data_->_matcher_index = _data_->_matcher_index + 1;
#line 356 "xnoise-media-player-plugin.vala"
					_data_->_tmp18_ = _data_->_matcher_index;
#line 356 "xnoise-media-player-plugin.vala"
					_data_->_tmp19_ = _data_->_matcher_size;
#line 356 "xnoise-media-player-plugin.vala"
					if (!(_data_->_tmp18_ < _data_->_tmp19_)) {
#line 356 "xnoise-media-player-plugin.vala"
						break;
#line 2018 "xnoise-media-player-plugin.c"
					}
#line 356 "xnoise-media-player-plugin.vala"
					_data_->_tmp20_ = _data_->_matcher_list;
#line 356 "xnoise-media-player-plugin.vala"
					_data_->_tmp21_ = gee_list_get (_data_->_tmp20_, _data_->_matcher_index);
#line 356 "xnoise-media-player-plugin.vala"
					_data_->matcher = (GeeMapEntry*) _data_->_tmp21_;
#line 358 "xnoise-media-player-plugin.vala"
					_data_->_tmp22_ = _data_->matcher;
#line 358 "xnoise-media-player-plugin.vala"
					_data_->_tmp23_ = gee_map_entry_get_key (_data_->_tmp22_);
#line 358 "xnoise-media-player-plugin.vala"
					_data_->_tmp24_ = _data_->_tmp23_;
#line 358 "xnoise-media-player-plugin.vala"
					_data_->_tmp25_ = _data_->action;
#line 358 "xnoise-media-player-plugin.vala"
					_data_->_tmp26_ = synapse_match_get_title ((SynapseMatch*) _data_->_tmp25_);
#line 358 "xnoise-media-player-plugin.vala"
					_data_->_tmp27_ = _data_->_tmp26_;
#line 358 "xnoise-media-player-plugin.vala"
					if (g_regex_match ((GRegex*) _data_->_tmp24_, _data_->_tmp27_, 0, NULL)) {
#line 360 "xnoise-media-player-plugin.vala"
						_data_->_tmp28_ = _data_->_result_;
#line 360 "xnoise-media-player-plugin.vala"
						_data_->_tmp29_ = _data_->action;
#line 360 "xnoise-media-player-plugin.vala"
						_data_->_tmp30_ = _data_->matcher;
#line 360 "xnoise-media-player-plugin.vala"
						_data_->_tmp31_ = gee_map_entry_get_value (_data_->_tmp30_);
#line 360 "xnoise-media-player-plugin.vala"
						_data_->_tmp32_ = _data_->_tmp31_;
#line 360 "xnoise-media-player-plugin.vala"
						synapse_result_set_add (_data_->_tmp28_, (SynapseMatch*) _data_->_tmp29_, ((gint) ((gintptr) _data_->_tmp32_)) - SYNAPSE_MATCH_SCORE_INCREMENT_SMALL);
#line 361 "xnoise-media-player-plugin.vala"
						_g_object_unref0 (_data_->matcher);
#line 361 "xnoise-media-player-plugin.vala"
						break;
#line 2056 "xnoise-media-player-plugin.c"
					}
#line 356 "xnoise-media-player-plugin.vala"
					_g_object_unref0 (_data_->matcher);
#line 2060 "xnoise-media-player-plugin.c"
				}
			}
#line 353 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (_data_->action);
#line 2065 "xnoise-media-player-plugin.c"
		}
	}
#line 365 "xnoise-media-player-plugin.vala"
	synapse_query_check_cancellable (&_data_->q, &_data_->_inner_error0_);
#line 365 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_data_->_inner_error0_ != NULL)) {
#line 365 "xnoise-media-player-plugin.vala"
		if (_data_->_inner_error0_->domain == SYNAPSE_SEARCH_ERROR) {
#line 365 "xnoise-media-player-plugin.vala"
			g_task_return_error (_data_->_async_result, _data_->_inner_error0_);
#line 365 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (_data_->matchers);
#line 365 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (_data_->_result_);
#line 365 "xnoise-media-player-plugin.vala"
			g_object_unref (_data_->_async_result);
#line 365 "xnoise-media-player-plugin.vala"
			return FALSE;
#line 2084 "xnoise-media-player-plugin.c"
		} else {
#line 365 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (_data_->matchers);
#line 365 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (_data_->_result_);
#line 365 "xnoise-media-player-plugin.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error0_->message, g_quark_to_string (_data_->_inner_error0_->domain), _data_->_inner_error0_->code);
#line 365 "xnoise-media-player-plugin.vala"
			g_clear_error (&_data_->_inner_error0_);
#line 365 "xnoise-media-player-plugin.vala"
			g_object_unref (_data_->_async_result);
#line 365 "xnoise-media-player-plugin.vala"
			return FALSE;
#line 2098 "xnoise-media-player-plugin.c"
		}
	}
#line 366 "xnoise-media-player-plugin.vala"
	_data_->result = _data_->_result_;
#line 366 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_data_->matchers);
#line 366 "xnoise-media-player-plugin.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 366 "xnoise-media-player-plugin.vala"
	if (_data_->_state_ != 0) {
#line 366 "xnoise-media-player-plugin.vala"
		while (!g_task_get_completed (_data_->_async_result)) {
#line 366 "xnoise-media-player-plugin.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 2113 "xnoise-media-player-plugin.c"
		}
	}
#line 366 "xnoise-media-player-plugin.vala"
	g_object_unref (_data_->_async_result);
#line 366 "xnoise-media-player-plugin.vala"
	return FALSE;
#line 2120 "xnoise-media-player-plugin.c"
}

static SynapseResultSet*
synapse_xnoise_actions_real_find_for_match (SynapseActionProvider* base,
                                            SynapseQuery* query,
                                            SynapseMatch* match)
{
	SynapseXnoiseActions * self;
	gboolean query_empty = FALSE;
	SynapseQuery _tmp0_;
	const gchar* _tmp1_;
	SynapseResultSet* results = NULL;
	SynapseResultSet* _tmp2_;
	SynapseResultSet* result;
#line 369 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActions*) base;
#line 369 "xnoise-media-player-plugin.vala"
	g_return_val_if_fail (query != NULL, NULL);
#line 369 "xnoise-media-player-plugin.vala"
	g_return_val_if_fail (match != NULL, NULL);
#line 371 "xnoise-media-player-plugin.vala"
	_tmp0_ = *query;
#line 371 "xnoise-media-player-plugin.vala"
	_tmp1_ = _tmp0_.query_string;
#line 371 "xnoise-media-player-plugin.vala"
	query_empty = g_strcmp0 (_tmp1_, "") == 0;
#line 372 "xnoise-media-player-plugin.vala"
	_tmp2_ = synapse_result_set_new ();
#line 372 "xnoise-media-player-plugin.vala"
	results = _tmp2_;
#line 374 "xnoise-media-player-plugin.vala"
	if (query_empty) {
#line 2153 "xnoise-media-player-plugin.c"
		{
			GeeList* _action_list = NULL;
			GeeList* _tmp3_;
			gint _action_size = 0;
			GeeList* _tmp4_;
			gint _tmp5_;
			gint _tmp6_;
			gint _action_index = 0;
#line 376 "xnoise-media-player-plugin.vala"
			_tmp3_ = self->priv->actions;
#line 376 "xnoise-media-player-plugin.vala"
			_action_list = _tmp3_;
#line 376 "xnoise-media-player-plugin.vala"
			_tmp4_ = _action_list;
#line 376 "xnoise-media-player-plugin.vala"
			_tmp5_ = gee_collection_get_size ((GeeCollection*) _tmp4_);
#line 376 "xnoise-media-player-plugin.vala"
			_tmp6_ = _tmp5_;
#line 376 "xnoise-media-player-plugin.vala"
			_action_size = _tmp6_;
#line 376 "xnoise-media-player-plugin.vala"
			_action_index = -1;
#line 376 "xnoise-media-player-plugin.vala"
			while (TRUE) {
#line 2178 "xnoise-media-player-plugin.c"
				gint _tmp7_;
				gint _tmp8_;
				SynapseXnoiseActionsXnoiseAction* action = NULL;
				GeeList* _tmp9_;
				gpointer _tmp10_;
				SynapseXnoiseActionsXnoiseAction* _tmp11_;
#line 376 "xnoise-media-player-plugin.vala"
				_action_index = _action_index + 1;
#line 376 "xnoise-media-player-plugin.vala"
				_tmp7_ = _action_index;
#line 376 "xnoise-media-player-plugin.vala"
				_tmp8_ = _action_size;
#line 376 "xnoise-media-player-plugin.vala"
				if (!(_tmp7_ < _tmp8_)) {
#line 376 "xnoise-media-player-plugin.vala"
					break;
#line 2195 "xnoise-media-player-plugin.c"
				}
#line 376 "xnoise-media-player-plugin.vala"
				_tmp9_ = _action_list;
#line 376 "xnoise-media-player-plugin.vala"
				_tmp10_ = gee_list_get (_tmp9_, _action_index);
#line 376 "xnoise-media-player-plugin.vala"
				action = (SynapseXnoiseActionsXnoiseAction*) _tmp10_;
#line 378 "xnoise-media-player-plugin.vala"
				_tmp11_ = action;
#line 378 "xnoise-media-player-plugin.vala"
				if (synapse_action_valid_for_match ((SynapseAction*) _tmp11_, match)) {
#line 2207 "xnoise-media-player-plugin.c"
					SynapseResultSet* _tmp12_;
					SynapseXnoiseActionsXnoiseAction* _tmp13_;
					SynapseXnoiseActionsXnoiseAction* _tmp14_;
#line 380 "xnoise-media-player-plugin.vala"
					_tmp12_ = results;
#line 380 "xnoise-media-player-plugin.vala"
					_tmp13_ = action;
#line 380 "xnoise-media-player-plugin.vala"
					_tmp14_ = action;
#line 380 "xnoise-media-player-plugin.vala"
					synapse_result_set_add (_tmp12_, (SynapseMatch*) _tmp13_, synapse_xnoise_actions_xnoise_action_get_relevancy (_tmp14_));
#line 2219 "xnoise-media-player-plugin.c"
				}
#line 376 "xnoise-media-player-plugin.vala"
				_g_object_unref0 (action);
#line 2223 "xnoise-media-player-plugin.c"
			}
		}
	} else {
		GeeList* matchers = NULL;
		SynapseQuery _tmp15_;
		const gchar* _tmp16_;
		GeeList* _tmp17_;
#line 386 "xnoise-media-player-plugin.vala"
		_tmp15_ = *query;
#line 386 "xnoise-media-player-plugin.vala"
		_tmp16_ = _tmp15_.query_string;
#line 386 "xnoise-media-player-plugin.vala"
		_tmp17_ = synapse_query_get_matchers_for_query (_tmp16_, 0, G_REGEX_OPTIMIZE | G_REGEX_CASELESS);
#line 386 "xnoise-media-player-plugin.vala"
		matchers = _tmp17_;
#line 2239 "xnoise-media-player-plugin.c"
		{
			GeeList* _action_list = NULL;
			GeeList* _tmp18_;
			gint _action_size = 0;
			GeeList* _tmp19_;
			gint _tmp20_;
			gint _tmp21_;
			gint _action_index = 0;
#line 388 "xnoise-media-player-plugin.vala"
			_tmp18_ = self->priv->actions;
#line 388 "xnoise-media-player-plugin.vala"
			_action_list = _tmp18_;
#line 388 "xnoise-media-player-plugin.vala"
			_tmp19_ = _action_list;
#line 388 "xnoise-media-player-plugin.vala"
			_tmp20_ = gee_collection_get_size ((GeeCollection*) _tmp19_);
#line 388 "xnoise-media-player-plugin.vala"
			_tmp21_ = _tmp20_;
#line 388 "xnoise-media-player-plugin.vala"
			_action_size = _tmp21_;
#line 388 "xnoise-media-player-plugin.vala"
			_action_index = -1;
#line 388 "xnoise-media-player-plugin.vala"
			while (TRUE) {
#line 2264 "xnoise-media-player-plugin.c"
				gint _tmp22_;
				gint _tmp23_;
				SynapseXnoiseActionsXnoiseAction* action = NULL;
				GeeList* _tmp24_;
				gpointer _tmp25_;
				SynapseXnoiseActionsXnoiseAction* _tmp26_;
#line 388 "xnoise-media-player-plugin.vala"
				_action_index = _action_index + 1;
#line 388 "xnoise-media-player-plugin.vala"
				_tmp22_ = _action_index;
#line 388 "xnoise-media-player-plugin.vala"
				_tmp23_ = _action_size;
#line 388 "xnoise-media-player-plugin.vala"
				if (!(_tmp22_ < _tmp23_)) {
#line 388 "xnoise-media-player-plugin.vala"
					break;
#line 2281 "xnoise-media-player-plugin.c"
				}
#line 388 "xnoise-media-player-plugin.vala"
				_tmp24_ = _action_list;
#line 388 "xnoise-media-player-plugin.vala"
				_tmp25_ = gee_list_get (_tmp24_, _action_index);
#line 388 "xnoise-media-player-plugin.vala"
				action = (SynapseXnoiseActionsXnoiseAction*) _tmp25_;
#line 390 "xnoise-media-player-plugin.vala"
				_tmp26_ = action;
#line 390 "xnoise-media-player-plugin.vala"
				if (!synapse_action_valid_for_match ((SynapseAction*) _tmp26_, match)) {
#line 390 "xnoise-media-player-plugin.vala"
					_g_object_unref0 (action);
#line 390 "xnoise-media-player-plugin.vala"
					continue;
#line 2297 "xnoise-media-player-plugin.c"
				}
				{
					GeeList* _matcher_list = NULL;
					GeeList* _tmp27_;
					gint _matcher_size = 0;
					GeeList* _tmp28_;
					gint _tmp29_;
					gint _tmp30_;
					gint _matcher_index = 0;
#line 391 "xnoise-media-player-plugin.vala"
					_tmp27_ = matchers;
#line 391 "xnoise-media-player-plugin.vala"
					_matcher_list = _tmp27_;
#line 391 "xnoise-media-player-plugin.vala"
					_tmp28_ = _matcher_list;
#line 391 "xnoise-media-player-plugin.vala"
					_tmp29_ = gee_collection_get_size ((GeeCollection*) _tmp28_);
#line 391 "xnoise-media-player-plugin.vala"
					_tmp30_ = _tmp29_;
#line 391 "xnoise-media-player-plugin.vala"
					_matcher_size = _tmp30_;
#line 391 "xnoise-media-player-plugin.vala"
					_matcher_index = -1;
#line 391 "xnoise-media-player-plugin.vala"
					while (TRUE) {
#line 2323 "xnoise-media-player-plugin.c"
						gint _tmp31_;
						gint _tmp32_;
						GeeMapEntry* matcher = NULL;
						GeeList* _tmp33_;
						gpointer _tmp34_;
						GeeMapEntry* _tmp35_;
						gconstpointer _tmp36_;
						gconstpointer _tmp37_;
						SynapseXnoiseActionsXnoiseAction* _tmp38_;
						const gchar* _tmp39_;
						const gchar* _tmp40_;
#line 391 "xnoise-media-player-plugin.vala"
						_matcher_index = _matcher_index + 1;
#line 391 "xnoise-media-player-plugin.vala"
						_tmp31_ = _matcher_index;
#line 391 "xnoise-media-player-plugin.vala"
						_tmp32_ = _matcher_size;
#line 391 "xnoise-media-player-plugin.vala"
						if (!(_tmp31_ < _tmp32_)) {
#line 391 "xnoise-media-player-plugin.vala"
							break;
#line 2345 "xnoise-media-player-plugin.c"
						}
#line 391 "xnoise-media-player-plugin.vala"
						_tmp33_ = _matcher_list;
#line 391 "xnoise-media-player-plugin.vala"
						_tmp34_ = gee_list_get (_tmp33_, _matcher_index);
#line 391 "xnoise-media-player-plugin.vala"
						matcher = (GeeMapEntry*) _tmp34_;
#line 393 "xnoise-media-player-plugin.vala"
						_tmp35_ = matcher;
#line 393 "xnoise-media-player-plugin.vala"
						_tmp36_ = gee_map_entry_get_key (_tmp35_);
#line 393 "xnoise-media-player-plugin.vala"
						_tmp37_ = _tmp36_;
#line 393 "xnoise-media-player-plugin.vala"
						_tmp38_ = action;
#line 393 "xnoise-media-player-plugin.vala"
						_tmp39_ = synapse_match_get_title ((SynapseMatch*) _tmp38_);
#line 393 "xnoise-media-player-plugin.vala"
						_tmp40_ = _tmp39_;
#line 393 "xnoise-media-player-plugin.vala"
						if (g_regex_match ((GRegex*) _tmp37_, _tmp40_, 0, NULL)) {
#line 2367 "xnoise-media-player-plugin.c"
							SynapseResultSet* _tmp41_;
							SynapseXnoiseActionsXnoiseAction* _tmp42_;
							GeeMapEntry* _tmp43_;
							gconstpointer _tmp44_;
							gconstpointer _tmp45_;
#line 395 "xnoise-media-player-plugin.vala"
							_tmp41_ = results;
#line 395 "xnoise-media-player-plugin.vala"
							_tmp42_ = action;
#line 395 "xnoise-media-player-plugin.vala"
							_tmp43_ = matcher;
#line 395 "xnoise-media-player-plugin.vala"
							_tmp44_ = gee_map_entry_get_value (_tmp43_);
#line 395 "xnoise-media-player-plugin.vala"
							_tmp45_ = _tmp44_;
#line 395 "xnoise-media-player-plugin.vala"
							synapse_result_set_add (_tmp41_, (SynapseMatch*) _tmp42_, (gint) ((gintptr) _tmp45_));
#line 396 "xnoise-media-player-plugin.vala"
							_g_object_unref0 (matcher);
#line 396 "xnoise-media-player-plugin.vala"
							break;
#line 2389 "xnoise-media-player-plugin.c"
						}
#line 391 "xnoise-media-player-plugin.vala"
						_g_object_unref0 (matcher);
#line 2393 "xnoise-media-player-plugin.c"
					}
				}
#line 388 "xnoise-media-player-plugin.vala"
				_g_object_unref0 (action);
#line 2398 "xnoise-media-player-plugin.c"
			}
		}
#line 374 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (matchers);
#line 2403 "xnoise-media-player-plugin.c"
	}
#line 401 "xnoise-media-player-plugin.vala"
	result = results;
#line 401 "xnoise-media-player-plugin.vala"
	return result;
#line 2409 "xnoise-media-player-plugin.c"
}

SynapseXnoiseActions*
synapse_xnoise_actions_construct (GType object_type)
{
	SynapseXnoiseActions * self = NULL;
#line 42 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActions*) g_object_new (object_type, NULL);
#line 42 "xnoise-media-player-plugin.vala"
	return self;
#line 2420 "xnoise-media-player-plugin.c"
}

SynapseXnoiseActions*
synapse_xnoise_actions_new (void)
{
#line 42 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_construct (SYNAPSE_TYPE_XNOISE_ACTIONS);
#line 2428 "xnoise-media-player-plugin.c"
}

static gboolean
synapse_xnoise_actions_real_get_enabled (SynapseActivatable* base)
{
	gboolean result;
	SynapseXnoiseActions* self;
#line 44 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActions*) base;
#line 44 "xnoise-media-player-plugin.vala"
	result = self->priv->_enabled;
#line 44 "xnoise-media-player-plugin.vala"
	return result;
#line 2442 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_real_set_enabled (SynapseActivatable* base,
                                         gboolean value)
{
	SynapseXnoiseActions* self;
	gboolean old_value;
#line 44 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActions*) base;
#line 44 "xnoise-media-player-plugin.vala"
	old_value = synapse_xnoise_actions_real_get_enabled (base);
#line 44 "xnoise-media-player-plugin.vala"
	if (old_value != value) {
#line 44 "xnoise-media-player-plugin.vala"
		self->priv->_enabled = value;
#line 44 "xnoise-media-player-plugin.vala"
		g_object_notify_by_pspec ((GObject *) self, synapse_xnoise_actions_properties[SYNAPSE_XNOISE_ACTIONS_ENABLED_PROPERTY]);
#line 2461 "xnoise-media-player-plugin.c"
	}
}

static gint
synapse_xnoise_actions_xnoise_action_real_get_relevancy (SynapseXnoiseActionsXnoiseAction* self)
{
	gboolean xnoise_running = FALSE;
	SynapseDBusService* _tmp0_;
	SynapseDBusService* _tmp1_;
	gboolean _tmp2_;
	gint _tmp3_ = 0;
	gint result;
#line 76 "xnoise-media-player-plugin.vala"
	_tmp0_ = synapse_dbus_service_get_default ();
#line 76 "xnoise-media-player-plugin.vala"
	_tmp1_ = _tmp0_;
#line 76 "xnoise-media-player-plugin.vala"
	_tmp2_ = synapse_dbus_service_name_has_owner (_tmp1_, SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME);
#line 76 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp1_);
#line 76 "xnoise-media-player-plugin.vala"
	xnoise_running = _tmp2_;
#line 77 "xnoise-media-player-plugin.vala"
	if (xnoise_running) {
#line 2486 "xnoise-media-player-plugin.c"
		gint _tmp4_;
		gint _tmp5_;
#line 77 "xnoise-media-player-plugin.vala"
		_tmp4_ = synapse_action_get_default_relevancy ((SynapseAction*) self);
#line 77 "xnoise-media-player-plugin.vala"
		_tmp5_ = _tmp4_;
#line 77 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp5_ + SYNAPSE_MATCH_SCORE_INCREMENT_LARGE;
#line 2495 "xnoise-media-player-plugin.c"
	} else {
		gint _tmp6_;
		gint _tmp7_;
#line 77 "xnoise-media-player-plugin.vala"
		_tmp6_ = synapse_action_get_default_relevancy ((SynapseAction*) self);
#line 77 "xnoise-media-player-plugin.vala"
		_tmp7_ = _tmp6_;
#line 77 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp7_;
#line 2505 "xnoise-media-player-plugin.c"
	}
#line 77 "xnoise-media-player-plugin.vala"
	result = _tmp3_;
#line 77 "xnoise-media-player-plugin.vala"
	return result;
#line 2511 "xnoise-media-player-plugin.c"
}

gint
synapse_xnoise_actions_xnoise_action_get_relevancy (SynapseXnoiseActionsXnoiseAction* self)
{
	SynapseXnoiseActionsXnoiseActionClass* _klass_;
#line 74 "xnoise-media-player-plugin.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 74 "xnoise-media-player-plugin.vala"
	_klass_ = SYNAPSE_XNOISE_ACTIONS_XNOISE_ACTION_GET_CLASS (self);
#line 74 "xnoise-media-player-plugin.vala"
	if (_klass_->get_relevancy) {
#line 74 "xnoise-media-player-plugin.vala"
		return _klass_->get_relevancy (self);
#line 2526 "xnoise-media-player-plugin.c"
	}
#line 74 "xnoise-media-player-plugin.vala"
	return -1;
#line 2530 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsXnoiseAction*
synapse_xnoise_actions_xnoise_action_construct (GType object_type)
{
	SynapseXnoiseActionsXnoiseAction * self = NULL;
#line 72 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsXnoiseAction*) synapse_action_construct (object_type);
#line 72 "xnoise-media-player-plugin.vala"
	return self;
#line 2541 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_xnoise_action_class_init (SynapseXnoiseActionsXnoiseActionClass * klass,
                                                 gpointer klass_data)
{
#line 72 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_xnoise_action_parent_class = g_type_class_peek_parent (klass);
#line 72 "xnoise-media-player-plugin.vala"
	((SynapseXnoiseActionsXnoiseActionClass *) klass)->get_relevancy = (gint (*) (SynapseXnoiseActionsXnoiseAction*)) synapse_xnoise_actions_xnoise_action_real_get_relevancy;
#line 2552 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_xnoise_action_instance_init (SynapseXnoiseActionsXnoiseAction * self,
                                                    gpointer klass)
{
}

static GType
synapse_xnoise_actions_xnoise_action_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsXnoiseActionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_xnoise_action_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsXnoiseAction), 0, (GInstanceInitFunc) synapse_xnoise_actions_xnoise_action_instance_init, NULL };
	GType synapse_xnoise_actions_xnoise_action_type_id;
	synapse_xnoise_actions_xnoise_action_type_id = g_type_register_static (SYNAPSE_TYPE_ACTION, "SynapseXnoiseActionsXnoiseAction", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
	return synapse_xnoise_actions_xnoise_action_type_id;
}

static GType
synapse_xnoise_actions_xnoise_action_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_xnoise_action_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_xnoise_action_type_id__once)) {
		GType synapse_xnoise_actions_xnoise_action_type_id;
		synapse_xnoise_actions_xnoise_action_type_id = synapse_xnoise_actions_xnoise_action_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_xnoise_action_type_id__once, synapse_xnoise_actions_xnoise_action_type_id);
	}
	return synapse_xnoise_actions_xnoise_action_type_id__once;
}

static gboolean
synapse_xnoise_actions_xnoise_control_match_real_action_available (SynapseXnoiseActionsXnoiseControlMatch* self)
{
	SynapseDBusService* _tmp0_;
	SynapseDBusService* _tmp1_;
	gboolean _tmp2_;
	gboolean result;
#line 85 "xnoise-media-player-plugin.vala"
	_tmp0_ = synapse_dbus_service_get_default ();
#line 85 "xnoise-media-player-plugin.vala"
	_tmp1_ = _tmp0_;
#line 85 "xnoise-media-player-plugin.vala"
	_tmp2_ = synapse_dbus_service_name_has_owner (_tmp1_, SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME);
#line 85 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp1_);
#line 85 "xnoise-media-player-plugin.vala"
	result = _tmp2_;
#line 85 "xnoise-media-player-plugin.vala"
	return result;
#line 2601 "xnoise-media-player-plugin.c"
}

gboolean
synapse_xnoise_actions_xnoise_control_match_action_available (SynapseXnoiseActionsXnoiseControlMatch* self)
{
	SynapseXnoiseActionsXnoiseControlMatchClass* _klass_;
#line 83 "xnoise-media-player-plugin.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 83 "xnoise-media-player-plugin.vala"
	_klass_ = SYNAPSE_XNOISE_ACTIONS_XNOISE_CONTROL_MATCH_GET_CLASS (self);
#line 83 "xnoise-media-player-plugin.vala"
	if (_klass_->action_available) {
#line 83 "xnoise-media-player-plugin.vala"
		return _klass_->action_available (self);
#line 2616 "xnoise-media-player-plugin.c"
	}
#line 83 "xnoise-media-player-plugin.vala"
	return FALSE;
#line 2620 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsXnoiseControlMatch*
synapse_xnoise_actions_xnoise_control_match_construct (GType object_type)
{
	SynapseXnoiseActionsXnoiseControlMatch * self = NULL;
#line 81 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsXnoiseControlMatch*) synapse_action_match_construct (object_type);
#line 81 "xnoise-media-player-plugin.vala"
	return self;
#line 2631 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_xnoise_control_match_class_init (SynapseXnoiseActionsXnoiseControlMatchClass * klass,
                                                        gpointer klass_data)
{
#line 81 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_xnoise_control_match_parent_class = g_type_class_peek_parent (klass);
#line 81 "xnoise-media-player-plugin.vala"
	((SynapseXnoiseActionsXnoiseControlMatchClass *) klass)->action_available = (gboolean (*) (SynapseXnoiseActionsXnoiseControlMatch*)) synapse_xnoise_actions_xnoise_control_match_real_action_available;
#line 2642 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_xnoise_control_match_instance_init (SynapseXnoiseActionsXnoiseControlMatch * self,
                                                           gpointer klass)
{
}

static GType
synapse_xnoise_actions_xnoise_control_match_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsXnoiseControlMatchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_xnoise_control_match_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsXnoiseControlMatch), 0, (GInstanceInitFunc) synapse_xnoise_actions_xnoise_control_match_instance_init, NULL };
	GType synapse_xnoise_actions_xnoise_control_match_type_id;
	synapse_xnoise_actions_xnoise_control_match_type_id = g_type_register_static (SYNAPSE_TYPE_ACTION_MATCH, "SynapseXnoiseActionsXnoiseControlMatch", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
	return synapse_xnoise_actions_xnoise_control_match_type_id;
}

static GType
synapse_xnoise_actions_xnoise_control_match_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_xnoise_control_match_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_xnoise_control_match_type_id__once)) {
		GType synapse_xnoise_actions_xnoise_control_match_type_id;
		synapse_xnoise_actions_xnoise_control_match_type_id = synapse_xnoise_actions_xnoise_control_match_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_xnoise_control_match_type_id__once, synapse_xnoise_actions_xnoise_control_match_type_id);
	}
	return synapse_xnoise_actions_xnoise_control_match_type_id__once;
}

static SynapseXnoiseActionsQuit*
synapse_xnoise_actions_quit_construct (GType object_type)
{
	SynapseXnoiseActionsQuit * self = NULL;
#line 94 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsQuit*) g_object_new (object_type, "title", _ ("Quit"), "description", _ ("Quit Xnoise"), "icon-name", "gtk-close", "has-thumbnail", FALSE, NULL);
#line 92 "xnoise-media-player-plugin.vala"
	return self;
#line 2680 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsQuit*
synapse_xnoise_actions_quit_new (void)
{
#line 92 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_quit_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_QUIT);
#line 2688 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_quit_real_do_action (SynapseActionMatch* base)
{
	SynapseXnoiseActionsQuit * self;
	GError* _inner_error0_ = NULL;
#line 100 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsQuit*) base;
#line 2698 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp0_;
		SynapseXnoisePlayerEngine* _tmp1_;
#line 103 "xnoise-media-player-plugin.vala"
		_tmp0_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 103 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp0_;
#line 103 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 2709 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 106 "xnoise-media-player-plugin.vala"
		_tmp1_ = player;
#line 106 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_quit (_tmp1_, &_inner_error0_);
#line 106 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 106 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 2720 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 102 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 2725 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 102 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 102 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 108 "xnoise-media-player-plugin.vala"
		_tmp2_ = e;
#line 108 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp2_->message;
#line 108 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:108: Xnoise is not available.\n%s", _tmp3_);
#line 102 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 2745 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 102 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 102 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 102 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 102 "xnoise-media-player-plugin.vala"
		return;
#line 2756 "xnoise-media-player-plugin.c"
	}
}

static void
synapse_xnoise_actions_quit_class_init (SynapseXnoiseActionsQuitClass * klass,
                                        gpointer klass_data)
{
#line 90 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_quit_parent_class = g_type_class_peek_parent (klass);
#line 90 "xnoise-media-player-plugin.vala"
	((SynapseActionMatchClass *) klass)->do_action = (void (*) (SynapseActionMatch*)) synapse_xnoise_actions_quit_real_do_action;
#line 2768 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_quit_instance_init (SynapseXnoiseActionsQuit * self,
                                           gpointer klass)
{
}

static GType
synapse_xnoise_actions_quit_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsQuitClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_quit_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsQuit), 0, (GInstanceInitFunc) synapse_xnoise_actions_quit_instance_init, NULL };
	GType synapse_xnoise_actions_quit_type_id;
	synapse_xnoise_actions_quit_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, "SynapseXnoiseActionsQuit", &g_define_type_info, 0);
	return synapse_xnoise_actions_quit_type_id;
}

static GType
synapse_xnoise_actions_quit_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_quit_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_quit_type_id__once)) {
		GType synapse_xnoise_actions_quit_type_id;
		synapse_xnoise_actions_quit_type_id = synapse_xnoise_actions_quit_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_quit_type_id__once, synapse_xnoise_actions_quit_type_id);
	}
	return synapse_xnoise_actions_quit_type_id__once;
}

static SynapseXnoiseActionsRaise*
synapse_xnoise_actions_raise_construct (GType object_type)
{
	SynapseXnoiseActionsRaise * self = NULL;
#line 117 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsRaise*) g_object_new (object_type, "title", _ ("Raise"), "description", _ ("Show Xnoise"), "icon-name", "xnoise", "has-thumbnail", FALSE, NULL);
#line 115 "xnoise-media-player-plugin.vala"
	return self;
#line 2806 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsRaise*
synapse_xnoise_actions_raise_new (void)
{
#line 115 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_raise_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_RAISE);
#line 2814 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_raise_real_do_action (SynapseActionMatch* base)
{
	SynapseXnoiseActionsRaise * self;
	GError* _inner_error0_ = NULL;
#line 123 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsRaise*) base;
#line 2824 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp0_;
		SynapseXnoisePlayerEngine* _tmp1_;
#line 126 "xnoise-media-player-plugin.vala"
		_tmp0_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 126 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp0_;
#line 126 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 2835 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 129 "xnoise-media-player-plugin.vala"
		_tmp1_ = player;
#line 129 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_raise (_tmp1_, &_inner_error0_);
#line 129 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 129 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 2846 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 125 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 2851 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 125 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 125 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 131 "xnoise-media-player-plugin.vala"
		_tmp2_ = e;
#line 131 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp2_->message;
#line 131 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:131: Xnoise is not available.\n%s", _tmp3_);
#line 125 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 2871 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 125 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 125 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 125 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 125 "xnoise-media-player-plugin.vala"
		return;
#line 2882 "xnoise-media-player-plugin.c"
	}
}

static void
synapse_xnoise_actions_raise_class_init (SynapseXnoiseActionsRaiseClass * klass,
                                         gpointer klass_data)
{
#line 113 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_raise_parent_class = g_type_class_peek_parent (klass);
#line 113 "xnoise-media-player-plugin.vala"
	((SynapseActionMatchClass *) klass)->do_action = (void (*) (SynapseActionMatch*)) synapse_xnoise_actions_raise_real_do_action;
#line 2894 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_raise_instance_init (SynapseXnoiseActionsRaise * self,
                                            gpointer klass)
{
}

static GType
synapse_xnoise_actions_raise_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsRaiseClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_raise_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsRaise), 0, (GInstanceInitFunc) synapse_xnoise_actions_raise_instance_init, NULL };
	GType synapse_xnoise_actions_raise_type_id;
	synapse_xnoise_actions_raise_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, "SynapseXnoiseActionsRaise", &g_define_type_info, 0);
	return synapse_xnoise_actions_raise_type_id;
}

static GType
synapse_xnoise_actions_raise_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_raise_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_raise_type_id__once)) {
		GType synapse_xnoise_actions_raise_type_id;
		synapse_xnoise_actions_raise_type_id = synapse_xnoise_actions_raise_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_raise_type_id__once, synapse_xnoise_actions_raise_type_id);
	}
	return synapse_xnoise_actions_raise_type_id__once;
}

static SynapseXnoiseActionsPlay*
synapse_xnoise_actions_play_construct (GType object_type)
{
	SynapseXnoiseActionsPlay * self = NULL;
#line 140 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsPlay*) g_object_new (object_type, "title", _ ("Play"), "description", _ ("Start playback in Xnoise"), "icon-name", "media-playback-start", "has-thumbnail", FALSE, NULL);
#line 138 "xnoise-media-player-plugin.vala"
	return self;
#line 2932 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsPlay*
synapse_xnoise_actions_play_new (void)
{
#line 138 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_play_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_PLAY);
#line 2940 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_play_real_do_action (SynapseActionMatch* base)
{
	SynapseXnoiseActionsPlay * self;
	GError* _inner_error0_ = NULL;
#line 146 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsPlay*) base;
#line 2950 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp0_;
		SynapseXnoisePlayerEngine* _tmp1_;
#line 149 "xnoise-media-player-plugin.vala"
		_tmp0_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 149 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp0_;
#line 149 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 2961 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 152 "xnoise-media-player-plugin.vala"
		_tmp1_ = player;
#line 152 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_play (_tmp1_, &_inner_error0_);
#line 152 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 152 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 2972 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 148 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 2977 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 148 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 148 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 154 "xnoise-media-player-plugin.vala"
		_tmp2_ = e;
#line 154 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp2_->message;
#line 154 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:154: Xnoise is not available.\n%s", _tmp3_);
#line 148 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 2997 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 148 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 148 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 148 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 148 "xnoise-media-player-plugin.vala"
		return;
#line 3008 "xnoise-media-player-plugin.c"
	}
}

static void
synapse_xnoise_actions_play_class_init (SynapseXnoiseActionsPlayClass * klass,
                                        gpointer klass_data)
{
#line 136 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_play_parent_class = g_type_class_peek_parent (klass);
#line 136 "xnoise-media-player-plugin.vala"
	((SynapseActionMatchClass *) klass)->do_action = (void (*) (SynapseActionMatch*)) synapse_xnoise_actions_play_real_do_action;
#line 3020 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_play_instance_init (SynapseXnoiseActionsPlay * self,
                                           gpointer klass)
{
}

static GType
synapse_xnoise_actions_play_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsPlayClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_play_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsPlay), 0, (GInstanceInitFunc) synapse_xnoise_actions_play_instance_init, NULL };
	GType synapse_xnoise_actions_play_type_id;
	synapse_xnoise_actions_play_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, "SynapseXnoiseActionsPlay", &g_define_type_info, 0);
	return synapse_xnoise_actions_play_type_id;
}

static GType
synapse_xnoise_actions_play_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_play_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_play_type_id__once)) {
		GType synapse_xnoise_actions_play_type_id;
		synapse_xnoise_actions_play_type_id = synapse_xnoise_actions_play_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_play_type_id__once, synapse_xnoise_actions_play_type_id);
	}
	return synapse_xnoise_actions_play_type_id__once;
}

static SynapseXnoiseActionsTogglePlaying*
synapse_xnoise_actions_toggle_playing_construct (GType object_type)
{
	SynapseXnoiseActionsTogglePlaying * self = NULL;
#line 163 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsTogglePlaying*) g_object_new (object_type, "title", _ ("TogglePlaying"), "description", _ ("Start/Pause playback in Xnoise"), "icon-name", "media-playback-pause", "has-thumbnail", FALSE, NULL);
#line 161 "xnoise-media-player-plugin.vala"
	return self;
#line 3058 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsTogglePlaying*
synapse_xnoise_actions_toggle_playing_new (void)
{
#line 161 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_toggle_playing_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_TOGGLE_PLAYING);
#line 3066 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_toggle_playing_real_do_action (SynapseActionMatch* base)
{
	SynapseXnoiseActionsTogglePlaying * self;
	GError* _inner_error0_ = NULL;
#line 169 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsTogglePlaying*) base;
#line 3076 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp0_;
		SynapseXnoisePlayerEngine* _tmp1_;
#line 172 "xnoise-media-player-plugin.vala"
		_tmp0_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 172 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp0_;
#line 172 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 3087 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 175 "xnoise-media-player-plugin.vala"
		_tmp1_ = player;
#line 175 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_toggle_playing (_tmp1_, &_inner_error0_);
#line 175 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 175 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 3098 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 171 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 3103 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 171 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 171 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 177 "xnoise-media-player-plugin.vala"
		_tmp2_ = e;
#line 177 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp2_->message;
#line 177 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:177: Xnoise is not available.\n%s", _tmp3_);
#line 171 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 3123 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 171 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 171 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 171 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 171 "xnoise-media-player-plugin.vala"
		return;
#line 3134 "xnoise-media-player-plugin.c"
	}
}

static gboolean
synapse_xnoise_actions_toggle_playing_real_action_available (SynapseXnoiseActionsXnoiseControlMatch* base)
{
	SynapseXnoiseActionsTogglePlaying * self;
	gboolean result;
#line 181 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsTogglePlaying*) base;
#line 183 "xnoise-media-player-plugin.vala"
	result = TRUE;
#line 183 "xnoise-media-player-plugin.vala"
	return result;
#line 3149 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_toggle_playing_class_init (SynapseXnoiseActionsTogglePlayingClass * klass,
                                                  gpointer klass_data)
{
#line 159 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_toggle_playing_parent_class = g_type_class_peek_parent (klass);
#line 159 "xnoise-media-player-plugin.vala"
	((SynapseActionMatchClass *) klass)->do_action = (void (*) (SynapseActionMatch*)) synapse_xnoise_actions_toggle_playing_real_do_action;
#line 159 "xnoise-media-player-plugin.vala"
	((SynapseXnoiseActionsXnoiseControlMatchClass *) klass)->action_available = (gboolean (*) (SynapseXnoiseActionsXnoiseControlMatch*)) synapse_xnoise_actions_toggle_playing_real_action_available;
#line 3162 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_toggle_playing_instance_init (SynapseXnoiseActionsTogglePlaying * self,
                                                     gpointer klass)
{
}

static GType
synapse_xnoise_actions_toggle_playing_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsTogglePlayingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_toggle_playing_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsTogglePlaying), 0, (GInstanceInitFunc) synapse_xnoise_actions_toggle_playing_instance_init, NULL };
	GType synapse_xnoise_actions_toggle_playing_type_id;
	synapse_xnoise_actions_toggle_playing_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, "SynapseXnoiseActionsTogglePlaying", &g_define_type_info, 0);
	return synapse_xnoise_actions_toggle_playing_type_id;
}

static GType
synapse_xnoise_actions_toggle_playing_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_toggle_playing_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_toggle_playing_type_id__once)) {
		GType synapse_xnoise_actions_toggle_playing_type_id;
		synapse_xnoise_actions_toggle_playing_type_id = synapse_xnoise_actions_toggle_playing_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_toggle_playing_type_id__once, synapse_xnoise_actions_toggle_playing_type_id);
	}
	return synapse_xnoise_actions_toggle_playing_type_id__once;
}

static SynapseXnoiseActionsPause*
synapse_xnoise_actions_pause_construct (GType object_type)
{
	SynapseXnoiseActionsPause * self = NULL;
#line 191 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsPause*) g_object_new (object_type, "title", _ ("Pause"), "description", _ ("Pause playback in Xnoise"), "icon-name", "media-playback-pause", "has-thumbnail", FALSE, NULL);
#line 189 "xnoise-media-player-plugin.vala"
	return self;
#line 3200 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsPause*
synapse_xnoise_actions_pause_new (void)
{
#line 189 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_pause_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_PAUSE);
#line 3208 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_pause_real_do_action (SynapseActionMatch* base)
{
	SynapseXnoiseActionsPause * self;
	GError* _inner_error0_ = NULL;
#line 197 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsPause*) base;
#line 3218 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp0_;
		SynapseXnoisePlayerEngine* _tmp1_;
#line 200 "xnoise-media-player-plugin.vala"
		_tmp0_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 200 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp0_;
#line 200 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 3229 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 203 "xnoise-media-player-plugin.vala"
		_tmp1_ = player;
#line 203 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_pause (_tmp1_, &_inner_error0_);
#line 203 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 203 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 3240 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 199 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 3245 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 199 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 199 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 205 "xnoise-media-player-plugin.vala"
		_tmp2_ = e;
#line 205 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp2_->message;
#line 205 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:205: Xnoise is not available.\n%s", _tmp3_);
#line 199 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 3265 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 199 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 199 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 199 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 199 "xnoise-media-player-plugin.vala"
		return;
#line 3276 "xnoise-media-player-plugin.c"
	}
}

static void
synapse_xnoise_actions_pause_class_init (SynapseXnoiseActionsPauseClass * klass,
                                         gpointer klass_data)
{
#line 187 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_pause_parent_class = g_type_class_peek_parent (klass);
#line 187 "xnoise-media-player-plugin.vala"
	((SynapseActionMatchClass *) klass)->do_action = (void (*) (SynapseActionMatch*)) synapse_xnoise_actions_pause_real_do_action;
#line 3288 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_pause_instance_init (SynapseXnoiseActionsPause * self,
                                            gpointer klass)
{
}

static GType
synapse_xnoise_actions_pause_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsPauseClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_pause_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsPause), 0, (GInstanceInitFunc) synapse_xnoise_actions_pause_instance_init, NULL };
	GType synapse_xnoise_actions_pause_type_id;
	synapse_xnoise_actions_pause_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, "SynapseXnoiseActionsPause", &g_define_type_info, 0);
	return synapse_xnoise_actions_pause_type_id;
}

static GType
synapse_xnoise_actions_pause_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_pause_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_pause_type_id__once)) {
		GType synapse_xnoise_actions_pause_type_id;
		synapse_xnoise_actions_pause_type_id = synapse_xnoise_actions_pause_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_pause_type_id__once, synapse_xnoise_actions_pause_type_id);
	}
	return synapse_xnoise_actions_pause_type_id__once;
}

static SynapseXnoiseActionsNext*
synapse_xnoise_actions_next_construct (GType object_type)
{
	SynapseXnoiseActionsNext * self = NULL;
#line 214 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsNext*) g_object_new (object_type, "title", _ ("Next"), "description", _ ("Plays the next song in Xnoise's playlist"), "icon-name", "media-skip-forward", "has-thumbnail", FALSE, NULL);
#line 212 "xnoise-media-player-plugin.vala"
	return self;
#line 3326 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsNext*
synapse_xnoise_actions_next_new (void)
{
#line 212 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_next_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_NEXT);
#line 3334 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_next_real_do_action (SynapseActionMatch* base)
{
	SynapseXnoiseActionsNext * self;
	GError* _inner_error0_ = NULL;
#line 220 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsNext*) base;
#line 3344 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp0_;
		SynapseXnoisePlayerEngine* _tmp1_;
#line 223 "xnoise-media-player-plugin.vala"
		_tmp0_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 223 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp0_;
#line 223 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 3355 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 227 "xnoise-media-player-plugin.vala"
		_tmp1_ = player;
#line 227 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_next (_tmp1_, &_inner_error0_);
#line 227 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 227 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 3366 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 222 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 3371 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 222 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 222 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 229 "xnoise-media-player-plugin.vala"
		_tmp2_ = e;
#line 229 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp2_->message;
#line 229 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:229: Xnoise is not available.\n%s", _tmp3_);
#line 222 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 3391 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 222 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 222 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 222 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 222 "xnoise-media-player-plugin.vala"
		return;
#line 3402 "xnoise-media-player-plugin.c"
	}
}

static void
synapse_xnoise_actions_next_class_init (SynapseXnoiseActionsNextClass * klass,
                                        gpointer klass_data)
{
#line 210 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_next_parent_class = g_type_class_peek_parent (klass);
#line 210 "xnoise-media-player-plugin.vala"
	((SynapseActionMatchClass *) klass)->do_action = (void (*) (SynapseActionMatch*)) synapse_xnoise_actions_next_real_do_action;
#line 3414 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_next_instance_init (SynapseXnoiseActionsNext * self,
                                           gpointer klass)
{
}

static GType
synapse_xnoise_actions_next_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsNextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_next_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsNext), 0, (GInstanceInitFunc) synapse_xnoise_actions_next_instance_init, NULL };
	GType synapse_xnoise_actions_next_type_id;
	synapse_xnoise_actions_next_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, "SynapseXnoiseActionsNext", &g_define_type_info, 0);
	return synapse_xnoise_actions_next_type_id;
}

static GType
synapse_xnoise_actions_next_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_next_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_next_type_id__once)) {
		GType synapse_xnoise_actions_next_type_id;
		synapse_xnoise_actions_next_type_id = synapse_xnoise_actions_next_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_next_type_id__once, synapse_xnoise_actions_next_type_id);
	}
	return synapse_xnoise_actions_next_type_id__once;
}

static SynapseXnoiseActionsPrevious*
synapse_xnoise_actions_previous_construct (GType object_type)
{
	SynapseXnoiseActionsPrevious * self = NULL;
#line 238 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsPrevious*) g_object_new (object_type, "title", _ ("Previous"), "description", _ ("Plays the previous song in Xnoise's playlist"), "icon-name", "media-skip-backward", "has-thumbnail", FALSE, NULL);
#line 236 "xnoise-media-player-plugin.vala"
	return self;
#line 3452 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsPrevious*
synapse_xnoise_actions_previous_new (void)
{
#line 236 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_previous_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_PREVIOUS);
#line 3460 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_previous_real_do_action (SynapseActionMatch* base)
{
	SynapseXnoiseActionsPrevious * self;
	GError* _inner_error0_ = NULL;
#line 244 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsPrevious*) base;
#line 3470 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp0_;
		SynapseXnoisePlayerEngine* _tmp1_;
#line 247 "xnoise-media-player-plugin.vala"
		_tmp0_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 247 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp0_;
#line 247 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 3481 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 250 "xnoise-media-player-plugin.vala"
		_tmp1_ = player;
#line 250 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_previous (_tmp1_, &_inner_error0_);
#line 250 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 250 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 3492 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 246 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 3497 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 246 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 246 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 252 "xnoise-media-player-plugin.vala"
		_tmp2_ = e;
#line 252 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp2_->message;
#line 252 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:252: Xnoise is not available.\n%s", _tmp3_);
#line 246 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 3517 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 246 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 246 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 246 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 246 "xnoise-media-player-plugin.vala"
		return;
#line 3528 "xnoise-media-player-plugin.c"
	}
}

static void
synapse_xnoise_actions_previous_class_init (SynapseXnoiseActionsPreviousClass * klass,
                                            gpointer klass_data)
{
#line 234 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_previous_parent_class = g_type_class_peek_parent (klass);
#line 234 "xnoise-media-player-plugin.vala"
	((SynapseActionMatchClass *) klass)->do_action = (void (*) (SynapseActionMatch*)) synapse_xnoise_actions_previous_real_do_action;
#line 3540 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_previous_instance_init (SynapseXnoiseActionsPrevious * self,
                                               gpointer klass)
{
}

static GType
synapse_xnoise_actions_previous_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsPreviousClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_previous_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsPrevious), 0, (GInstanceInitFunc) synapse_xnoise_actions_previous_instance_init, NULL };
	GType synapse_xnoise_actions_previous_type_id;
	synapse_xnoise_actions_previous_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, "SynapseXnoiseActionsPrevious", &g_define_type_info, 0);
	return synapse_xnoise_actions_previous_type_id;
}

static GType
synapse_xnoise_actions_previous_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_previous_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_previous_type_id__once)) {
		GType synapse_xnoise_actions_previous_type_id;
		synapse_xnoise_actions_previous_type_id = synapse_xnoise_actions_previous_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_previous_type_id__once, synapse_xnoise_actions_previous_type_id);
	}
	return synapse_xnoise_actions_previous_type_id__once;
}

static SynapseXnoiseActionsStop*
synapse_xnoise_actions_stop_construct (GType object_type)
{
	SynapseXnoiseActionsStop * self = NULL;
#line 261 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsStop*) g_object_new (object_type, "title", _ ("Stop"), "description", _ ("Stops the playback of Xnoise"), "icon-name", "media-playback-stop", "has-thumbnail", FALSE, NULL);
#line 259 "xnoise-media-player-plugin.vala"
	return self;
#line 3578 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsStop*
synapse_xnoise_actions_stop_new (void)
{
#line 259 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_stop_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_STOP);
#line 3586 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_stop_real_do_action (SynapseActionMatch* base)
{
	SynapseXnoiseActionsStop * self;
	GError* _inner_error0_ = NULL;
#line 267 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsStop*) base;
#line 3596 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp0_;
		SynapseXnoisePlayerEngine* _tmp1_;
#line 270 "xnoise-media-player-plugin.vala"
		_tmp0_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 270 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp0_;
#line 270 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 3607 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 273 "xnoise-media-player-plugin.vala"
		_tmp1_ = player;
#line 273 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_stop (_tmp1_, &_inner_error0_);
#line 273 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 273 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 3618 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 269 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 3623 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
#line 269 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 269 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 275 "xnoise-media-player-plugin.vala"
		_tmp2_ = e;
#line 275 "xnoise-media-player-plugin.vala"
		_tmp3_ = _tmp2_->message;
#line 275 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:275: Xnoise is not available.\n%s", _tmp3_);
#line 269 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 3643 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 269 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 269 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 269 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 269 "xnoise-media-player-plugin.vala"
		return;
#line 3654 "xnoise-media-player-plugin.c"
	}
}

static void
synapse_xnoise_actions_stop_class_init (SynapseXnoiseActionsStopClass * klass,
                                        gpointer klass_data)
{
#line 257 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_stop_parent_class = g_type_class_peek_parent (klass);
#line 257 "xnoise-media-player-plugin.vala"
	((SynapseActionMatchClass *) klass)->do_action = (void (*) (SynapseActionMatch*)) synapse_xnoise_actions_stop_real_do_action;
#line 3666 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_stop_instance_init (SynapseXnoiseActionsStop * self,
                                           gpointer klass)
{
}

static GType
synapse_xnoise_actions_stop_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsStopClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_stop_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsStop), 0, (GInstanceInitFunc) synapse_xnoise_actions_stop_instance_init, NULL };
	GType synapse_xnoise_actions_stop_type_id;
	synapse_xnoise_actions_stop_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, "SynapseXnoiseActionsStop", &g_define_type_info, 0);
	return synapse_xnoise_actions_stop_type_id;
}

static GType
synapse_xnoise_actions_stop_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_stop_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_stop_type_id__once)) {
		GType synapse_xnoise_actions_stop_type_id;
		synapse_xnoise_actions_stop_type_id = synapse_xnoise_actions_stop_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_stop_type_id__once, synapse_xnoise_actions_stop_type_id);
	}
	return synapse_xnoise_actions_stop_type_id__once;
}

static SynapseXnoiseActionsOpenUri*
synapse_xnoise_actions_open_uri_construct (GType object_type)
{
	SynapseXnoiseActionsOpenUri * self = NULL;
#line 285 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsOpenUri*) g_object_new (object_type, "title", _ ("Play in Xnoise"), "description", _ ("Queues and plays the song"), "icon-name", "media-playback-start", "has-thumbnail", FALSE, "default-relevancy", SYNAPSE_MATCH_SCORE_ABOVE_AVERAGE, NULL);
#line 283 "xnoise-media-player-plugin.vala"
	return self;
#line 3704 "xnoise-media-player-plugin.c"
}

static SynapseXnoiseActionsOpenUri*
synapse_xnoise_actions_open_uri_new (void)
{
#line 283 "xnoise-media-player-plugin.vala"
	return synapse_xnoise_actions_open_uri_construct (SYNAPSE_XNOISE_ACTIONS_TYPE_OPEN_URI);
#line 3712 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_open_uri_real_do_execute (SynapseAction* base,
                                                 SynapseMatch* match,
                                                 SynapseMatch* target)
{
	SynapseXnoiseActionsOpenUri * self;
	SynapseUriMatch* uri = NULL;
	SynapseUriMatch* _tmp0_;
	gboolean _tmp1_ = FALSE;
	SynapseUriMatch* _tmp2_;
	SynapseQueryFlags _tmp3_;
	SynapseQueryFlags _tmp4_;
	GError* _inner_error0_ = NULL;
#line 293 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsOpenUri*) base;
#line 293 "xnoise-media-player-plugin.vala"
	g_return_if_fail (match != NULL);
#line 295 "xnoise-media-player-plugin.vala"
	uri = G_TYPE_CHECK_INSTANCE_TYPE (match, SYNAPSE_TYPE_URI_MATCH) ? ((SynapseUriMatch*) match) : NULL;
#line 296 "xnoise-media-player-plugin.vala"
	_tmp0_ = uri;
#line 296 "xnoise-media-player-plugin.vala"
	g_return_if_fail (_tmp0_ != NULL);
#line 297 "xnoise-media-player-plugin.vala"
	_tmp2_ = uri;
#line 297 "xnoise-media-player-plugin.vala"
	_tmp3_ = synapse_uri_match_get_file_type (_tmp2_);
#line 297 "xnoise-media-player-plugin.vala"
	_tmp4_ = _tmp3_;
#line 297 "xnoise-media-player-plugin.vala"
	if ((_tmp4_ & SYNAPSE_QUERY_FLAGS_AUDIO) != 0) {
#line 297 "xnoise-media-player-plugin.vala"
		_tmp1_ = TRUE;
#line 3748 "xnoise-media-player-plugin.c"
	} else {
		SynapseUriMatch* _tmp5_;
		SynapseQueryFlags _tmp6_;
		SynapseQueryFlags _tmp7_;
#line 298 "xnoise-media-player-plugin.vala"
		_tmp5_ = uri;
#line 298 "xnoise-media-player-plugin.vala"
		_tmp6_ = synapse_uri_match_get_file_type (_tmp5_);
#line 298 "xnoise-media-player-plugin.vala"
		_tmp7_ = _tmp6_;
#line 298 "xnoise-media-player-plugin.vala"
		_tmp1_ = (_tmp7_ & SYNAPSE_QUERY_FLAGS_VIDEO) != 0;
#line 3761 "xnoise-media-player-plugin.c"
	}
#line 297 "xnoise-media-player-plugin.vala"
	g_return_if_fail (_tmp1_);
#line 3765 "xnoise-media-player-plugin.c"
	{
		SynapseXnoisePlayerEngine* player = NULL;
		SynapseXnoisePlayerEngine* _tmp8_;
		SynapseXnoisePlayerEngine* _tmp9_;
		SynapseUriMatch* _tmp10_;
		const gchar* _tmp11_;
		const gchar* _tmp12_;
		SynapseXnoisePlayerEngine* _tmp13_;
#line 301 "xnoise-media-player-plugin.vala"
		_tmp8_ = (SynapseXnoisePlayerEngine*) g_initable_new (SYNAPSE_TYPE_XNOISE_PLAYER_ENGINE_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", SYNAPSE_XNOISE_PLAYER_ENGINE_UNIQUE_NAME, "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", SYNAPSE_XNOISE_PLAYER_ENGINE_OBJECT_PATH, "g-interface-name", "org.gtk.xnoise.PlayerEngine", NULL);
#line 301 "xnoise-media-player-plugin.vala"
		player = (SynapseXnoisePlayerEngine*) _tmp8_;
#line 301 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 3780 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 304 "xnoise-media-player-plugin.vala"
		_tmp9_ = player;
#line 304 "xnoise-media-player-plugin.vala"
		_tmp10_ = uri;
#line 304 "xnoise-media-player-plugin.vala"
		_tmp11_ = synapse_uri_match_get_uri (_tmp10_);
#line 304 "xnoise-media-player-plugin.vala"
		_tmp12_ = _tmp11_;
#line 304 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_open_uri (_tmp9_, _tmp12_, &_inner_error0_);
#line 304 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 304 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 3797 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 305 "xnoise-media-player-plugin.vala"
		_tmp13_ = player;
#line 305 "xnoise-media-player-plugin.vala"
		synapse_xnoise_player_engine_play (_tmp13_, &_inner_error0_);
#line 305 "xnoise-media-player-plugin.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 305 "xnoise-media-player-plugin.vala"
			_g_object_unref0 (player);
#line 3808 "xnoise-media-player-plugin.c"
			goto __catch0_g_error;
		}
#line 300 "xnoise-media-player-plugin.vala"
		_g_object_unref0 (player);
#line 3813 "xnoise-media-player-plugin.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp14_;
		const gchar* _tmp15_;
#line 300 "xnoise-media-player-plugin.vala"
		e = _inner_error0_;
#line 300 "xnoise-media-player-plugin.vala"
		_inner_error0_ = NULL;
#line 307 "xnoise-media-player-plugin.vala"
		_tmp14_ = e;
#line 307 "xnoise-media-player-plugin.vala"
		_tmp15_ = _tmp14_->message;
#line 307 "xnoise-media-player-plugin.vala"
		g_warning ("xnoise-media-player-plugin.vala:307: Xnoise is not available.\n%s", _tmp15_);
#line 300 "xnoise-media-player-plugin.vala"
		_g_error_free0 (e);
#line 3833 "xnoise-media-player-plugin.c"
	}
	__finally0:
#line 300 "xnoise-media-player-plugin.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 300 "xnoise-media-player-plugin.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 300 "xnoise-media-player-plugin.vala"
		g_clear_error (&_inner_error0_);
#line 300 "xnoise-media-player-plugin.vala"
		return;
#line 3844 "xnoise-media-player-plugin.c"
	}
}

static gboolean
synapse_xnoise_actions_open_uri_real_valid_for_match (SynapseAction* base,
                                                      SynapseMatch* match)
{
	SynapseXnoiseActionsOpenUri * self;
	SynapseUriMatch* uri_match = NULL;
	SynapseUriMatch* _tmp0_;
	gboolean _tmp1_ = FALSE;
	SynapseUriMatch* _tmp2_;
	SynapseQueryFlags _tmp3_;
	SynapseQueryFlags _tmp4_;
	gboolean result;
#line 311 "xnoise-media-player-plugin.vala"
	self = (SynapseXnoiseActionsOpenUri*) base;
#line 311 "xnoise-media-player-plugin.vala"
	g_return_val_if_fail (match != NULL, FALSE);
#line 313 "xnoise-media-player-plugin.vala"
	uri_match = G_TYPE_CHECK_INSTANCE_TYPE (match, SYNAPSE_TYPE_URI_MATCH) ? ((SynapseUriMatch*) match) : NULL;
#line 314 "xnoise-media-player-plugin.vala"
	_tmp0_ = uri_match;
#line 314 "xnoise-media-player-plugin.vala"
	if (_tmp0_ == NULL) {
#line 315 "xnoise-media-player-plugin.vala"
		result = FALSE;
#line 315 "xnoise-media-player-plugin.vala"
		return result;
#line 3874 "xnoise-media-player-plugin.c"
	}
#line 317 "xnoise-media-player-plugin.vala"
	_tmp2_ = uri_match;
#line 317 "xnoise-media-player-plugin.vala"
	_tmp3_ = synapse_uri_match_get_file_type (_tmp2_);
#line 317 "xnoise-media-player-plugin.vala"
	_tmp4_ = _tmp3_;
#line 317 "xnoise-media-player-plugin.vala"
	if ((_tmp4_ & SYNAPSE_QUERY_FLAGS_AUDIO) != 0) {
#line 317 "xnoise-media-player-plugin.vala"
		_tmp1_ = TRUE;
#line 3886 "xnoise-media-player-plugin.c"
	} else {
		SynapseUriMatch* _tmp5_;
		SynapseQueryFlags _tmp6_;
		SynapseQueryFlags _tmp7_;
#line 318 "xnoise-media-player-plugin.vala"
		_tmp5_ = uri_match;
#line 318 "xnoise-media-player-plugin.vala"
		_tmp6_ = synapse_uri_match_get_file_type (_tmp5_);
#line 318 "xnoise-media-player-plugin.vala"
		_tmp7_ = _tmp6_;
#line 318 "xnoise-media-player-plugin.vala"
		_tmp1_ = (_tmp7_ & SYNAPSE_QUERY_FLAGS_VIDEO) != 0;
#line 3899 "xnoise-media-player-plugin.c"
	}
#line 317 "xnoise-media-player-plugin.vala"
	result = _tmp1_;
#line 317 "xnoise-media-player-plugin.vala"
	return result;
#line 3905 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_open_uri_class_init (SynapseXnoiseActionsOpenUriClass * klass,
                                            gpointer klass_data)
{
#line 281 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_open_uri_parent_class = g_type_class_peek_parent (klass);
#line 281 "xnoise-media-player-plugin.vala"
	((SynapseActionClass *) klass)->do_execute = (void (*) (SynapseAction*, SynapseMatch*, SynapseMatch*)) synapse_xnoise_actions_open_uri_real_do_execute;
#line 281 "xnoise-media-player-plugin.vala"
	((SynapseActionClass *) klass)->valid_for_match = (gboolean (*) (SynapseAction*, SynapseMatch*)) synapse_xnoise_actions_open_uri_real_valid_for_match;
#line 3918 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_open_uri_instance_init (SynapseXnoiseActionsOpenUri * self,
                                               gpointer klass)
{
}

static GType
synapse_xnoise_actions_open_uri_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsOpenUriClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_open_uri_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActionsOpenUri), 0, (GInstanceInitFunc) synapse_xnoise_actions_open_uri_instance_init, NULL };
	GType synapse_xnoise_actions_open_uri_type_id;
	synapse_xnoise_actions_open_uri_type_id = g_type_register_static (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_ACTION, "SynapseXnoiseActionsOpenUri", &g_define_type_info, 0);
	return synapse_xnoise_actions_open_uri_type_id;
}

static GType
synapse_xnoise_actions_open_uri_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_open_uri_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_open_uri_type_id__once)) {
		GType synapse_xnoise_actions_open_uri_type_id;
		synapse_xnoise_actions_open_uri_type_id = synapse_xnoise_actions_open_uri_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_open_uri_type_id__once, synapse_xnoise_actions_open_uri_type_id);
	}
	return synapse_xnoise_actions_open_uri_type_id__once;
}

static GObject *
synapse_xnoise_actions_constructor (GType type,
                                    guint n_construct_properties,
                                    GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	SynapseXnoiseActions * self;
	GeeArrayList* _tmp0_;
	GeeArrayList* _tmp1_;
	GeeList* _tmp2_;
	SynapseXnoiseActionsOpenUri* _tmp3_;
	SynapseXnoiseActionsOpenUri* _tmp4_;
	GeeList* _tmp5_;
	SynapseXnoiseActionsRaise* _tmp6_;
	SynapseXnoiseActionsRaise* _tmp7_;
	GeeList* _tmp8_;
	SynapseXnoiseActionsQuit* _tmp9_;
	SynapseXnoiseActionsQuit* _tmp10_;
	GeeList* _tmp11_;
	SynapseXnoiseActionsPlay* _tmp12_;
	SynapseXnoiseActionsPlay* _tmp13_;
	GeeList* _tmp14_;
	SynapseXnoiseActionsTogglePlaying* _tmp15_;
	SynapseXnoiseActionsTogglePlaying* _tmp16_;
	GeeList* _tmp17_;
	SynapseXnoiseActionsPause* _tmp18_;
	SynapseXnoiseActionsPause* _tmp19_;
	GeeList* _tmp20_;
	SynapseXnoiseActionsStop* _tmp21_;
	SynapseXnoiseActionsStop* _tmp22_;
	GeeList* _tmp23_;
	SynapseXnoiseActionsPrevious* _tmp24_;
	SynapseXnoiseActionsPrevious* _tmp25_;
	GeeList* _tmp26_;
	SynapseXnoiseActionsNext* _tmp27_;
	SynapseXnoiseActionsNext* _tmp28_;
#line 325 "xnoise-media-player-plugin.vala"
	parent_class = G_OBJECT_CLASS (synapse_xnoise_actions_parent_class);
#line 325 "xnoise-media-player-plugin.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 325 "xnoise-media-player-plugin.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SYNAPSE_TYPE_XNOISE_ACTIONS, SynapseXnoiseActions);
#line 327 "xnoise-media-player-plugin.vala"
	_tmp0_ = gee_array_list_new (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_ACTION, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 327 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (self->priv->actions);
#line 327 "xnoise-media-player-plugin.vala"
	self->priv->actions = (GeeList*) _tmp0_;
#line 328 "xnoise-media-player-plugin.vala"
	_tmp1_ = gee_array_list_new (SYNAPSE_XNOISE_ACTIONS_TYPE_XNOISE_CONTROL_MATCH, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, NULL, NULL, NULL);
#line 328 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (self->priv->matches);
#line 328 "xnoise-media-player-plugin.vala"
	self->priv->matches = (GeeList*) _tmp1_;
#line 330 "xnoise-media-player-plugin.vala"
	_tmp2_ = self->priv->actions;
#line 330 "xnoise-media-player-plugin.vala"
	_tmp3_ = synapse_xnoise_actions_open_uri_new ();
#line 330 "xnoise-media-player-plugin.vala"
	_tmp4_ = _tmp3_;
#line 330 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp2_, (SynapseXnoiseActionsXnoiseAction*) _tmp4_);
#line 330 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp4_);
#line 332 "xnoise-media-player-plugin.vala"
	_tmp5_ = self->priv->matches;
#line 332 "xnoise-media-player-plugin.vala"
	_tmp6_ = synapse_xnoise_actions_raise_new ();
#line 332 "xnoise-media-player-plugin.vala"
	_tmp7_ = _tmp6_;
#line 332 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp5_, (SynapseXnoiseActionsXnoiseControlMatch*) _tmp7_);
#line 332 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp7_);
#line 333 "xnoise-media-player-plugin.vala"
	_tmp8_ = self->priv->matches;
#line 333 "xnoise-media-player-plugin.vala"
	_tmp9_ = synapse_xnoise_actions_quit_new ();
#line 333 "xnoise-media-player-plugin.vala"
	_tmp10_ = _tmp9_;
#line 333 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp8_, (SynapseXnoiseActionsXnoiseControlMatch*) _tmp10_);
#line 333 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp10_);
#line 335 "xnoise-media-player-plugin.vala"
	_tmp11_ = self->priv->matches;
#line 335 "xnoise-media-player-plugin.vala"
	_tmp12_ = synapse_xnoise_actions_play_new ();
#line 335 "xnoise-media-player-plugin.vala"
	_tmp13_ = _tmp12_;
#line 335 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp11_, (SynapseXnoiseActionsXnoiseControlMatch*) _tmp13_);
#line 335 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp13_);
#line 336 "xnoise-media-player-plugin.vala"
	_tmp14_ = self->priv->matches;
#line 336 "xnoise-media-player-plugin.vala"
	_tmp15_ = synapse_xnoise_actions_toggle_playing_new ();
#line 336 "xnoise-media-player-plugin.vala"
	_tmp16_ = _tmp15_;
#line 336 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp14_, (SynapseXnoiseActionsXnoiseControlMatch*) _tmp16_);
#line 336 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp16_);
#line 337 "xnoise-media-player-plugin.vala"
	_tmp17_ = self->priv->matches;
#line 337 "xnoise-media-player-plugin.vala"
	_tmp18_ = synapse_xnoise_actions_pause_new ();
#line 337 "xnoise-media-player-plugin.vala"
	_tmp19_ = _tmp18_;
#line 337 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp17_, (SynapseXnoiseActionsXnoiseControlMatch*) _tmp19_);
#line 337 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp19_);
#line 338 "xnoise-media-player-plugin.vala"
	_tmp20_ = self->priv->matches;
#line 338 "xnoise-media-player-plugin.vala"
	_tmp21_ = synapse_xnoise_actions_stop_new ();
#line 338 "xnoise-media-player-plugin.vala"
	_tmp22_ = _tmp21_;
#line 338 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp20_, (SynapseXnoiseActionsXnoiseControlMatch*) _tmp22_);
#line 338 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp22_);
#line 339 "xnoise-media-player-plugin.vala"
	_tmp23_ = self->priv->matches;
#line 339 "xnoise-media-player-plugin.vala"
	_tmp24_ = synapse_xnoise_actions_previous_new ();
#line 339 "xnoise-media-player-plugin.vala"
	_tmp25_ = _tmp24_;
#line 339 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp23_, (SynapseXnoiseActionsXnoiseControlMatch*) _tmp25_);
#line 339 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp25_);
#line 340 "xnoise-media-player-plugin.vala"
	_tmp26_ = self->priv->matches;
#line 340 "xnoise-media-player-plugin.vala"
	_tmp27_ = synapse_xnoise_actions_next_new ();
#line 340 "xnoise-media-player-plugin.vala"
	_tmp28_ = _tmp27_;
#line 340 "xnoise-media-player-plugin.vala"
	gee_collection_add ((GeeCollection*) _tmp26_, (SynapseXnoiseActionsXnoiseControlMatch*) _tmp28_);
#line 340 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (_tmp28_);
#line 325 "xnoise-media-player-plugin.vala"
	return obj;
#line 4095 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_class_init (SynapseXnoiseActionsClass * klass,
                                   gpointer klass_data)
{
#line 42 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_parent_class = g_type_class_peek_parent (klass);
#line 42 "xnoise-media-player-plugin.vala"
	g_type_class_adjust_private_offset (klass, &SynapseXnoiseActions_private_offset);
#line 42 "xnoise-media-player-plugin.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_synapse_xnoise_actions_get_property;
#line 42 "xnoise-media-player-plugin.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_synapse_xnoise_actions_set_property;
#line 42 "xnoise-media-player-plugin.vala"
	G_OBJECT_CLASS (klass)->constructor = synapse_xnoise_actions_constructor;
#line 42 "xnoise-media-player-plugin.vala"
	G_OBJECT_CLASS (klass)->finalize = synapse_xnoise_actions_finalize;
#line 42 "xnoise-media-player-plugin.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), SYNAPSE_XNOISE_ACTIONS_ENABLED_PROPERTY, synapse_xnoise_actions_properties[SYNAPSE_XNOISE_ACTIONS_ENABLED_PROPERTY] = g_param_spec_boolean ("enabled", "enabled", "enabled", TRUE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 69 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_register_plugin ();
#line 4118 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_synapse_activatable_interface_init (SynapseActivatableIface * iface,
                                                           gpointer iface_data)
{
#line 42 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_synapse_activatable_parent_iface = g_type_interface_peek_parent (iface);
#line 42 "xnoise-media-player-plugin.vala"
	iface->activate = (void (*) (SynapseActivatable*)) synapse_xnoise_actions_real_activate;
#line 42 "xnoise-media-player-plugin.vala"
	iface->deactivate = (void (*) (SynapseActivatable*)) synapse_xnoise_actions_real_deactivate;
#line 42 "xnoise-media-player-plugin.vala"
	iface->get_enabled = synapse_xnoise_actions_real_get_enabled;
#line 42 "xnoise-media-player-plugin.vala"
	iface->set_enabled = synapse_xnoise_actions_real_set_enabled;
#line 4135 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_synapse_item_provider_interface_init (SynapseItemProviderIface * iface,
                                                             gpointer iface_data)
{
#line 42 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_synapse_item_provider_parent_iface = g_type_interface_peek_parent (iface);
#line 42 "xnoise-media-player-plugin.vala"
	iface->search = (void (*) (SynapseItemProvider*, SynapseQuery*, GAsyncReadyCallback, gpointer)) synapse_xnoise_actions_real_search;
#line 42 "xnoise-media-player-plugin.vala"
	iface->search_finish = (SynapseResultSet* (*) (SynapseItemProvider*, GAsyncResult*, GError**)) synapse_xnoise_actions_search_finish;
#line 4148 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_synapse_action_provider_interface_init (SynapseActionProviderIface * iface,
                                                               gpointer iface_data)
{
#line 42 "xnoise-media-player-plugin.vala"
	synapse_xnoise_actions_synapse_action_provider_parent_iface = g_type_interface_peek_parent (iface);
#line 42 "xnoise-media-player-plugin.vala"
	iface->find_for_match = (SynapseResultSet* (*) (SynapseActionProvider*, SynapseQuery*, SynapseMatch*)) synapse_xnoise_actions_real_find_for_match;
#line 4159 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_instance_init (SynapseXnoiseActions * self,
                                      gpointer klass)
{
#line 42 "xnoise-media-player-plugin.vala"
	self->priv = synapse_xnoise_actions_get_instance_private (self);
#line 44 "xnoise-media-player-plugin.vala"
	self->priv->_enabled = TRUE;
#line 4170 "xnoise-media-player-plugin.c"
}

static void
synapse_xnoise_actions_finalize (GObject * obj)
{
	SynapseXnoiseActions * self;
#line 42 "xnoise-media-player-plugin.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SYNAPSE_TYPE_XNOISE_ACTIONS, SynapseXnoiseActions);
#line 322 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (self->priv->actions);
#line 323 "xnoise-media-player-plugin.vala"
	_g_object_unref0 (self->priv->matches);
#line 42 "xnoise-media-player-plugin.vala"
	G_OBJECT_CLASS (synapse_xnoise_actions_parent_class)->finalize (obj);
#line 4185 "xnoise-media-player-plugin.c"
}

static GType
synapse_xnoise_actions_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseXnoiseActionsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_xnoise_actions_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseXnoiseActions), 0, (GInstanceInitFunc) synapse_xnoise_actions_instance_init, NULL };
	static const GInterfaceInfo synapse_activatable_info = { (GInterfaceInitFunc) synapse_xnoise_actions_synapse_activatable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	static const GInterfaceInfo synapse_item_provider_info = { (GInterfaceInitFunc) synapse_xnoise_actions_synapse_item_provider_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	static const GInterfaceInfo synapse_action_provider_info = { (GInterfaceInitFunc) synapse_xnoise_actions_synapse_action_provider_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType synapse_xnoise_actions_type_id;
	synapse_xnoise_actions_type_id = g_type_register_static (G_TYPE_OBJECT, "SynapseXnoiseActions", &g_define_type_info, 0);
	g_type_add_interface_static (synapse_xnoise_actions_type_id, SYNAPSE_TYPE_ACTIVATABLE, &synapse_activatable_info);
	g_type_add_interface_static (synapse_xnoise_actions_type_id, SYNAPSE_TYPE_ITEM_PROVIDER, &synapse_item_provider_info);
	g_type_add_interface_static (synapse_xnoise_actions_type_id, SYNAPSE_TYPE_ACTION_PROVIDER, &synapse_action_provider_info);
	SynapseXnoiseActions_private_offset = g_type_add_instance_private (synapse_xnoise_actions_type_id, sizeof (SynapseXnoiseActionsPrivate));
	return synapse_xnoise_actions_type_id;
}

GType
synapse_xnoise_actions_get_type (void)
{
	static volatile gsize synapse_xnoise_actions_type_id__once = 0;
	if (g_once_init_enter (&synapse_xnoise_actions_type_id__once)) {
		GType synapse_xnoise_actions_type_id;
		synapse_xnoise_actions_type_id = synapse_xnoise_actions_get_type_once ();
		g_once_init_leave (&synapse_xnoise_actions_type_id__once, synapse_xnoise_actions_type_id);
	}
	return synapse_xnoise_actions_type_id__once;
}

static void
_vala_synapse_xnoise_actions_get_property (GObject * object,
                                           guint property_id,
                                           GValue * value,
                                           GParamSpec * pspec)
{
	SynapseXnoiseActions * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SYNAPSE_TYPE_XNOISE_ACTIONS, SynapseXnoiseActions);
#line 42 "xnoise-media-player-plugin.vala"
	switch (property_id) {
#line 42 "xnoise-media-player-plugin.vala"
		case SYNAPSE_XNOISE_ACTIONS_ENABLED_PROPERTY:
#line 42 "xnoise-media-player-plugin.vala"
		g_value_set_boolean (value, synapse_activatable_get_enabled ((SynapseActivatable*) self));
#line 42 "xnoise-media-player-plugin.vala"
		break;
#line 4232 "xnoise-media-player-plugin.c"
		default:
#line 42 "xnoise-media-player-plugin.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 42 "xnoise-media-player-plugin.vala"
		break;
#line 4238 "xnoise-media-player-plugin.c"
	}
}

static void
_vala_synapse_xnoise_actions_set_property (GObject * object,
                                           guint property_id,
                                           const GValue * value,
                                           GParamSpec * pspec)
{
	SynapseXnoiseActions * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SYNAPSE_TYPE_XNOISE_ACTIONS, SynapseXnoiseActions);
#line 42 "xnoise-media-player-plugin.vala"
	switch (property_id) {
#line 42 "xnoise-media-player-plugin.vala"
		case SYNAPSE_XNOISE_ACTIONS_ENABLED_PROPERTY:
#line 42 "xnoise-media-player-plugin.vala"
		synapse_activatable_set_enabled ((SynapseActivatable*) self, g_value_get_boolean (value));
#line 42 "xnoise-media-player-plugin.vala"
		break;
#line 4258 "xnoise-media-player-plugin.c"
		default:
#line 42 "xnoise-media-player-plugin.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 42 "xnoise-media-player-plugin.vala"
		break;
#line 4264 "xnoise-media-player-plugin.c"
	}
}

