/* swayncDaemon.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from swayncDaemon.vala, do not modify */

#include <glib-object.h>
#include <glib.h>
#include <string.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <stdio.h>
#include <json-glib/json-glib.h>
#include <gtk/gtk.h>
#include <adwaita.h>
#include <gdk/gdk.h>

#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
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define SWAY_NOTIFICATION_CENTER_TYPE_DATA (sway_notification_center_data_get_type ())
typedef struct _SwayNotificationCenterData SwayNotificationCenterData;

#define SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON (sway_notification_center_swaync_daemon_get_type ())
#define SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, SwayNotificationCenterSwayncDaemon))
#define SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, SwayNotificationCenterSwayncDaemonClass))
#define SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON))
#define SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON))
#define SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, SwayNotificationCenterSwayncDaemonClass))

typedef struct _SwayNotificationCenterSwayncDaemon SwayNotificationCenterSwayncDaemon;
typedef struct _SwayNotificationCenterSwayncDaemonClass SwayNotificationCenterSwayncDaemonClass;
typedef struct _SwayNotificationCenterSwayncDaemonPrivate SwayNotificationCenterSwayncDaemonPrivate;
enum  {
	SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_0_PROPERTY,
	SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_PROPERTY,
	SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_NUM_PROPERTIES
};
static GParamSpec* sway_notification_center_swaync_daemon_properties[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_NUM_PROPERTIES];
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON (sway_notification_center_noti_daemon_get_type ())
#define SWAY_NOTIFICATION_CENTER_NOTI_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON, SwayNotificationCenterNotiDaemon))
#define SWAY_NOTIFICATION_CENTER_NOTI_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON, SwayNotificationCenterNotiDaemonClass))
#define SWAY_NOTIFICATION_CENTER_IS_NOTI_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON))
#define SWAY_NOTIFICATION_CENTER_IS_NOTI_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON))
#define SWAY_NOTIFICATION_CENTER_NOTI_DAEMON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTI_DAEMON, SwayNotificationCenterNotiDaemonClass))

typedef struct _SwayNotificationCenterNotiDaemon SwayNotificationCenterNotiDaemon;
typedef struct _SwayNotificationCenterNotiDaemonClass SwayNotificationCenterNotiDaemonClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef void (*SwayNotificationCenterConfigModelModifyNode) (JsonNode* node, gpointer user_data);

#define SWAY_NOTIFICATION_CENTER_TYPE_CONTROL_CENTER (sway_notification_center_control_center_get_type ())
#define SWAY_NOTIFICATION_CENTER_CONTROL_CENTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_TYPE_CONTROL_CENTER, SwayNotificationCenterControlCenter))
#define SWAY_NOTIFICATION_CENTER_CONTROL_CENTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_TYPE_CONTROL_CENTER, SwayNotificationCenterControlCenterClass))
#define SWAY_NOTIFICATION_CENTER_IS_CONTROL_CENTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_TYPE_CONTROL_CENTER))
#define SWAY_NOTIFICATION_CENTER_IS_CONTROL_CENTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_TYPE_CONTROL_CENTER))
#define SWAY_NOTIFICATION_CENTER_CONTROL_CENTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_TYPE_CONTROL_CENTER, SwayNotificationCenterControlCenterClass))

typedef struct _SwayNotificationCenterControlCenter SwayNotificationCenterControlCenter;
typedef struct _SwayNotificationCenterControlCenterClass SwayNotificationCenterControlCenterClass;

#define SWAY_NOTIFICATION_CENTER_TYPE_CONFIG_MODEL (sway_notification_center_config_model_get_type ())
#define SWAY_NOTIFICATION_CENTER_CONFIG_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_TYPE_CONFIG_MODEL, SwayNotificationCenterConfigModel))
#define SWAY_NOTIFICATION_CENTER_CONFIG_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_TYPE_CONFIG_MODEL, SwayNotificationCenterConfigModelClass))
#define SWAY_NOTIFICATION_CENTER_IS_CONFIG_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_TYPE_CONFIG_MODEL))
#define SWAY_NOTIFICATION_CENTER_IS_CONFIG_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_TYPE_CONFIG_MODEL))
#define SWAY_NOTIFICATION_CENTER_CONFIG_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_TYPE_CONFIG_MODEL, SwayNotificationCenterConfigModelClass))

typedef struct _SwayNotificationCenterConfigModel SwayNotificationCenterConfigModel;
typedef struct _SwayNotificationCenterConfigModelClass SwayNotificationCenterConfigModelClass;

#define SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION (sway_notification_center_notification_get_type ())
#define SWAY_NOTIFICATION_CENTER_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION, SwayNotificationCenterNotification))
#define SWAY_NOTIFICATION_CENTER_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION, SwayNotificationCenterNotificationClass))
#define SWAY_NOTIFICATION_CENTER_IS_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION))
#define SWAY_NOTIFICATION_CENTER_IS_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION))
#define SWAY_NOTIFICATION_CENTER_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION, SwayNotificationCenterNotificationClass))

typedef struct _SwayNotificationCenterNotification SwayNotificationCenterNotification;
typedef struct _SwayNotificationCenterNotificationClass SwayNotificationCenterNotificationClass;
typedef gboolean (*SwayNotificationCenternotification_filter_func) (SwayNotificationCenterNotification* notification, gpointer user_data);
typedef enum  {
	SWAY_NOTIFICATION_CENTER_CLOSED_REASONS_EXPIRED = 1,
	SWAY_NOTIFICATION_CENTER_CLOSED_REASONS_DISMISSED = 2,
	SWAY_NOTIFICATION_CENTER_CLOSED_REASONS_CLOSED_BY_CLOSENOTIFICATION = 3,
	SWAY_NOTIFICATION_CENTER_CLOSED_REASONS_UNDEFINED = 4
} SwayNotificationCenterClosedReasons;

#define SWAY_NOTIFICATION_CENTER_TYPE_CLOSED_REASONS (sway_notification_center_closed_reasons_get_type ())

#define SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC (sway_notification_center_swaync_get_type ())
#define SWAY_NOTIFICATION_CENTER_SWAYNC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC, SwayNotificationCenterSwaync))
#define SWAY_NOTIFICATION_CENTER_SWAYNC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC, SwayNotificationCenterSwayncClass))
#define SWAY_NOTIFICATION_CENTER_IS_SWAYNC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC))
#define SWAY_NOTIFICATION_CENTER_IS_SWAYNC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC))
#define SWAY_NOTIFICATION_CENTER_SWAYNC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC, SwayNotificationCenterSwayncClass))

typedef struct _SwayNotificationCenterSwaync SwayNotificationCenterSwaync;
typedef struct _SwayNotificationCenterSwayncClass SwayNotificationCenterSwayncClass;
typedef struct _SwayNotificationCenterSwayncPrivate SwayNotificationCenterSwayncPrivate;

#define TYPE_XDG_ACTIVATION_HELPER (xdg_activation_helper_get_type ())
#define XDG_ACTIVATION_HELPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_XDG_ACTIVATION_HELPER, XdgActivationHelper))
#define XDG_ACTIVATION_HELPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_XDG_ACTIVATION_HELPER, XdgActivationHelperClass))
#define IS_XDG_ACTIVATION_HELPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_XDG_ACTIVATION_HELPER))
#define IS_XDG_ACTIVATION_HELPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_XDG_ACTIVATION_HELPER))
#define XDG_ACTIVATION_HELPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_XDG_ACTIVATION_HELPER, XdgActivationHelperClass))

typedef struct _XdgActivationHelper XdgActivationHelper;
typedef struct _XdgActivationHelperClass XdgActivationHelperClass;

#define SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION_WINDOW (sway_notification_center_notification_window_get_type ())
#define SWAY_NOTIFICATION_CENTER_NOTIFICATION_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION_WINDOW, SwayNotificationCenterNotificationWindow))
#define SWAY_NOTIFICATION_CENTER_NOTIFICATION_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION_WINDOW, SwayNotificationCenterNotificationWindowClass))
#define SWAY_NOTIFICATION_CENTER_IS_NOTIFICATION_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION_WINDOW))
#define SWAY_NOTIFICATION_CENTER_IS_NOTIFICATION_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION_WINDOW))
#define SWAY_NOTIFICATION_CENTER_NOTIFICATION_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWAY_NOTIFICATION_CENTER_TYPE_NOTIFICATION_WINDOW, SwayNotificationCenterNotificationWindowClass))

typedef struct _SwayNotificationCenterNotificationWindow SwayNotificationCenterNotificationWindow;
typedef struct _SwayNotificationCenterNotificationWindowClass SwayNotificationCenterNotificationWindowClass;
enum  {
	SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_CHANGED_SIGNAL,
	SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_SUBSCRIBE_V2_SIGNAL,
	SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_SUBSCRIBE_SIGNAL,
	SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_NUM_SIGNALS
};
static guint sway_notification_center_swaync_daemon_signals[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_NUM_SIGNALS] = {0};
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))

struct _SwayNotificationCenterData {
	gboolean dnd;
	gboolean cc_open;
	guint count;
	gboolean inhibited;
};

struct _SwayNotificationCenterSwayncDaemon {
	GObject parent_instance;
	SwayNotificationCenterSwayncDaemonPrivate * priv;
};

struct _SwayNotificationCenterSwayncDaemonClass {
	GObjectClass parent_class;
};

struct _SwayNotificationCenterSwayncDaemonPrivate {
	GHashTable* inhibitors;
	gboolean _inhibited;
};

struct _SwayNotificationCenterSwaync {
	GtkApplication parent_instance;
	SwayNotificationCenterSwayncPrivate * priv;
	gboolean use_layer_shell;
	gboolean has_layer_on_demand;
	XdgActivationHelper* xdg_activation;
};

struct _SwayNotificationCenterSwayncClass {
	GtkApplicationClass parent_class;
};

static gint SwayNotificationCenterSwayncDaemon_private_offset;
static gpointer sway_notification_center_swaync_daemon_parent_class = NULL;
VALA_EXTERN SwayNotificationCenterSwayncDaemon* sway_notification_center_swaync_daemon;
VALA_EXTERN SwayNotificationCenterNotiDaemon* sway_notification_center_noti_daemon;
VALA_EXTERN gchar* sway_notification_center_style_path;
VALA_EXTERN SwayNotificationCenterControlCenter* sway_notification_center_control_center;
VALA_EXTERN SwayNotificationCenterSwaync* sway_notification_center_app;
VALA_EXTERN SwayNotificationCenterNotificationWindow* sway_notification_center_floating_notifications;

VALA_EXTERN GType sway_notification_center_data_get_type (void) G_GNUC_CONST ;
VALA_EXTERN SwayNotificationCenterData* sway_notification_center_data_dup (const SwayNotificationCenterData* self);
VALA_EXTERN void sway_notification_center_data_free (SwayNotificationCenterData* self);
VALA_EXTERN GType sway_notification_center_swaync_daemon_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterSwayncDaemon, g_object_unref)
VALA_EXTERN guint sway_notification_center_swaync_daemon_register_object (void* object,
                                                              GDBusConnection* connection,
                                                              const gchar* path,
                                                              GError** error);
static void _g_free0_ (gpointer var);
VALA_EXTERN SwayNotificationCenterSwayncDaemon* sway_notification_center_swaync_daemon_new (void);
VALA_EXTERN SwayNotificationCenterSwayncDaemon* sway_notification_center_swaync_daemon_construct (GType object_type);
static void __lambda18_ (SwayNotificationCenterSwayncDaemon* self,
                  guint count,
                  gboolean dnd,
                  gboolean visible,
                  gboolean inhibited);
static void ___lambda18__sway_notification_center_swaync_daemon_subscribe_v2 (SwayNotificationCenterSwayncDaemon* _sender,
                                                                       guint count,
                                                                       gboolean dnd,
                                                                       gboolean cc_open,
                                                                       gboolean inhibited,
                                                                       gpointer self);
VALA_EXTERN void sway_notification_center_swaync_daemon_emit_subscribe (SwayNotificationCenterSwayncDaemon* self);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_get_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                         GError** error);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_get_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                                GError** error);
VALA_EXTERN GType sway_notification_center_noti_daemon_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterNotiDaemon, g_object_unref)
VALA_EXTERN guint sway_notification_center_noti_daemon_register_object (void* object,
                                                            GDBusConnection* connection,
                                                            const gchar* path,
                                                            GError** error);
VALA_EXTERN guint sway_notification_center_noti_daemon_get_n_notifications (SwayNotificationCenterNotiDaemon* self);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_get_inhibited (SwayNotificationCenterSwayncDaemon* self);
VALA_EXTERN void sway_notification_center_swaync_daemon_get_subscribe_data (SwayNotificationCenterSwayncDaemon* self,
                                                                SwayNotificationCenterData* result,
                                                                GError** error);
VALA_EXTERN guint sway_notification_center_swaync_daemon_notification_count (SwayNotificationCenterSwayncDaemon* self,
                                                                 GError** error);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_is_inhibited (SwayNotificationCenterSwayncDaemon* self,
                                                              GError** error);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_reload_css (SwayNotificationCenterSwayncDaemon* self,
                                                            GError** error);
VALA_EXTERN gboolean sway_notification_center_functions_load_css (const gchar* style_path);
VALA_EXTERN void sway_notification_center_swaync_daemon_reload_config (SwayNotificationCenterSwayncDaemon* self,
                                                           GError** error);
VALA_EXTERN void sway_notification_center_config_model_reload_config (SwayNotificationCenterConfigModelModifyNode modify_cb,
                                                          gpointer modify_cb_target);
static void _lambda15_ (void);
static void __lambda15__sway_notification_center_config_model_modify_node (JsonNode* node,
                                                                    gpointer self);
VALA_EXTERN GType sway_notification_center_control_center_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterControlCenter, g_object_unref)
VALA_EXTERN void sway_notification_center_control_center_add_widgets (SwayNotificationCenterControlCenter* self);
VALA_EXTERN void sway_notification_center_swaync_daemon_change_config_value (SwayNotificationCenterSwayncDaemon* self,
                                                                 const gchar* name,
                                                                 GVariant* value,
                                                                 gboolean write_to_file,
                                                                 const gchar* path,
                                                                 GError** error);
VALA_EXTERN GType sway_notification_center_config_model_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterConfigModel, g_object_unref)
VALA_EXTERN SwayNotificationCenterConfigModel* sway_notification_center_config_model_get_instance (void);
VALA_EXTERN void sway_notification_center_config_model_change_value (SwayNotificationCenterConfigModel* self,
                                                         const gchar* member_name,
                                                         GVariant* value,
                                                         gboolean write,
                                                         const gchar* path);
VALA_EXTERN gboolean sway_notification_center_control_center_get_visibility (SwayNotificationCenterControlCenter* self);
VALA_EXTERN void sway_notification_center_swaync_daemon_hide_latest_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                       gboolean close,
                                                                       GError** error);
VALA_EXTERN void sway_notification_center_noti_daemon_hide_latest_floating_notification (SwayNotificationCenterNotiDaemon* self,
                                                                             gboolean close);
VALA_EXTERN void sway_notification_center_swaync_daemon_hide_all_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                    GError** error);
VALA_EXTERN GType sway_notification_center_notification_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterNotification, g_object_unref)
VALA_EXTERN void sway_notification_center_noti_daemon_remove_all_floating_notifications (SwayNotificationCenterNotiDaemon* self,
                                                                             gboolean transition,
                                                                             SwayNotificationCenternotification_filter_func func,
                                                                             gpointer func_target);
VALA_EXTERN void sway_notification_center_swaync_daemon_close_all_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                     GError** error);
VALA_EXTERN GType sway_notification_center_closed_reasons_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void sway_notification_center_noti_daemon_request_dismiss_all_notifications (SwayNotificationCenterNotiDaemon* self,
                                                                             SwayNotificationCenterClosedReasons reason);
VALA_EXTERN void sway_notification_center_swaync_daemon_toggle_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                               GError** error);
VALA_EXTERN gboolean sway_notification_center_control_center_toggle_visibility (SwayNotificationCenterControlCenter* self);
VALA_EXTERN void sway_notification_center_swaync_daemon_set_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                            gboolean visibility,
                                                            GError** error);
VALA_EXTERN void sway_notification_center_control_center_set_visibility (SwayNotificationCenterControlCenter* self,
                                                             gboolean visibility);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_toggle_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                            GError** error);
VALA_EXTERN gboolean sway_notification_center_noti_daemon_get_dnd (SwayNotificationCenterNotiDaemon* self);
VALA_EXTERN void sway_notification_center_noti_daemon_set_dnd (SwayNotificationCenterNotiDaemon* self,
                                                   gboolean value);
VALA_EXTERN void sway_notification_center_swaync_daemon_set_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                     gboolean state,
                                                     GError** error);
VALA_EXTERN void sway_notification_center_swaync_daemon_close_notification (SwayNotificationCenterSwayncDaemon* self,
                                                                guint32 id,
                                                                GError** error);
VALA_EXTERN void sway_notification_center_noti_daemon_close_notification (SwayNotificationCenterNotiDaemon* self,
                                                              guint32 id,
                                                              GError** error);
VALA_EXTERN void sway_notification_center_swaync_daemon_latest_invoke_action (SwayNotificationCenterSwayncDaemon* self,
                                                                  guint32 action_index,
                                                                  GError** error);
VALA_EXTERN void sway_notification_center_noti_daemon_invoke_latest_floating_action (SwayNotificationCenterNotiDaemon* self,
                                                                         guint32 action_index);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_add_inhibitor (SwayNotificationCenterSwayncDaemon* self,
                                                               const gchar* application_id,
                                                               GError** error);
static void sway_notification_center_swaync_daemon_set_inhibited (SwayNotificationCenterSwayncDaemon* self,
                                                           gboolean value);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_remove_inhibitor (SwayNotificationCenterSwayncDaemon* self,
                                                                  const gchar* application_id,
                                                                  GError** error);
VALA_EXTERN guint sway_notification_center_swaync_daemon_number_of_inhibitors (SwayNotificationCenterSwayncDaemon* self,
                                                                   GError** error);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_clear_inhibitors (SwayNotificationCenterSwayncDaemon* self,
                                                                  GError** error);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_set_cc_monitor (SwayNotificationCenterSwayncDaemon* self,
                                                                const gchar* name,
                                                                GError** error);
VALA_EXTERN GType sway_notification_center_swaync_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterSwaync, g_object_unref)
VALA_EXTERN GType xdg_activation_helper_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (XdgActivationHelper, g_object_unref)
VALA_EXTERN GdkMonitor* sway_notification_center_functions_try_get_monitor (const gchar* name);
VALA_EXTERN void sway_notification_center_control_center_set_monitor (SwayNotificationCenterControlCenter* self,
                                                          GdkMonitor* monitor);
VALA_EXTERN gboolean sway_notification_center_swaync_daemon_set_noti_window_monitor (SwayNotificationCenterSwayncDaemon* self,
                                                                         const gchar* name,
                                                                         GError** error);
VALA_EXTERN GType sway_notification_center_notification_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SwayNotificationCenterNotificationWindow, g_object_unref)
VALA_EXTERN void sway_notification_center_notification_window_set_monitor (SwayNotificationCenterNotificationWindow* self,
                                                               GdkMonitor* monitor);
static void g_cclosure_user_marshal_VOID__UINT_BOOLEAN_BOOLEAN_BOOLEAN (GClosure * closure,
                                                                 GValue * return_value,
                                                                 guint n_param_values,
                                                                 const GValue * param_values,
                                                                 gpointer invocation_hint,
                                                                 gpointer marshal_data);
static void g_cclosure_user_marshal_VOID__UINT_BOOLEAN_BOOLEAN (GClosure * closure,
                                                         GValue * return_value,
                                                         guint n_param_values,
                                                         const GValue * param_values,
                                                         gpointer invocation_hint,
                                                         gpointer marshal_data);
static void sway_notification_center_swaync_daemon_finalize (GObject * obj);
static GType sway_notification_center_swaync_daemon_get_type_once (void);
static void _vala_sway_notification_center_swaync_daemon_get_property (GObject * object,
                                                                guint property_id,
                                                                GValue * value,
                                                                GParamSpec * pspec);
static void _vala_sway_notification_center_swaync_daemon_set_property (GObject * object,
                                                                guint property_id,
                                                                const GValue * value,
                                                                GParamSpec * pspec);
static void _dbus_sway_notification_center_swaync_daemon_get_subscribe_data (SwayNotificationCenterSwayncDaemon* self,
                                                                      GVariant* _parameters_,
                                                                      GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_reload_css (SwayNotificationCenterSwayncDaemon* self,
                                                              GVariant* _parameters_,
                                                              GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_reload_config (SwayNotificationCenterSwayncDaemon* self,
                                                                 GVariant* _parameters_,
                                                                 GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_change_config_value (SwayNotificationCenterSwayncDaemon* self,
                                                                       GVariant* _parameters_,
                                                                       GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_get_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                                  GVariant* _parameters_,
                                                                  GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_hide_latest_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                             GVariant* _parameters_,
                                                                             GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_hide_all_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                          GVariant* _parameters_,
                                                                          GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_close_all_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                           GVariant* _parameters_,
                                                                           GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_notification_count (SwayNotificationCenterSwayncDaemon* self,
                                                                      GVariant* _parameters_,
                                                                      GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_toggle_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                                     GVariant* _parameters_,
                                                                     GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_set_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                                  GVariant* _parameters_,
                                                                  GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_toggle_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                              GVariant* _parameters_,
                                                              GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_set_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                           GVariant* _parameters_,
                                                           GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_get_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                           GVariant* _parameters_,
                                                           GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_close_notification (SwayNotificationCenterSwayncDaemon* self,
                                                                      GVariant* _parameters_,
                                                                      GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_latest_invoke_action (SwayNotificationCenterSwayncDaemon* self,
                                                                        GVariant* _parameters_,
                                                                        GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_add_inhibitor (SwayNotificationCenterSwayncDaemon* self,
                                                                 GVariant* _parameters_,
                                                                 GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_remove_inhibitor (SwayNotificationCenterSwayncDaemon* self,
                                                                    GVariant* _parameters_,
                                                                    GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_number_of_inhibitors (SwayNotificationCenterSwayncDaemon* self,
                                                                        GVariant* _parameters_,
                                                                        GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_is_inhibited (SwayNotificationCenterSwayncDaemon* self,
                                                                GVariant* _parameters_,
                                                                GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_clear_inhibitors (SwayNotificationCenterSwayncDaemon* self,
                                                                    GVariant* _parameters_,
                                                                    GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_set_cc_monitor (SwayNotificationCenterSwayncDaemon* self,
                                                                  GVariant* _parameters_,
                                                                  GDBusMethodInvocation* invocation);
static void _dbus_sway_notification_center_swaync_daemon_set_noti_window_monitor (SwayNotificationCenterSwayncDaemon* self,
                                                                           GVariant* _parameters_,
                                                                           GDBusMethodInvocation* invocation);
static void sway_notification_center_swaync_daemon_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* sway_notification_center_swaync_daemon_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 GVariant* _dbus_sway_notification_center_swaync_daemon_get_inhibited (SwayNotificationCenterSwayncDaemon* self);
static gboolean sway_notification_center_swaync_daemon_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 _dbus_sway_notification_center_swaync_daemon_set_inhibited (SwayNotificationCenterSwayncDaemon* self,
                                                                 GVariant* _value);
static void _dbus_sway_notification_center_swaync_daemon_subscribe_v2 (GObject* _sender,
                                                                guint count,
                                                                gboolean dnd,
                                                                gboolean cc_open,
                                                                gboolean inhibited,
                                                                gpointer* _data);
static void _dbus_sway_notification_center_swaync_daemon_subscribe (GObject* _sender,
                                                             guint count,
                                                             gboolean dnd,
                                                             gboolean cc_open,
                                                             gpointer* _data);
static void _sway_notification_center_swaync_daemon_unregister_object (gpointer user_data);

static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_get_subscribe_data_result = {-1, "result", "(bbub)", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_get_subscribe_data_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_get_subscribe_data_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_get_subscribe_data_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_get_subscribe_data = {-1, "GetSubscribeData", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_get_subscribe_data_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_get_subscribe_data_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_reload_css_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_reload_css_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_reload_css_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_reload_css_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_reload_css = {-1, "ReloadCss", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_reload_css_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_reload_css_out), NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_reload_config_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_reload_config_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_reload_config = {-1, "ReloadConfig", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_reload_config_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_reload_config_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_name = {-1, "name", "s", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_value = {-1, "value", "v", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_write_to_file = {-1, "write_to_file", "b", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_path = {-1, "path", "s", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_name, &_sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_value, &_sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_write_to_file, &_sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_path, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_change_config_value = {-1, "ChangeConfigValue", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_change_config_value_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_get_visibility_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_get_visibility_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_get_visibility_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_get_visibility_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_get_visibility = {-1, "GetVisibility", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_get_visibility_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_get_visibility_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_hide_latest_notifications_close = {-1, "close", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_hide_latest_notifications_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_hide_latest_notifications_close, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_hide_latest_notifications_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_hide_latest_notifications = {-1, "HideLatestNotifications", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_hide_latest_notifications_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_hide_latest_notifications_out), NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_hide_all_notifications_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_hide_all_notifications_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_hide_all_notifications = {-1, "HideAllNotifications", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_hide_all_notifications_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_hide_all_notifications_out), NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_close_all_notifications_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_close_all_notifications_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_close_all_notifications = {-1, "CloseAllNotifications", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_close_all_notifications_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_close_all_notifications_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_notification_count_result = {-1, "result", "u", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_notification_count_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_notification_count_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_notification_count_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_notification_count = {-1, "NotificationCount", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_notification_count_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_notification_count_out), NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_toggle_visibility_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_toggle_visibility_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_toggle_visibility = {-1, "ToggleVisibility", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_toggle_visibility_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_toggle_visibility_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_set_visibility_visibility = {-1, "visibility", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_set_visibility_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_set_visibility_visibility, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_set_visibility_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_set_visibility = {-1, "SetVisibility", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_set_visibility_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_set_visibility_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_toggle_dnd_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_toggle_dnd_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_toggle_dnd_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_toggle_dnd_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_toggle_dnd = {-1, "ToggleDnd", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_toggle_dnd_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_toggle_dnd_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_set_dnd_state = {-1, "state", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_set_dnd_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_set_dnd_state, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_set_dnd_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_set_dnd = {-1, "SetDnd", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_set_dnd_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_set_dnd_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_get_dnd_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_get_dnd_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_get_dnd_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_get_dnd_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_get_dnd = {-1, "GetDnd", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_get_dnd_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_get_dnd_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_close_notification_id = {-1, "id", "u", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_close_notification_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_close_notification_id, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_close_notification_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_close_notification = {-1, "CloseNotification", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_close_notification_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_close_notification_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_latest_invoke_action_action_index = {-1, "action_index", "u", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_latest_invoke_action_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_latest_invoke_action_action_index, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_latest_invoke_action_out[] = {NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_latest_invoke_action = {-1, "LatestInvokeAction", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_latest_invoke_action_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_latest_invoke_action_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_add_inhibitor_application_id = {-1, "application_id", "s", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_add_inhibitor_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_add_inhibitor_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_add_inhibitor_application_id, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_add_inhibitor_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_add_inhibitor_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_add_inhibitor = {-1, "AddInhibitor", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_add_inhibitor_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_add_inhibitor_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_remove_inhibitor_application_id = {-1, "application_id", "s", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_remove_inhibitor_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_remove_inhibitor_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_remove_inhibitor_application_id, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_remove_inhibitor_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_remove_inhibitor_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_remove_inhibitor = {-1, "RemoveInhibitor", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_remove_inhibitor_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_remove_inhibitor_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_number_of_inhibitors_result = {-1, "result", "u", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_number_of_inhibitors_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_number_of_inhibitors_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_number_of_inhibitors_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_number_of_inhibitors = {-1, "NumberOfInhibitors", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_number_of_inhibitors_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_number_of_inhibitors_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_is_inhibited_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_is_inhibited_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_is_inhibited_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_is_inhibited_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_is_inhibited = {-1, "IsInhibited", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_is_inhibited_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_is_inhibited_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_clear_inhibitors_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_clear_inhibitors_in[] = {NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_clear_inhibitors_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_clear_inhibitors_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_clear_inhibitors = {-1, "ClearInhibitors", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_clear_inhibitors_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_clear_inhibitors_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_set_cc_monitor_name = {-1, "name", "s", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_set_cc_monitor_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_set_cc_monitor_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_set_cc_monitor_name, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_set_cc_monitor_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_set_cc_monitor_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_set_cc_monitor = {-1, "SetCcMonitor", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_set_cc_monitor_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_set_cc_monitor_out), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_set_noti_window_monitor_name = {-1, "name", "s", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_set_noti_window_monitor_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_set_noti_window_monitor_in[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_set_noti_window_monitor_name, NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_set_noti_window_monitor_out[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_set_noti_window_monitor_result, NULL};
static const GDBusMethodInfo _sway_notification_center_swaync_daemon_dbus_method_info_set_noti_window_monitor = {-1, "SetNotiWindowMonitor", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_set_noti_window_monitor_in), (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_set_noti_window_monitor_out), NULL};
static const GDBusMethodInfo * const _sway_notification_center_swaync_daemon_dbus_method_info[] = {&_sway_notification_center_swaync_daemon_dbus_method_info_get_subscribe_data, &_sway_notification_center_swaync_daemon_dbus_method_info_reload_css, &_sway_notification_center_swaync_daemon_dbus_method_info_reload_config, &_sway_notification_center_swaync_daemon_dbus_method_info_change_config_value, &_sway_notification_center_swaync_daemon_dbus_method_info_get_visibility, &_sway_notification_center_swaync_daemon_dbus_method_info_hide_latest_notifications, &_sway_notification_center_swaync_daemon_dbus_method_info_hide_all_notifications, &_sway_notification_center_swaync_daemon_dbus_method_info_close_all_notifications, &_sway_notification_center_swaync_daemon_dbus_method_info_notification_count, &_sway_notification_center_swaync_daemon_dbus_method_info_toggle_visibility, &_sway_notification_center_swaync_daemon_dbus_method_info_set_visibility, &_sway_notification_center_swaync_daemon_dbus_method_info_toggle_dnd, &_sway_notification_center_swaync_daemon_dbus_method_info_set_dnd, &_sway_notification_center_swaync_daemon_dbus_method_info_get_dnd, &_sway_notification_center_swaync_daemon_dbus_method_info_close_notification, &_sway_notification_center_swaync_daemon_dbus_method_info_latest_invoke_action, &_sway_notification_center_swaync_daemon_dbus_method_info_add_inhibitor, &_sway_notification_center_swaync_daemon_dbus_method_info_remove_inhibitor, &_sway_notification_center_swaync_daemon_dbus_method_info_number_of_inhibitors, &_sway_notification_center_swaync_daemon_dbus_method_info_is_inhibited, &_sway_notification_center_swaync_daemon_dbus_method_info_clear_inhibitors, &_sway_notification_center_swaync_daemon_dbus_method_info_set_cc_monitor, &_sway_notification_center_swaync_daemon_dbus_method_info_set_noti_window_monitor, NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2_count = {-1, "count", "u", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2_dnd = {-1, "dnd", "b", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2_cc_open = {-1, "cc_open", "b", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2_inhibited = {-1, "inhibited", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2_count, &_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2_dnd, &_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2_cc_open, &_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2_inhibited, NULL};
static const GDBusSignalInfo _sway_notification_center_swaync_daemon_dbus_signal_info_subscribe_v2 = {-1, "SubscribeV2", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_v2), NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_count = {-1, "count", "u", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_dnd = {-1, "dnd", "b", NULL};
static const GDBusArgInfo _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_cc_open = {-1, "cc_open", "b", NULL};
static const GDBusArgInfo * const _sway_notification_center_swaync_daemon_dbus_arg_info_subscribe[] = {&_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_count, &_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_dnd, &_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe_cc_open, NULL};
static const GDBusSignalInfo _sway_notification_center_swaync_daemon_dbus_signal_info_subscribe = {-1, "Subscribe", (GDBusArgInfo **) (&_sway_notification_center_swaync_daemon_dbus_arg_info_subscribe), NULL};
static const GDBusSignalInfo * const _sway_notification_center_swaync_daemon_dbus_signal_info[] = {&_sway_notification_center_swaync_daemon_dbus_signal_info_subscribe_v2, &_sway_notification_center_swaync_daemon_dbus_signal_info_subscribe, NULL};
static const GDBusPropertyInfo _sway_notification_center_swaync_daemon_dbus_property_info_inhibited = {-1, "Inhibited", "b", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo * const _sway_notification_center_swaync_daemon_dbus_property_info[] = {&_sway_notification_center_swaync_daemon_dbus_property_info_inhibited, NULL};
static const GDBusInterfaceInfo _sway_notification_center_swaync_daemon_dbus_interface_info = {-1, "org.erikreider.swaync.cc", (GDBusMethodInfo **) (&_sway_notification_center_swaync_daemon_dbus_method_info), (GDBusSignalInfo **) (&_sway_notification_center_swaync_daemon_dbus_signal_info), (GDBusPropertyInfo **) (&_sway_notification_center_swaync_daemon_dbus_property_info), NULL};
static const GDBusInterfaceVTable _sway_notification_center_swaync_daemon_dbus_interface_vtable = {sway_notification_center_swaync_daemon_dbus_interface_method_call, sway_notification_center_swaync_daemon_dbus_interface_get_property, sway_notification_center_swaync_daemon_dbus_interface_set_property};

SwayNotificationCenterData*
sway_notification_center_data_dup (const SwayNotificationCenterData* self)
{
	SwayNotificationCenterData* dup;
	dup = g_new0 (SwayNotificationCenterData, 1);
	memcpy (dup, self, sizeof (SwayNotificationCenterData));
	return dup;
}

void
sway_notification_center_data_free (SwayNotificationCenterData* self)
{
	g_free (self);
}

 G_GNUC_NO_INLINE static GType
sway_notification_center_data_get_type_once (void)
{
	GType sway_notification_center_data_type_id;
	sway_notification_center_data_type_id = g_boxed_type_register_static ("SwayNotificationCenterData", (GBoxedCopyFunc) sway_notification_center_data_dup, (GBoxedFreeFunc) sway_notification_center_data_free);
	return sway_notification_center_data_type_id;
}

GType
sway_notification_center_data_get_type (void)
{
	static gsize sway_notification_center_data_type_id__once = 0;
	if (g_once_init_enter (&sway_notification_center_data_type_id__once)) {
		GType sway_notification_center_data_type_id;
		sway_notification_center_data_type_id = sway_notification_center_data_get_type_once ();
		g_once_init_leave (&sway_notification_center_data_type_id__once, sway_notification_center_data_type_id);
	}
	return sway_notification_center_data_type_id__once;
}

static inline gpointer
sway_notification_center_swaync_daemon_get_instance_private (SwayNotificationCenterSwayncDaemon* self)
{
	return G_STRUCT_MEMBER_P (self, SwayNotificationCenterSwayncDaemon_private_offset);
}

static void
_g_free0_ (gpointer var)
{
	var = (g_free (var), NULL);
}

static gchar*
bool_to_string (gboolean self)
{
	gchar* result;
	if (self) {
		gchar* _tmp0_;
		_tmp0_ = g_strdup ("true");
		result = _tmp0_;
		return result;
	} else {
		gchar* _tmp1_;
		_tmp1_ = g_strdup ("false");
		result = _tmp1_;
		return result;
	}
}

static void
__lambda18_ (SwayNotificationCenterSwayncDaemon* self,
             guint count,
             gboolean dnd,
             gboolean visible,
             gboolean inhibited)
{
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	_tmp0_ = bool_to_string (dnd);
	_tmp1_ = _tmp0_;
	_tmp2_ = bool_to_string (visible);
	_tmp3_ = _tmp2_;
	_tmp4_ = bool_to_string (inhibited);
	_tmp5_ = _tmp4_;
	g_debug ("swayncDaemon.vala:17: Emitted subscribe_v2: %u, %s, %s, %s", count, _tmp1_, _tmp3_, _tmp5_);
	_g_free0 (_tmp5_);
	_g_free0 (_tmp3_);
	_g_free0 (_tmp1_);
}

static void
___lambda18__sway_notification_center_swaync_daemon_subscribe_v2 (SwayNotificationCenterSwayncDaemon* _sender,
                                                                  guint count,
                                                                  gboolean dnd,
                                                                  gboolean cc_open,
                                                                  gboolean inhibited,
                                                                  gpointer self)
{
	__lambda18_ ((SwayNotificationCenterSwayncDaemon*) self, count, dnd, cc_open, inhibited);
}

SwayNotificationCenterSwayncDaemon*
sway_notification_center_swaync_daemon_construct (GType object_type)
{
	SwayNotificationCenterSwayncDaemon * self = NULL;
	self = (SwayNotificationCenterSwayncDaemon*) g_object_new (object_type, NULL);
	g_signal_connect_object (self, "subscribe-v2", (GCallback) ___lambda18__sway_notification_center_swaync_daemon_subscribe_v2, self, 0);
	return self;
}

SwayNotificationCenterSwayncDaemon*
sway_notification_center_swaync_daemon_new (void)
{
	return sway_notification_center_swaync_daemon_construct (SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON);
}

inline void
sway_notification_center_swaync_daemon_emit_subscribe (SwayNotificationCenterSwayncDaemon* self)
{
	GError* _inner_error0_ = NULL;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	{
		gboolean _tmp0_ = FALSE;
		gboolean _tmp1_ = FALSE;
		SwayNotificationCenterSwayncDaemon* _tmp2_;
		SwayNotificationCenterNotiDaemon* _tmp3_;
		guint _tmp4_;
		guint _tmp5_;
		gboolean _tmp6_;
		_tmp0_ = sway_notification_center_swaync_daemon_get_dnd (self, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		_tmp1_ = sway_notification_center_swaync_daemon_get_visibility (self, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
		_tmp2_ = sway_notification_center_swaync_daemon;
		_tmp3_ = sway_notification_center_noti_daemon;
		_tmp4_ = sway_notification_center_noti_daemon_get_n_notifications (_tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = self->priv->_inhibited;
		g_signal_emit (_tmp2_, sway_notification_center_swaync_daemon_signals[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_SUBSCRIBE_V2_SIGNAL], 0, _tmp5_, _tmp0_, _tmp1_, _tmp6_);
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		FILE* _tmp7_;
		GError* _tmp8_;
		const gchar* _tmp9_;
		gchar* _tmp10_;
		gchar* _tmp11_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp7_ = stderr;
		_tmp8_ = e;
		_tmp9_ = _tmp8_->message;
		_tmp10_ = g_strconcat (_tmp9_, "\n", NULL);
		_tmp11_ = _tmp10_;
		fprintf (_tmp7_, "%s", _tmp11_);
		_g_free0 (_tmp11_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		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);
		g_clear_error (&_inner_error0_);
		return;
	}
}

/** Gets subscribe data but in one call */
inline void
sway_notification_center_swaync_daemon_get_subscribe_data (SwayNotificationCenterSwayncDaemon* self,
                                                           SwayNotificationCenterData* result,
                                                           GError** error)
{
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	guint _tmp2_ = 0U;
	gboolean _tmp3_ = FALSE;
	SwayNotificationCenterData _tmp4_ = {0};
	GError* _inner_error0_ = NULL;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_swaync_daemon_get_dnd (self, &_inner_error0_);
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return;
	}
	_tmp1_ = sway_notification_center_swaync_daemon_get_visibility (self, &_inner_error0_);
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return;
	}
	_tmp2_ = sway_notification_center_swaync_daemon_notification_count (self, &_inner_error0_);
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return;
	}
	_tmp3_ = sway_notification_center_swaync_daemon_is_inhibited (self, &_inner_error0_);
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_propagate_error (error, _inner_error0_);
		return;
	}
	memset (&_tmp4_, 0, sizeof (SwayNotificationCenterData));
	_tmp4_.dnd = _tmp0_;
	_tmp4_.cc_open = _tmp1_;
	_tmp4_.count = _tmp2_;
	_tmp4_.inhibited = _tmp3_;
	*result = _tmp4_;
	return;
}

/** Reloads the CSS file */
gboolean
sway_notification_center_swaync_daemon_reload_css (SwayNotificationCenterSwayncDaemon* self,
                                                   GError** error)
{
	gboolean _result_ = FALSE;
	const gchar* _tmp0_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	_tmp0_ = sway_notification_center_style_path;
	_result_ = sway_notification_center_functions_load_css (_tmp0_);
	result = _result_;
	return result;
}

/** Reloads the config file */
static void
_lambda15_ (void)
{
}

static void
__lambda15__sway_notification_center_config_model_modify_node (JsonNode* node,
                                                               gpointer self)
{
	_lambda15_ ();
}

void
sway_notification_center_swaync_daemon_reload_config (SwayNotificationCenterSwayncDaemon* self,
                                                      GError** error)
{
	SwayNotificationCenterControlCenter* _tmp0_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	g_print ("\n");
	g_message ("swayncDaemon.vala:66: Reloading config\n");
	sway_notification_center_config_model_reload_config (__lambda15__sway_notification_center_config_model_modify_node, self);
	_tmp0_ = sway_notification_center_control_center;
	sway_notification_center_control_center_add_widgets (_tmp0_);
}

/**
         * Changes `name` to `value`.
         *
         * If `write_to_file` is True, it will write to the users
         * config file (`~/.config/swaync/config.json`) or `path`
         * if it's a valid path. Otherwise the changes will only
         * apply to the current instance.
         */
inline void
sway_notification_center_swaync_daemon_change_config_value (SwayNotificationCenterSwayncDaemon* self,
                                                            const gchar* name,
                                                            GVariant* value,
                                                            gboolean write_to_file,
                                                            const gchar* path,
                                                            GError** error)
{
	SwayNotificationCenterConfigModel* _tmp0_;
	SwayNotificationCenterConfigModel* _tmp1_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	g_return_if_fail (name != NULL);
	g_return_if_fail (value != NULL);
	_tmp0_ = sway_notification_center_config_model_get_instance ();
	_tmp1_ = _tmp0_;
	sway_notification_center_config_model_change_value (_tmp1_, name, value, write_to_file, path);
}

/** Gets the Control Center visibility */
inline gboolean
sway_notification_center_swaync_daemon_get_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                       GError** error)
{
	SwayNotificationCenterControlCenter* _tmp0_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	_tmp0_ = sway_notification_center_control_center;
	result = sway_notification_center_control_center_get_visibility (_tmp0_);
	return result;
}

/** Closes latest popup notification */
inline void
sway_notification_center_swaync_daemon_hide_latest_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                  gboolean close,
                                                                  GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_noti_daemon;
	sway_notification_center_noti_daemon_hide_latest_floating_notification (_tmp0_, close);
}

/** Hides all popup notifications (closes transient) */
inline void
sway_notification_center_swaync_daemon_hide_all_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                               GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_noti_daemon;
	sway_notification_center_noti_daemon_remove_all_floating_notifications (_tmp0_, TRUE, NULL, NULL);
}

/** Closes all popup and Control Center notifications */
inline void
sway_notification_center_swaync_daemon_close_all_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_noti_daemon;
	sway_notification_center_noti_daemon_request_dismiss_all_notifications (_tmp0_, SWAY_NOTIFICATION_CENTER_CLOSED_REASONS_DISMISSED);
}

/** Gets the current Control Center notification count */
inline guint
sway_notification_center_swaync_daemon_notification_count (SwayNotificationCenterSwayncDaemon* self,
                                                           GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	guint _tmp1_;
	guint _tmp2_;
	guint result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), 0U);
	_tmp0_ = sway_notification_center_noti_daemon;
	_tmp1_ = sway_notification_center_noti_daemon_get_n_notifications (_tmp0_);
	_tmp2_ = _tmp1_;
	result = _tmp2_;
	return result;
}

/** Toggles the visibility of the Control Center */
void
sway_notification_center_swaync_daemon_toggle_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                          GError** error)
{
	SwayNotificationCenterControlCenter* _tmp0_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_control_center;
	if (sway_notification_center_control_center_toggle_visibility (_tmp0_)) {
		SwayNotificationCenterNotiDaemon* _tmp1_;
		_tmp1_ = sway_notification_center_noti_daemon;
		sway_notification_center_noti_daemon_remove_all_floating_notifications (_tmp1_, FALSE, NULL, NULL);
	}
}

/** Sets the visibility of the Control Center */
void
sway_notification_center_swaync_daemon_set_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                       gboolean visibility,
                                                       GError** error)
{
	SwayNotificationCenterControlCenter* _tmp0_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_control_center;
	sway_notification_center_control_center_set_visibility (_tmp0_, visibility);
	if (visibility) {
		SwayNotificationCenterNotiDaemon* _tmp1_;
		_tmp1_ = sway_notification_center_noti_daemon;
		sway_notification_center_noti_daemon_remove_all_floating_notifications (_tmp1_, FALSE, NULL, NULL);
	}
}

/** Toggles the current Do Not Disturb state */
inline gboolean
sway_notification_center_swaync_daemon_toggle_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                   GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	SwayNotificationCenterNotiDaemon* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	SwayNotificationCenterNotiDaemon* _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	_tmp0_ = sway_notification_center_noti_daemon;
	_tmp1_ = sway_notification_center_noti_daemon;
	_tmp2_ = sway_notification_center_noti_daemon_get_dnd (_tmp1_);
	_tmp3_ = _tmp2_;
	sway_notification_center_noti_daemon_set_dnd (_tmp0_, !_tmp3_);
	_tmp4_ = sway_notification_center_noti_daemon;
	_tmp5_ = sway_notification_center_noti_daemon_get_dnd (_tmp4_);
	_tmp6_ = _tmp5_;
	result = _tmp6_;
	return result;
}

/** Sets the current Do Not Disturb state */
inline void
sway_notification_center_swaync_daemon_set_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                gboolean state,
                                                GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_noti_daemon;
	sway_notification_center_noti_daemon_set_dnd (_tmp0_, state);
}

/** Gets the current Do Not Disturb state */
inline gboolean
sway_notification_center_swaync_daemon_get_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	_tmp0_ = sway_notification_center_noti_daemon;
	_tmp1_ = sway_notification_center_noti_daemon_get_dnd (_tmp0_);
	_tmp2_ = _tmp1_;
	result = _tmp2_;
	return result;
}

/** Closes a specific notification with the `id` */
inline void
sway_notification_center_swaync_daemon_close_notification (SwayNotificationCenterSwayncDaemon* self,
                                                           guint32 id,
                                                           GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_noti_daemon;
	sway_notification_center_noti_daemon_close_notification (_tmp0_, id, &_inner_error0_);
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		if ((_inner_error0_->domain == G_DBUS_ERROR) || (_inner_error0_->domain == G_IO_ERROR)) {
			g_propagate_error (error, _inner_error0_);
			return;
		} else {
			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);
			g_clear_error (&_inner_error0_);
			return;
		}
	}
}

/** Activates the `action_index` action of the latest floating notification */
inline void
sway_notification_center_swaync_daemon_latest_invoke_action (SwayNotificationCenterSwayncDaemon* self,
                                                             guint32 action_index,
                                                             GError** error)
{
	SwayNotificationCenterNotiDaemon* _tmp0_;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	_tmp0_ = sway_notification_center_noti_daemon;
	sway_notification_center_noti_daemon_invoke_latest_floating_action (_tmp0_, action_index);
}

/**
         * Adds an inhibitor with the Application ID
         * (ex: "org.erikreider.swaysettings", "swayidle", etc...).
         *
         * @return  false if the `application_id` already exists, otherwise true.
         */
gboolean
sway_notification_center_swaync_daemon_add_inhibitor (SwayNotificationCenterSwayncDaemon* self,
                                                      const gchar* application_id,
                                                      GError** error)
{
	GHashTable* _tmp0_;
	GHashTable* _tmp1_;
	gchar* _tmp2_;
	GHashTable* _tmp3_;
	guint _tmp4_;
	guint _tmp5_;
	GHashTable* _tmp6_;
	guint _tmp7_;
	guint _tmp8_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	g_return_val_if_fail (application_id != NULL, FALSE);
	_tmp0_ = self->priv->inhibitors;
	if (g_hash_table_contains (_tmp0_, application_id)) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->inhibitors;
	_tmp2_ = g_strdup (application_id);
	g_hash_table_add (_tmp1_, _tmp2_);
	_tmp3_ = self->priv->inhibitors;
	_tmp4_ = g_hash_table_size (_tmp3_);
	_tmp5_ = _tmp4_;
	sway_notification_center_swaync_daemon_set_inhibited (self, _tmp5_ > ((guint) 0));
	_tmp6_ = self->priv->inhibitors;
	_tmp7_ = g_hash_table_size (_tmp6_);
	_tmp8_ = _tmp7_;
	g_signal_emit (self, sway_notification_center_swaync_daemon_signals[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_CHANGED_SIGNAL], 0, _tmp8_);
	sway_notification_center_swaync_daemon_emit_subscribe (self);
	result = TRUE;
	return result;
}

/**
         * Removes an inhibitor with the Application ID
         * (ex: "org.erikreider.swaysettings", "swayidle", etc...).
         *
         * @return  false if the `application_id` doesn't exist, otherwise true
         */
gboolean
sway_notification_center_swaync_daemon_remove_inhibitor (SwayNotificationCenterSwayncDaemon* self,
                                                         const gchar* application_id,
                                                         GError** error)
{
	GHashTable* _tmp0_;
	GHashTable* _tmp1_;
	guint _tmp2_;
	guint _tmp3_;
	GHashTable* _tmp4_;
	guint _tmp5_;
	guint _tmp6_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	g_return_val_if_fail (application_id != NULL, FALSE);
	_tmp0_ = self->priv->inhibitors;
	if (!g_hash_table_remove (_tmp0_, application_id)) {
		result = FALSE;
		return result;
	}
	_tmp1_ = self->priv->inhibitors;
	_tmp2_ = g_hash_table_size (_tmp1_);
	_tmp3_ = _tmp2_;
	sway_notification_center_swaync_daemon_set_inhibited (self, _tmp3_ > ((guint) 0));
	_tmp4_ = self->priv->inhibitors;
	_tmp5_ = g_hash_table_size (_tmp4_);
	_tmp6_ = _tmp5_;
	g_signal_emit (self, sway_notification_center_swaync_daemon_signals[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_CHANGED_SIGNAL], 0, _tmp6_);
	sway_notification_center_swaync_daemon_emit_subscribe (self);
	result = TRUE;
	return result;
}

/** Get the number of inhibitors */
inline guint
sway_notification_center_swaync_daemon_number_of_inhibitors (SwayNotificationCenterSwayncDaemon* self,
                                                             GError** error)
{
	GHashTable* _tmp0_;
	guint _tmp1_;
	guint _tmp2_;
	guint result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), 0U);
	_tmp0_ = self->priv->inhibitors;
	_tmp1_ = g_hash_table_size (_tmp0_);
	_tmp2_ = _tmp1_;
	result = _tmp2_;
	return result;
}

/** Get if is inhibited */
inline gboolean
sway_notification_center_swaync_daemon_is_inhibited (SwayNotificationCenterSwayncDaemon* self,
                                                     GError** error)
{
	gboolean _tmp0_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	_tmp0_ = self->priv->_inhibited;
	result = _tmp0_;
	return result;
}

/** Clear all inhibitors */
gboolean
sway_notification_center_swaync_daemon_clear_inhibitors (SwayNotificationCenterSwayncDaemon* self,
                                                         GError** error)
{
	GHashTable* _tmp0_;
	guint _tmp1_;
	guint _tmp2_;
	GHashTable* _tmp3_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	_tmp0_ = self->priv->inhibitors;
	_tmp1_ = g_hash_table_size (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_ == ((guint) 0)) {
		result = FALSE;
		return result;
	}
	_tmp3_ = self->priv->inhibitors;
	g_hash_table_remove_all (_tmp3_);
	sway_notification_center_swaync_daemon_set_inhibited (self, FALSE);
	g_signal_emit (self, sway_notification_center_swaync_daemon_signals[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_CHANGED_SIGNAL], 0, (guint) 0);
	sway_notification_center_swaync_daemon_emit_subscribe (self);
	result = TRUE;
	return result;
}

gboolean
sway_notification_center_swaync_daemon_set_cc_monitor (SwayNotificationCenterSwayncDaemon* self,
                                                       const gchar* name,
                                                       GError** error)
{
	SwayNotificationCenterSwaync* _tmp0_;
	GdkMonitor* monitor = NULL;
	GdkMonitor* _tmp1_;
	GdkMonitor* _tmp2_;
	SwayNotificationCenterControlCenter* _tmp3_;
	GdkMonitor* _tmp4_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	g_return_val_if_fail (name != NULL, FALSE);
	_tmp0_ = sway_notification_center_app;
	if (!_tmp0_->use_layer_shell) {
		g_critical ("swayncDaemon.vala:214: %s", "Setting Control Center monitor isn't supported " "when layer shell is disabled!");
		result = FALSE;
		return result;
	}
	_tmp1_ = sway_notification_center_functions_try_get_monitor (name);
	monitor = _tmp1_;
	_tmp2_ = monitor;
	if (_tmp2_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp3_ = sway_notification_center_control_center;
	_tmp4_ = monitor;
	sway_notification_center_control_center_set_monitor (_tmp3_, _tmp4_);
	result = TRUE;
	return result;
}

gboolean
sway_notification_center_swaync_daemon_set_noti_window_monitor (SwayNotificationCenterSwayncDaemon* self,
                                                                const gchar* name,
                                                                GError** error)
{
	SwayNotificationCenterSwaync* _tmp0_;
	GdkMonitor* monitor = NULL;
	GdkMonitor* _tmp1_;
	GdkMonitor* _tmp2_;
	SwayNotificationCenterNotificationWindow* _tmp3_;
	GdkMonitor* _tmp4_;
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	g_return_val_if_fail (name != NULL, FALSE);
	_tmp0_ = sway_notification_center_app;
	if (!_tmp0_->use_layer_shell) {
		g_critical ("swayncDaemon.vala:230: %s", "Setting Notification Window monitor isn't supported " "when layer shell is disabled!");
		result = FALSE;
		return result;
	}
	_tmp1_ = sway_notification_center_functions_try_get_monitor (name);
	monitor = _tmp1_;
	_tmp2_ = monitor;
	if (_tmp2_ == NULL) {
		result = FALSE;
		return result;
	}
	_tmp3_ = sway_notification_center_floating_notifications;
	_tmp4_ = monitor;
	sway_notification_center_notification_window_set_monitor (_tmp3_, _tmp4_);
	result = TRUE;
	return result;
}

gboolean
sway_notification_center_swaync_daemon_get_inhibited (SwayNotificationCenterSwayncDaemon* self)
{
	gboolean result;
	g_return_val_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self), FALSE);
	result = self->priv->_inhibited;
	return result;
}

static void
sway_notification_center_swaync_daemon_set_inhibited (SwayNotificationCenterSwayncDaemon* self,
                                                      gboolean value)
{
	gboolean old_value;
	g_return_if_fail (SWAY_NOTIFICATION_CENTER_IS_SWAYNC_DAEMON (self));
	old_value = sway_notification_center_swaync_daemon_get_inhibited (self);
	if (old_value != value) {
		self->priv->_inhibited = value;
		g_object_notify_by_pspec ((GObject *) self, sway_notification_center_swaync_daemon_properties[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_PROPERTY]);
	}
}

static void
g_cclosure_user_marshal_VOID__UINT_BOOLEAN_BOOLEAN_BOOLEAN (GClosure * closure,
                                                            GValue * return_value,
                                                            guint n_param_values,
                                                            const GValue * param_values,
                                                            gpointer invocation_hint,
                                                            gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__UINT_BOOLEAN_BOOLEAN_BOOLEAN) (gpointer data1, guint arg_1, gboolean arg_2, gboolean arg_3, gboolean arg_4, gpointer data2);
	register GMarshalFunc_VOID__UINT_BOOLEAN_BOOLEAN_BOOLEAN callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
	g_return_if_fail (n_param_values == 5);
	if (G_CCLOSURE_SWAP_DATA (closure)) {
		data1 = closure->data;
		data2 = param_values->data[0].v_pointer;
	} else {
		data1 = param_values->data[0].v_pointer;
		data2 = closure->data;
	}
	callback = (GMarshalFunc_VOID__UINT_BOOLEAN_BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_uint (param_values + 1), g_value_get_boolean (param_values + 2), g_value_get_boolean (param_values + 3), g_value_get_boolean (param_values + 4), data2);
}

static void
g_cclosure_user_marshal_VOID__UINT_BOOLEAN_BOOLEAN (GClosure * closure,
                                                    GValue * return_value,
                                                    guint n_param_values,
                                                    const GValue * param_values,
                                                    gpointer invocation_hint,
                                                    gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__UINT_BOOLEAN_BOOLEAN) (gpointer data1, guint arg_1, gboolean arg_2, gboolean arg_3, gpointer data2);
	register GMarshalFunc_VOID__UINT_BOOLEAN_BOOLEAN callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
	g_return_if_fail (n_param_values == 4);
	if (G_CCLOSURE_SWAP_DATA (closure)) {
		data1 = closure->data;
		data2 = param_values->data[0].v_pointer;
	} else {
		data1 = param_values->data[0].v_pointer;
		data2 = closure->data;
	}
	callback = (GMarshalFunc_VOID__UINT_BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_uint (param_values + 1), g_value_get_boolean (param_values + 2), g_value_get_boolean (param_values + 3), data2);
}

static void
sway_notification_center_swaync_daemon_class_init (SwayNotificationCenterSwayncDaemonClass * klass,
                                                   gpointer klass_data)
{
	sway_notification_center_swaync_daemon_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &SwayNotificationCenterSwayncDaemon_private_offset);
	G_OBJECT_CLASS (klass)->get_property = _vala_sway_notification_center_swaync_daemon_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_sway_notification_center_swaync_daemon_set_property;
	G_OBJECT_CLASS (klass)->finalize = sway_notification_center_swaync_daemon_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_PROPERTY, sway_notification_center_swaync_daemon_properties[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_PROPERTY] = g_param_spec_boolean ("inhibited", "inhibited", "inhibited", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	sway_notification_center_swaync_daemon_signals[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_CHANGED_SIGNAL] = g_signal_new ("inhibited-changed", SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
	/**
	         * Called when Dot Not Disturb state changes, notification gets
	         * added/removed, and when Control Center opens
	         */
	sway_notification_center_swaync_daemon_signals[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_SUBSCRIBE_V2_SIGNAL] = g_signal_new ("subscribe-v2", SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__UINT_BOOLEAN_BOOLEAN_BOOLEAN, G_TYPE_NONE, 4, G_TYPE_UINT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);
	/**
	         * Called when Dot Not Disturb state changes, notification gets
	         * added/removed, Control Center opens, and when inhibitor state changes
	         */
	sway_notification_center_swaync_daemon_signals[SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_SUBSCRIBE_SIGNAL] = g_signal_new ("subscribe", SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, G_SIGNAL_RUN_LAST | G_SIGNAL_DEPRECATED, 0, NULL, NULL, g_cclosure_user_marshal_VOID__UINT_BOOLEAN_BOOLEAN, G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);
}

static void
sway_notification_center_swaync_daemon_instance_init (SwayNotificationCenterSwayncDaemon * self,
                                                      gpointer klass)
{
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	self->priv = sway_notification_center_swaync_daemon_get_instance_private (self);
	_tmp0_ = g_str_hash;
	_tmp1_ = g_str_equal;
	_tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, NULL, _g_free0_);
	self->priv->inhibitors = _tmp2_;
	self->priv->_inhibited = FALSE;
}

static void
sway_notification_center_swaync_daemon_finalize (GObject * obj)
{
	SwayNotificationCenterSwayncDaemon * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, SwayNotificationCenterSwayncDaemon);
	_g_hash_table_unref0 (self->priv->inhibitors);
	G_OBJECT_CLASS (sway_notification_center_swaync_daemon_parent_class)->finalize (obj);
}

 G_GNUC_NO_INLINE static GType
sway_notification_center_swaync_daemon_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SwayNotificationCenterSwayncDaemonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) sway_notification_center_swaync_daemon_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SwayNotificationCenterSwayncDaemon), 0, (GInstanceInitFunc) sway_notification_center_swaync_daemon_instance_init, NULL };
	GType sway_notification_center_swaync_daemon_type_id;
	sway_notification_center_swaync_daemon_type_id = g_type_register_static (G_TYPE_OBJECT, "SwayNotificationCenterSwayncDaemon", &g_define_type_info, 0);
	g_type_set_qdata (sway_notification_center_swaync_daemon_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) sway_notification_center_swaync_daemon_register_object);
	SwayNotificationCenterSwayncDaemon_private_offset = g_type_add_instance_private (sway_notification_center_swaync_daemon_type_id, sizeof (SwayNotificationCenterSwayncDaemonPrivate));
	return sway_notification_center_swaync_daemon_type_id;
}

GType
sway_notification_center_swaync_daemon_get_type (void)
{
	static gsize sway_notification_center_swaync_daemon_type_id__once = 0;
	if (g_once_init_enter (&sway_notification_center_swaync_daemon_type_id__once)) {
		GType sway_notification_center_swaync_daemon_type_id;
		sway_notification_center_swaync_daemon_type_id = sway_notification_center_swaync_daemon_get_type_once ();
		g_once_init_leave (&sway_notification_center_swaync_daemon_type_id__once, sway_notification_center_swaync_daemon_type_id);
	}
	return sway_notification_center_swaync_daemon_type_id__once;
}

static void
_vala_sway_notification_center_swaync_daemon_get_property (GObject * object,
                                                           guint property_id,
                                                           GValue * value,
                                                           GParamSpec * pspec)
{
	SwayNotificationCenterSwayncDaemon * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, SwayNotificationCenterSwayncDaemon);
	switch (property_id) {
		case SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_PROPERTY:
		g_value_set_boolean (value, sway_notification_center_swaync_daemon_get_inhibited (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_vala_sway_notification_center_swaync_daemon_set_property (GObject * object,
                                                           guint property_id,
                                                           const GValue * value,
                                                           GParamSpec * pspec)
{
	SwayNotificationCenterSwayncDaemon * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, SWAY_NOTIFICATION_CENTER_TYPE_SWAYNC_DAEMON, SwayNotificationCenterSwayncDaemon);
	switch (property_id) {
		case SWAY_NOTIFICATION_CENTER_SWAYNC_DAEMON_INHIBITED_PROPERTY:
		sway_notification_center_swaync_daemon_set_inhibited (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}

static void
_dbus_sway_notification_center_swaync_daemon_get_subscribe_data (SwayNotificationCenterSwayncDaemon* self,
                                                                 GVariant* _parameters_,
                                                                 GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	SwayNotificationCenterData result = {0};
	GVariantBuilder _tmp0_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	sway_notification_center_swaync_daemon_get_subscribe_data (self, &result, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_init (&_tmp0_, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_tmp0_, g_variant_new_boolean (result.dnd));
	g_variant_builder_add_value (&_tmp0_, g_variant_new_boolean (result.cc_open));
	g_variant_builder_add_value (&_tmp0_, g_variant_new_uint32 (result.count));
	g_variant_builder_add_value (&_tmp0_, g_variant_new_boolean (result.inhibited));
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp0_));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_reload_css (SwayNotificationCenterSwayncDaemon* self,
                                                         GVariant* _parameters_,
                                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = sway_notification_center_swaync_daemon_reload_css (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_reload_config (SwayNotificationCenterSwayncDaemon* self,
                                                            GVariant* _parameters_,
                                                            GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	sway_notification_center_swaync_daemon_reload_config (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_change_config_value (SwayNotificationCenterSwayncDaemon* self,
                                                                  GVariant* _parameters_,
                                                                  GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* name = NULL;
	GVariant* _tmp1_;
	GVariant* value = NULL;
	GVariant* _tmp2_;
	gboolean write_to_file = FALSE;
	GVariant* _tmp3_;
	gchar* path = NULL;
	GVariant* _tmp4_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp1_ = g_variant_iter_next_value (&_arguments_iter);
	name = g_variant_dup_string (_tmp1_, NULL);
	g_variant_unref (_tmp1_);
	_tmp2_ = g_variant_iter_next_value (&_arguments_iter);
	value = g_variant_get_variant (_tmp2_);
	g_variant_unref (_tmp2_);
	_tmp3_ = g_variant_iter_next_value (&_arguments_iter);
	write_to_file = g_variant_get_boolean (_tmp3_);
	g_variant_unref (_tmp3_);
	_tmp4_ = g_variant_iter_next_value (&_arguments_iter);
	path = g_variant_dup_string (_tmp4_, NULL);
	g_variant_unref (_tmp4_);
	sway_notification_center_swaync_daemon_change_config_value (self, name, value, write_to_file, path, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (name);
	_g_variant_unref0 (value);
	_g_free0 (path);
	;
}

static void
_dbus_sway_notification_center_swaync_daemon_get_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                             GVariant* _parameters_,
                                                             GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = sway_notification_center_swaync_daemon_get_visibility (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_hide_latest_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                        GVariant* _parameters_,
                                                                        GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gboolean close = FALSE;
	GVariant* _tmp5_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp5_ = g_variant_iter_next_value (&_arguments_iter);
	close = g_variant_get_boolean (_tmp5_);
	g_variant_unref (_tmp5_);
	sway_notification_center_swaync_daemon_hide_latest_notifications (self, close, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_hide_all_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                     GVariant* _parameters_,
                                                                     GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	sway_notification_center_swaync_daemon_hide_all_notifications (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_close_all_notifications (SwayNotificationCenterSwayncDaemon* self,
                                                                      GVariant* _parameters_,
                                                                      GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	sway_notification_center_swaync_daemon_close_all_notifications (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_notification_count (SwayNotificationCenterSwayncDaemon* self,
                                                                 GVariant* _parameters_,
                                                                 GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = sway_notification_center_swaync_daemon_notification_count (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_uint32 (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_toggle_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                                GVariant* _parameters_,
                                                                GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	sway_notification_center_swaync_daemon_toggle_visibility (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_set_visibility (SwayNotificationCenterSwayncDaemon* self,
                                                             GVariant* _parameters_,
                                                             GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gboolean visibility = FALSE;
	GVariant* _tmp6_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp6_ = g_variant_iter_next_value (&_arguments_iter);
	visibility = g_variant_get_boolean (_tmp6_);
	g_variant_unref (_tmp6_);
	sway_notification_center_swaync_daemon_set_visibility (self, visibility, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_toggle_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                         GVariant* _parameters_,
                                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = sway_notification_center_swaync_daemon_toggle_dnd (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_set_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                      GVariant* _parameters_,
                                                      GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gboolean state = FALSE;
	GVariant* _tmp7_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp7_ = g_variant_iter_next_value (&_arguments_iter);
	state = g_variant_get_boolean (_tmp7_);
	g_variant_unref (_tmp7_);
	sway_notification_center_swaync_daemon_set_dnd (self, state, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_get_dnd (SwayNotificationCenterSwayncDaemon* self,
                                                      GVariant* _parameters_,
                                                      GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = sway_notification_center_swaync_daemon_get_dnd (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_close_notification (SwayNotificationCenterSwayncDaemon* self,
                                                                 GVariant* _parameters_,
                                                                 GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	guint32 id = 0U;
	GVariant* _tmp8_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp8_ = g_variant_iter_next_value (&_arguments_iter);
	id = g_variant_get_uint32 (_tmp8_);
	g_variant_unref (_tmp8_);
	sway_notification_center_swaync_daemon_close_notification (self, id, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_latest_invoke_action (SwayNotificationCenterSwayncDaemon* self,
                                                                   GVariant* _parameters_,
                                                                   GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	guint32 action_index = 0U;
	GVariant* _tmp9_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp9_ = g_variant_iter_next_value (&_arguments_iter);
	action_index = g_variant_get_uint32 (_tmp9_);
	g_variant_unref (_tmp9_);
	sway_notification_center_swaync_daemon_latest_invoke_action (self, action_index, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_add_inhibitor (SwayNotificationCenterSwayncDaemon* self,
                                                            GVariant* _parameters_,
                                                            GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* application_id = NULL;
	GVariant* _tmp10_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp10_ = g_variant_iter_next_value (&_arguments_iter);
	application_id = g_variant_dup_string (_tmp10_, NULL);
	g_variant_unref (_tmp10_);
	result = sway_notification_center_swaync_daemon_add_inhibitor (self, application_id, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (application_id);
	;
}

static void
_dbus_sway_notification_center_swaync_daemon_remove_inhibitor (SwayNotificationCenterSwayncDaemon* self,
                                                               GVariant* _parameters_,
                                                               GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* application_id = NULL;
	GVariant* _tmp11_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp11_ = g_variant_iter_next_value (&_arguments_iter);
	application_id = g_variant_dup_string (_tmp11_, NULL);
	g_variant_unref (_tmp11_);
	result = sway_notification_center_swaync_daemon_remove_inhibitor (self, application_id, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (application_id);
	;
}

static void
_dbus_sway_notification_center_swaync_daemon_number_of_inhibitors (SwayNotificationCenterSwayncDaemon* self,
                                                                   GVariant* _parameters_,
                                                                   GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = sway_notification_center_swaync_daemon_number_of_inhibitors (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_uint32 (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_is_inhibited (SwayNotificationCenterSwayncDaemon* self,
                                                           GVariant* _parameters_,
                                                           GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = sway_notification_center_swaync_daemon_is_inhibited (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_clear_inhibitors (SwayNotificationCenterSwayncDaemon* self,
                                                               GVariant* _parameters_,
                                                               GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = sway_notification_center_swaync_daemon_clear_inhibitors (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_sway_notification_center_swaync_daemon_set_cc_monitor (SwayNotificationCenterSwayncDaemon* self,
                                                             GVariant* _parameters_,
                                                             GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* name = NULL;
	GVariant* _tmp12_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp12_ = g_variant_iter_next_value (&_arguments_iter);
	name = g_variant_dup_string (_tmp12_, NULL);
	g_variant_unref (_tmp12_);
	result = sway_notification_center_swaync_daemon_set_cc_monitor (self, name, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (name);
	;
}

static void
_dbus_sway_notification_center_swaync_daemon_set_noti_window_monitor (SwayNotificationCenterSwayncDaemon* self,
                                                                      GVariant* _parameters_,
                                                                      GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* name = NULL;
	GVariant* _tmp13_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp13_ = g_variant_iter_next_value (&_arguments_iter);
	name = g_variant_dup_string (_tmp13_, NULL);
	g_variant_unref (_tmp13_);
	result = sway_notification_center_swaync_daemon_set_noti_window_monitor (self, name, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
	_error:
	_g_free0 (name);
	;
}

static void
sway_notification_center_swaync_daemon_dbus_interface_method_call (GDBusConnection* connection,
                                                                   const gchar* sender,
                                                                   const gchar* object_path,
                                                                   const gchar* interface_name,
                                                                   const gchar* method_name,
                                                                   GVariant* parameters,
                                                                   GDBusMethodInvocation* invocation,
                                                                   gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "GetSubscribeData") == 0) {
		_dbus_sway_notification_center_swaync_daemon_get_subscribe_data (object, parameters, invocation);
	} else if (strcmp (method_name, "ReloadCss") == 0) {
		_dbus_sway_notification_center_swaync_daemon_reload_css (object, parameters, invocation);
	} else if (strcmp (method_name, "ReloadConfig") == 0) {
		_dbus_sway_notification_center_swaync_daemon_reload_config (object, parameters, invocation);
	} else if (strcmp (method_name, "ChangeConfigValue") == 0) {
		_dbus_sway_notification_center_swaync_daemon_change_config_value (object, parameters, invocation);
	} else if (strcmp (method_name, "GetVisibility") == 0) {
		_dbus_sway_notification_center_swaync_daemon_get_visibility (object, parameters, invocation);
	} else if (strcmp (method_name, "HideLatestNotifications") == 0) {
		_dbus_sway_notification_center_swaync_daemon_hide_latest_notifications (object, parameters, invocation);
	} else if (strcmp (method_name, "HideAllNotifications") == 0) {
		_dbus_sway_notification_center_swaync_daemon_hide_all_notifications (object, parameters, invocation);
	} else if (strcmp (method_name, "CloseAllNotifications") == 0) {
		_dbus_sway_notification_center_swaync_daemon_close_all_notifications (object, parameters, invocation);
	} else if (strcmp (method_name, "NotificationCount") == 0) {
		_dbus_sway_notification_center_swaync_daemon_notification_count (object, parameters, invocation);
	} else if (strcmp (method_name, "ToggleVisibility") == 0) {
		_dbus_sway_notification_center_swaync_daemon_toggle_visibility (object, parameters, invocation);
	} else if (strcmp (method_name, "SetVisibility") == 0) {
		_dbus_sway_notification_center_swaync_daemon_set_visibility (object, parameters, invocation);
	} else if (strcmp (method_name, "ToggleDnd") == 0) {
		_dbus_sway_notification_center_swaync_daemon_toggle_dnd (object, parameters, invocation);
	} else if (strcmp (method_name, "SetDnd") == 0) {
		_dbus_sway_notification_center_swaync_daemon_set_dnd (object, parameters, invocation);
	} else if (strcmp (method_name, "GetDnd") == 0) {
		_dbus_sway_notification_center_swaync_daemon_get_dnd (object, parameters, invocation);
	} else if (strcmp (method_name, "CloseNotification") == 0) {
		_dbus_sway_notification_center_swaync_daemon_close_notification (object, parameters, invocation);
	} else if (strcmp (method_name, "LatestInvokeAction") == 0) {
		_dbus_sway_notification_center_swaync_daemon_latest_invoke_action (object, parameters, invocation);
	} else if (strcmp (method_name, "AddInhibitor") == 0) {
		_dbus_sway_notification_center_swaync_daemon_add_inhibitor (object, parameters, invocation);
	} else if (strcmp (method_name, "RemoveInhibitor") == 0) {
		_dbus_sway_notification_center_swaync_daemon_remove_inhibitor (object, parameters, invocation);
	} else if (strcmp (method_name, "NumberOfInhibitors") == 0) {
		_dbus_sway_notification_center_swaync_daemon_number_of_inhibitors (object, parameters, invocation);
	} else if (strcmp (method_name, "IsInhibited") == 0) {
		_dbus_sway_notification_center_swaync_daemon_is_inhibited (object, parameters, invocation);
	} else if (strcmp (method_name, "ClearInhibitors") == 0) {
		_dbus_sway_notification_center_swaync_daemon_clear_inhibitors (object, parameters, invocation);
	} else if (strcmp (method_name, "SetCcMonitor") == 0) {
		_dbus_sway_notification_center_swaync_daemon_set_cc_monitor (object, parameters, invocation);
	} else if (strcmp (method_name, "SetNotiWindowMonitor") == 0) {
		_dbus_sway_notification_center_swaync_daemon_set_noti_window_monitor (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
_dbus_sway_notification_center_swaync_daemon_get_inhibited (SwayNotificationCenterSwayncDaemon* self)
{
	gboolean result;
	GVariant* _reply;
	result = sway_notification_center_swaync_daemon_get_inhibited (self);
	_reply = g_variant_new_boolean (result);
	return _reply;
}

static GVariant*
sway_notification_center_swaync_daemon_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];
	if (strcmp (property_name, "Inhibited") == 0) {
		return _dbus_sway_notification_center_swaync_daemon_get_inhibited (object);
	}
	return NULL;
}

static void
_dbus_sway_notification_center_swaync_daemon_set_inhibited (SwayNotificationCenterSwayncDaemon* self,
                                                            GVariant* _value)
{
	gboolean value = FALSE;
	value = g_variant_get_boolean (_value);
	sway_notification_center_swaync_daemon_set_inhibited (self, value);
}

static gboolean
sway_notification_center_swaync_daemon_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];
	if (strcmp (property_name, "Inhibited") == 0) {
		_dbus_sway_notification_center_swaync_daemon_set_inhibited (object, value);
		return TRUE;
	}
	return FALSE;
}

static void
_dbus_sway_notification_center_swaync_daemon_subscribe_v2 (GObject* _sender,
                                                           guint count,
                                                           gboolean dnd,
                                                           gboolean cc_open,
                                                           gboolean inhibited,
                                                           gpointer* _data)
{
	GDBusConnection * _connection;
	const gchar * _path;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_connection = _data[1];
	_path = _data[2];
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (count));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_boolean (dnd));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_boolean (cc_open));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_boolean (inhibited));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.erikreider.swaync.cc", "SubscribeV2", _arguments, NULL);
}

static void
_dbus_sway_notification_center_swaync_daemon_subscribe (GObject* _sender,
                                                        guint count,
                                                        gboolean dnd,
                                                        gboolean cc_open,
                                                        gpointer* _data)
{
	GDBusConnection * _connection;
	const gchar * _path;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_connection = _data[1];
	_path = _data[2];
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (count));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_boolean (dnd));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_boolean (cc_open));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.erikreider.swaync.cc", "Subscribe", _arguments, NULL);
}

guint
sway_notification_center_swaync_daemon_register_object (gpointer object,
                                                        GDBusConnection* connection,
                                                        const gchar* path,
                                                        GError** error)
{
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_sway_notification_center_swaync_daemon_dbus_interface_info), &_sway_notification_center_swaync_daemon_dbus_interface_vtable, data, _sway_notification_center_swaync_daemon_unregister_object, error);
	if (!result) {
		return 0;
	}
	g_signal_connect (object, "subscribe-v2", (GCallback) _dbus_sway_notification_center_swaync_daemon_subscribe_v2, data);
	g_signal_connect (object, "subscribe", (GCallback) _dbus_sway_notification_center_swaync_daemon_subscribe, data);
	return result;
}

static void
_sway_notification_center_swaync_daemon_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_signal_handlers_disconnect_by_func (data[0], _dbus_sway_notification_center_swaync_daemon_subscribe_v2, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_sway_notification_center_swaync_daemon_subscribe, data);
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

