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

/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * SPDX-FileCopyrightText: 2025 elementary, Inc. (https://elementary.io)
 */

#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.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 GREETER_SESSION_MANAGER_TYPE_APPLICATION (greeter_session_manager_application_get_type ())
#define GREETER_SESSION_MANAGER_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_SESSION_MANAGER_TYPE_APPLICATION, GreeterSessionManagerApplication))
#define GREETER_SESSION_MANAGER_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_SESSION_MANAGER_TYPE_APPLICATION, GreeterSessionManagerApplicationClass))
#define GREETER_SESSION_MANAGER_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_SESSION_MANAGER_TYPE_APPLICATION))
#define GREETER_SESSION_MANAGER_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GREETER_SESSION_MANAGER_TYPE_APPLICATION))
#define GREETER_SESSION_MANAGER_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_SESSION_MANAGER_TYPE_APPLICATION, GreeterSessionManagerApplicationClass))

typedef struct _GreeterSessionManagerApplication GreeterSessionManagerApplication;
typedef struct _GreeterSessionManagerApplicationClass GreeterSessionManagerApplicationClass;
typedef struct _GreeterSessionManagerApplicationPrivate GreeterSessionManagerApplicationPrivate;
enum  {
	GREETER_SESSION_MANAGER_APPLICATION_0_PROPERTY,
	GREETER_SESSION_MANAGER_APPLICATION_NUM_PROPERTIES
};
static GParamSpec* greeter_session_manager_application_properties[GREETER_SESSION_MANAGER_APPLICATION_NUM_PROPERTIES];

#define GREETER_SESSION_MANAGER_TYPE_SETTINGS_DAEMON (greeter_session_manager_settings_daemon_get_type ())
#define GREETER_SESSION_MANAGER_SETTINGS_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_SESSION_MANAGER_TYPE_SETTINGS_DAEMON, GreeterSessionManagerSettingsDaemon))
#define GREETER_SESSION_MANAGER_SETTINGS_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_SESSION_MANAGER_TYPE_SETTINGS_DAEMON, GreeterSessionManagerSettingsDaemonClass))
#define GREETER_SESSION_MANAGER_IS_SETTINGS_DAEMON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_SESSION_MANAGER_TYPE_SETTINGS_DAEMON))
#define GREETER_SESSION_MANAGER_IS_SETTINGS_DAEMON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GREETER_SESSION_MANAGER_TYPE_SETTINGS_DAEMON))
#define GREETER_SESSION_MANAGER_SETTINGS_DAEMON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_SESSION_MANAGER_TYPE_SETTINGS_DAEMON, GreeterSessionManagerSettingsDaemonClass))

typedef struct _GreeterSessionManagerSettingsDaemon GreeterSessionManagerSettingsDaemon;
typedef struct _GreeterSessionManagerSettingsDaemonClass GreeterSessionManagerSettingsDaemonClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))

struct _GreeterSessionManagerApplication {
	GObject parent_instance;
	GreeterSessionManagerApplicationPrivate * priv;
};

struct _GreeterSessionManagerApplicationClass {
	GObjectClass parent_class;
};

static gpointer greeter_session_manager_application_parent_class = NULL;

VALA_EXTERN GType greeter_session_manager_application_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterSessionManagerApplication, g_object_unref)
static gint greeter_session_manager_application_main (gchar** args,
                                               gint args_length1);
VALA_EXTERN GreeterSessionManagerSettingsDaemon* greeter_session_manager_settings_daemon_new (void);
VALA_EXTERN GreeterSessionManagerSettingsDaemon* greeter_session_manager_settings_daemon_construct (GType object_type);
VALA_EXTERN GType greeter_session_manager_settings_daemon_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterSessionManagerSettingsDaemon, g_object_unref)
VALA_EXTERN GreeterSessionManagerApplication* greeter_session_manager_application_new (void);
VALA_EXTERN GreeterSessionManagerApplication* greeter_session_manager_application_construct (GType object_type);
static GType greeter_session_manager_application_get_type_once (void);

static gint
greeter_session_manager_application_main (gchar** args,
                                          gint args_length1)
{
	GreeterSessionManagerSettingsDaemon* _tmp0_;
	GreeterSessionManagerSettingsDaemon* _tmp1_;
	GMainLoop* loop = NULL;
	GMainContext* _tmp2_;
	GMainLoop* _tmp3_;
	gint result;
	_tmp0_ = greeter_session_manager_settings_daemon_new ();
	_tmp1_ = _tmp0_;
	_g_object_unref0 (_tmp1_);
	_tmp2_ = g_main_context_default ();
	_tmp3_ = g_main_loop_new (_tmp2_, TRUE);
	loop = _tmp3_;
	g_main_loop_run (loop);
	result = 0;
	_g_main_loop_unref0 (loop);
	return result;
}

int
main (int argc,
      char ** argv)
{
	return greeter_session_manager_application_main (argv, argc);
}

GreeterSessionManagerApplication*
greeter_session_manager_application_construct (GType object_type)
{
	GreeterSessionManagerApplication * self = NULL;
	self = (GreeterSessionManagerApplication*) g_object_new (object_type, NULL);
	return self;
}

GreeterSessionManagerApplication*
greeter_session_manager_application_new (void)
{
	return greeter_session_manager_application_construct (GREETER_SESSION_MANAGER_TYPE_APPLICATION);
}

static void
greeter_session_manager_application_class_init (GreeterSessionManagerApplicationClass * klass,
                                                gpointer klass_data)
{
	greeter_session_manager_application_parent_class = g_type_class_peek_parent (klass);
}

static void
greeter_session_manager_application_instance_init (GreeterSessionManagerApplication * self,
                                                   gpointer klass)
{
}

static GType
greeter_session_manager_application_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GreeterSessionManagerApplicationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) greeter_session_manager_application_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GreeterSessionManagerApplication), 0, (GInstanceInitFunc) greeter_session_manager_application_instance_init, NULL };
	GType greeter_session_manager_application_type_id;
	greeter_session_manager_application_type_id = g_type_register_static (G_TYPE_OBJECT, "GreeterSessionManagerApplication", &g_define_type_info, 0);
	return greeter_session_manager_application_type_id;
}

GType
greeter_session_manager_application_get_type (void)
{
	static volatile gsize greeter_session_manager_application_type_id__once = 0;
	if (g_once_init_enter (&greeter_session_manager_application_type_id__once)) {
		GType greeter_session_manager_application_type_id;
		greeter_session_manager_application_type_id = greeter_session_manager_application_get_type_once ();
		g_once_init_leave (&greeter_session_manager_application_type_id__once, greeter_session_manager_application_type_id);
	}
	return greeter_session_manager_application_type_id__once;
}

