/*
 * 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 __GF_CONSOLEKIT_MANAGER_GEN_H__
#define __GF_CONSOLEKIT_MANAGER_GEN_H__

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.freedesktop.ConsoleKit.Manager */

#define GF_TYPE_CONSOLE_KIT_MANAGER_GEN (gf_console_kit_manager_gen_get_type ())
#define GF_CONSOLE_KIT_MANAGER_GEN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN, GfConsoleKitManagerGen))
#define GF_IS_CONSOLE_KIT_MANAGER_GEN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN))
#define GF_CONSOLE_KIT_MANAGER_GEN_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN, GfConsoleKitManagerGenIface))

struct _GfConsoleKitManagerGen;
typedef struct _GfConsoleKitManagerGen GfConsoleKitManagerGen;
typedef struct _GfConsoleKitManagerGenIface GfConsoleKitManagerGenIface;

struct _GfConsoleKitManagerGenIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_get_session_for_cookie) (
    GfConsoleKitManagerGen *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_session_id);

  gboolean (*handle_inhibit) (
    GfConsoleKitManagerGen *object,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    const gchar *arg_what,
    const gchar *arg_who,
    const gchar *arg_why,
    const gchar *arg_mode);

  void (*prepare_for_sleep) (
    GfConsoleKitManagerGen *object,
    gboolean arg_start);

};

GType gf_console_kit_manager_gen_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *gf_console_kit_manager_gen_interface_info (void);
guint gf_console_kit_manager_gen_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void gf_console_kit_manager_gen_complete_get_session_for_cookie (
    GfConsoleKitManagerGen *object,
    GDBusMethodInvocation *invocation,
    const gchar *object_path);

void gf_console_kit_manager_gen_complete_inhibit (
    GfConsoleKitManagerGen *object,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    GVariant *pipe_fd);



/* D-Bus signal emissions functions: */
void gf_console_kit_manager_gen_emit_prepare_for_sleep (
    GfConsoleKitManagerGen *object,
    gboolean arg_start);



/* D-Bus method calls: */
void gf_console_kit_manager_gen_call_get_session_for_cookie (
    GfConsoleKitManagerGen *proxy,
    const gchar *arg_session_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gf_console_kit_manager_gen_call_get_session_for_cookie_finish (
    GfConsoleKitManagerGen *proxy,
    gchar **out_object_path,
    GAsyncResult *res,
    GError **error);

gboolean gf_console_kit_manager_gen_call_get_session_for_cookie_sync (
    GfConsoleKitManagerGen *proxy,
    const gchar *arg_session_id,
    gchar **out_object_path,
    GCancellable *cancellable,
    GError **error);

void gf_console_kit_manager_gen_call_inhibit (
    GfConsoleKitManagerGen *proxy,
    const gchar *arg_what,
    const gchar *arg_who,
    const gchar *arg_why,
    const gchar *arg_mode,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean gf_console_kit_manager_gen_call_inhibit_finish (
    GfConsoleKitManagerGen *proxy,
    GVariant **out_pipe_fd,
    GUnixFDList **out_fd_list,
    GAsyncResult *res,
    GError **error);

gboolean gf_console_kit_manager_gen_call_inhibit_sync (
    GfConsoleKitManagerGen *proxy,
    const gchar *arg_what,
    const gchar *arg_who,
    const gchar *arg_why,
    const gchar *arg_mode,
    GUnixFDList  *fd_list,
    GVariant **out_pipe_fd,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define GF_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY (gf_console_kit_manager_gen_proxy_get_type ())
#define GF_CONSOLE_KIT_MANAGER_GEN_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, GfConsoleKitManagerGenProxy))
#define GF_CONSOLE_KIT_MANAGER_GEN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, GfConsoleKitManagerGenProxyClass))
#define GF_CONSOLE_KIT_MANAGER_GEN_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, GfConsoleKitManagerGenProxyClass))
#define GF_IS_CONSOLE_KIT_MANAGER_GEN_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY))
#define GF_IS_CONSOLE_KIT_MANAGER_GEN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY))

typedef struct _GfConsoleKitManagerGenProxy GfConsoleKitManagerGenProxy;
typedef struct _GfConsoleKitManagerGenProxyClass GfConsoleKitManagerGenProxyClass;
typedef struct _GfConsoleKitManagerGenProxyPrivate GfConsoleKitManagerGenProxyPrivate;

struct _GfConsoleKitManagerGenProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  GfConsoleKitManagerGenProxyPrivate *priv;
};

struct _GfConsoleKitManagerGenProxyClass
{
  GDBusProxyClass parent_class;
};

GType gf_console_kit_manager_gen_proxy_get_type (void) G_GNUC_CONST;

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

void gf_console_kit_manager_gen_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GfConsoleKitManagerGen *gf_console_kit_manager_gen_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
GfConsoleKitManagerGen *gf_console_kit_manager_gen_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void gf_console_kit_manager_gen_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
GfConsoleKitManagerGen *gf_console_kit_manager_gen_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
GfConsoleKitManagerGen *gf_console_kit_manager_gen_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define GF_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON (gf_console_kit_manager_gen_skeleton_get_type ())
#define GF_CONSOLE_KIT_MANAGER_GEN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON, GfConsoleKitManagerGenSkeleton))
#define GF_CONSOLE_KIT_MANAGER_GEN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON, GfConsoleKitManagerGenSkeletonClass))
#define GF_CONSOLE_KIT_MANAGER_GEN_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON, GfConsoleKitManagerGenSkeletonClass))
#define GF_IS_CONSOLE_KIT_MANAGER_GEN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON))
#define GF_IS_CONSOLE_KIT_MANAGER_GEN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GF_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON))

typedef struct _GfConsoleKitManagerGenSkeleton GfConsoleKitManagerGenSkeleton;
typedef struct _GfConsoleKitManagerGenSkeletonClass GfConsoleKitManagerGenSkeletonClass;
typedef struct _GfConsoleKitManagerGenSkeletonPrivate GfConsoleKitManagerGenSkeletonPrivate;

struct _GfConsoleKitManagerGenSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  GfConsoleKitManagerGenSkeletonPrivate *priv;
};

struct _GfConsoleKitManagerGenSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType gf_console_kit_manager_gen_skeleton_get_type (void) G_GNUC_CONST;

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

GfConsoleKitManagerGen *gf_console_kit_manager_gen_skeleton_new (void);


G_END_DECLS

#endif /* __GF_CONSOLEKIT_MANAGER_GEN_H__ */
