/*
 * This file is generated by gdbus-codegen, do not modify it.
 *
 * The license of this code is the same as for the D-Bus interface description
 * it was derived from. Note that it links to GLib, so must comply with the
 * LGPL linking clauses.
 */

#ifndef __XAPP_SWITCHEROO_INTERFACE_H__
#define __XAPP_SWITCHEROO_INTERFACE_H__

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for net.hadess.SwitcherooControl */

#define XAPP_TYPE_SWITCHEROO_CONTROL (xapp_switcheroo_control_get_type ())
#define XAPP_SWITCHEROO_CONTROL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XAPP_TYPE_SWITCHEROO_CONTROL, XAppSwitcherooControl))
#define XAPP_IS_SWITCHEROO_CONTROL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XAPP_TYPE_SWITCHEROO_CONTROL))
#define XAPP_SWITCHEROO_CONTROL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), XAPP_TYPE_SWITCHEROO_CONTROL, XAppSwitcherooControlIface))

struct _XAppSwitcherooControl;
typedef struct _XAppSwitcherooControl XAppSwitcherooControl;
typedef struct _XAppSwitcherooControlIface XAppSwitcherooControlIface;

struct _XAppSwitcherooControlIface
{
  GTypeInterface parent_iface;

  GVariant * (*get_gpus) (XAppSwitcherooControl *object);

  gboolean  (*get_has_dual_gpu) (XAppSwitcherooControl *object);

  guint  (*get_num_gpus) (XAppSwitcherooControl *object);

};

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (XAppSwitcherooControl, g_object_unref)
#endif

GType xapp_switcheroo_control_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *xapp_switcheroo_control_interface_info (void);
guint xapp_switcheroo_control_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus property accessors: */
gboolean xapp_switcheroo_control_get_has_dual_gpu (XAppSwitcherooControl *object);
void xapp_switcheroo_control_set_has_dual_gpu (XAppSwitcherooControl *object, gboolean value);

guint xapp_switcheroo_control_get_num_gpus (XAppSwitcherooControl *object);
void xapp_switcheroo_control_set_num_gpus (XAppSwitcherooControl *object, guint value);

GVariant *xapp_switcheroo_control_get_gpus (XAppSwitcherooControl *object);
GVariant *xapp_switcheroo_control_dup_gpus (XAppSwitcherooControl *object);
void xapp_switcheroo_control_set_gpus (XAppSwitcherooControl *object, GVariant *value);


/* ---- */

#define XAPP_TYPE_SWITCHEROO_CONTROL_PROXY (xapp_switcheroo_control_proxy_get_type ())
#define XAPP_SWITCHEROO_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XAPP_TYPE_SWITCHEROO_CONTROL_PROXY, XAppSwitcherooControlProxy))
#define XAPP_SWITCHEROO_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), XAPP_TYPE_SWITCHEROO_CONTROL_PROXY, XAppSwitcherooControlProxyClass))
#define XAPP_SWITCHEROO_CONTROL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XAPP_TYPE_SWITCHEROO_CONTROL_PROXY, XAppSwitcherooControlProxyClass))
#define XAPP_IS_SWITCHEROO_CONTROL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XAPP_TYPE_SWITCHEROO_CONTROL_PROXY))
#define XAPP_IS_SWITCHEROO_CONTROL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XAPP_TYPE_SWITCHEROO_CONTROL_PROXY))

typedef struct _XAppSwitcherooControlProxy XAppSwitcherooControlProxy;
typedef struct _XAppSwitcherooControlProxyClass XAppSwitcherooControlProxyClass;
typedef struct _XAppSwitcherooControlProxyPrivate XAppSwitcherooControlProxyPrivate;

struct _XAppSwitcherooControlProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  XAppSwitcherooControlProxyPrivate *priv;
};

struct _XAppSwitcherooControlProxyClass
{
  GDBusProxyClass parent_class;
};

GType xapp_switcheroo_control_proxy_get_type (void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (XAppSwitcherooControlProxy, g_object_unref)
#endif

void xapp_switcheroo_control_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
XAppSwitcherooControl *xapp_switcheroo_control_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
XAppSwitcherooControl *xapp_switcheroo_control_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void xapp_switcheroo_control_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
XAppSwitcherooControl *xapp_switcheroo_control_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
XAppSwitcherooControl *xapp_switcheroo_control_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define XAPP_TYPE_SWITCHEROO_CONTROL_SKELETON (xapp_switcheroo_control_skeleton_get_type ())
#define XAPP_SWITCHEROO_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XAPP_TYPE_SWITCHEROO_CONTROL_SKELETON, XAppSwitcherooControlSkeleton))
#define XAPP_SWITCHEROO_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), XAPP_TYPE_SWITCHEROO_CONTROL_SKELETON, XAppSwitcherooControlSkeletonClass))
#define XAPP_SWITCHEROO_CONTROL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XAPP_TYPE_SWITCHEROO_CONTROL_SKELETON, XAppSwitcherooControlSkeletonClass))
#define XAPP_IS_SWITCHEROO_CONTROL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XAPP_TYPE_SWITCHEROO_CONTROL_SKELETON))
#define XAPP_IS_SWITCHEROO_CONTROL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XAPP_TYPE_SWITCHEROO_CONTROL_SKELETON))

typedef struct _XAppSwitcherooControlSkeleton XAppSwitcherooControlSkeleton;
typedef struct _XAppSwitcherooControlSkeletonClass XAppSwitcherooControlSkeletonClass;
typedef struct _XAppSwitcherooControlSkeletonPrivate XAppSwitcherooControlSkeletonPrivate;

struct _XAppSwitcherooControlSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  XAppSwitcherooControlSkeletonPrivate *priv;
};

struct _XAppSwitcherooControlSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType xapp_switcheroo_control_skeleton_get_type (void) G_GNUC_CONST;

#if GLIB_CHECK_VERSION(2, 44, 0)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (XAppSwitcherooControlSkeleton, g_object_unref)
#endif

XAppSwitcherooControl *xapp_switcheroo_control_skeleton_new (void);


G_END_DECLS

#endif /* __XAPP_SWITCHEROO_INTERFACE_H__ */
