/* Generated by dbus-binding-tool; do not edit! */

#include <glib.h>
#include <dbus/dbus-glib.h>

G_BEGIN_DECLS

#ifndef DBUS_GLIB_CLIENT_WRAPPERS_org_xfce_Session_Manager
#define DBUS_GLIB_CLIENT_WRAPPERS_org_xfce_Session_Manager

static
#ifdef G_HAVE_INLINE
inline
#endif
gboolean
xfsm_manager_dbus_client_get_info (DBusGProxy *proxy, char ** OUT_name, char ** OUT_version, char ** OUT_vendor, GError **error)

{
  return dbus_g_proxy_call (proxy, "GetInfo", error, G_TYPE_INVALID, G_TYPE_STRING, OUT_name, G_TYPE_STRING, OUT_version, G_TYPE_STRING, OUT_vendor, G_TYPE_INVALID);
}

typedef void (*xfsm_manager_dbus_client_get_info_reply) (DBusGProxy *proxy, char * OUT_name, char * OUT_version, char * OUT_vendor, GError *error, gpointer userdata);

static void
xfsm_manager_dbus_client_get_info_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
{
  DBusGAsyncData *data = (DBusGAsyncData*) user_data;
  GError *error = NULL;
  char * OUT_name;
  char * OUT_version;
  char * OUT_vendor;
  dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_STRING, &OUT_name, G_TYPE_STRING, &OUT_version, G_TYPE_STRING, &OUT_vendor, G_TYPE_INVALID);
  (*(xfsm_manager_dbus_client_get_info_reply)data->cb) (proxy, OUT_name, OUT_version, OUT_vendor, error, data->userdata);
  return;
}

static
#ifdef G_HAVE_INLINE
inline
#endif
DBusGProxyCall*
xfsm_manager_dbus_client_get_info_async (DBusGProxy *proxy, xfsm_manager_dbus_client_get_info_reply callback, gpointer userdata)

{
  DBusGAsyncData *stuff;
  stuff = g_new (DBusGAsyncData, 1);
  stuff->cb = G_CALLBACK (callback);
  stuff->userdata = userdata;
  return dbus_g_proxy_begin_call (proxy, "GetInfo", xfsm_manager_dbus_client_get_info_async_callback, stuff, g_free, G_TYPE_INVALID);
}
static
#ifdef G_HAVE_INLINE
inline
#endif
gboolean
xfsm_manager_dbus_client_list_clients (DBusGProxy *proxy, GPtrArray** OUT_clients, GError **error)

{
  return dbus_g_proxy_call (proxy, "ListClients", error, G_TYPE_INVALID, dbus_g_type_get_collection ("GPtrArray", DBUS_TYPE_G_OBJECT_PATH), OUT_clients, G_TYPE_INVALID);
}

typedef void (*xfsm_manager_dbus_client_list_clients_reply) (DBusGProxy *proxy, GPtrArray *OUT_clients, GError *error, gpointer userdata);

static void
xfsm_manager_dbus_client_list_clients_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
{
  DBusGAsyncData *data = (DBusGAsyncData*) user_data;
  GError *error = NULL;
  GPtrArray* OUT_clients;
  dbus_g_proxy_end_call (proxy, call, &error, dbus_g_type_get_collection ("GPtrArray", DBUS_TYPE_G_OBJECT_PATH), &OUT_clients, G_TYPE_INVALID);
  (*(xfsm_manager_dbus_client_list_clients_reply)data->cb) (proxy, OUT_clients, error, data->userdata);
  return;
}

static
#ifdef G_HAVE_INLINE
inline
#endif
DBusGProxyCall*
xfsm_manager_dbus_client_list_clients_async (DBusGProxy *proxy, xfsm_manager_dbus_client_list_clients_reply callback, gpointer userdata)

{
  DBusGAsyncData *stuff;
  stuff = g_new (DBusGAsyncData, 1);
  stuff->cb = G_CALLBACK (callback);
  stuff->userdata = userdata;
  return dbus_g_proxy_begin_call (proxy, "ListClients", xfsm_manager_dbus_client_list_clients_async_callback, stuff, g_free, G_TYPE_INVALID);
}
static
#ifdef G_HAVE_INLINE
inline
#endif
gboolean
xfsm_manager_dbus_client_get_state (DBusGProxy *proxy, guint* OUT_state, GError **error)

{
  return dbus_g_proxy_call (proxy, "GetState", error, G_TYPE_INVALID, G_TYPE_UINT, OUT_state, G_TYPE_INVALID);
}

typedef void (*xfsm_manager_dbus_client_get_state_reply) (DBusGProxy *proxy, guint OUT_state, GError *error, gpointer userdata);

static void
xfsm_manager_dbus_client_get_state_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
{
  DBusGAsyncData *data = (DBusGAsyncData*) user_data;
  GError *error = NULL;
  guint OUT_state;
  dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_UINT, &OUT_state, G_TYPE_INVALID);
  (*(xfsm_manager_dbus_client_get_state_reply)data->cb) (proxy, OUT_state, error, data->userdata);
  return;
}

static
#ifdef G_HAVE_INLINE
inline
#endif
DBusGProxyCall*
xfsm_manager_dbus_client_get_state_async (DBusGProxy *proxy, xfsm_manager_dbus_client_get_state_reply callback, gpointer userdata)

{
  DBusGAsyncData *stuff;
  stuff = g_new (DBusGAsyncData, 1);
  stuff->cb = G_CALLBACK (callback);
  stuff->userdata = userdata;
  return dbus_g_proxy_begin_call (proxy, "GetState", xfsm_manager_dbus_client_get_state_async_callback, stuff, g_free, G_TYPE_INVALID);
}
static
#ifdef G_HAVE_INLINE
inline
#endif
gboolean
xfsm_manager_dbus_client_checkpoint (DBusGProxy *proxy, const char * IN_session_name, GError **error)

{
  return dbus_g_proxy_call (proxy, "Checkpoint", error, G_TYPE_STRING, IN_session_name, G_TYPE_INVALID, G_TYPE_INVALID);
}

typedef void (*xfsm_manager_dbus_client_checkpoint_reply) (DBusGProxy *proxy, GError *error, gpointer userdata);

static void
xfsm_manager_dbus_client_checkpoint_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
{
  DBusGAsyncData *data = (DBusGAsyncData*) user_data;
  GError *error = NULL;
  dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID);
  (*(xfsm_manager_dbus_client_checkpoint_reply)data->cb) (proxy, error, data->userdata);
  return;
}

static
#ifdef G_HAVE_INLINE
inline
#endif
DBusGProxyCall*
xfsm_manager_dbus_client_checkpoint_async (DBusGProxy *proxy, const char * IN_session_name, xfsm_manager_dbus_client_checkpoint_reply callback, gpointer userdata)

{
  DBusGAsyncData *stuff;
  stuff = g_new (DBusGAsyncData, 1);
  stuff->cb = G_CALLBACK (callback);
  stuff->userdata = userdata;
  return dbus_g_proxy_begin_call (proxy, "Checkpoint", xfsm_manager_dbus_client_checkpoint_async_callback, stuff, g_free, G_TYPE_STRING, IN_session_name, G_TYPE_INVALID);
}
static
#ifdef G_HAVE_INLINE
inline
#endif
gboolean
xfsm_manager_dbus_client_shutdown (DBusGProxy *proxy, const guint IN_type, const gboolean IN_allow_save, GError **error)

{
  return dbus_g_proxy_call (proxy, "Shutdown", error, G_TYPE_UINT, IN_type, G_TYPE_BOOLEAN, IN_allow_save, G_TYPE_INVALID, G_TYPE_INVALID);
}

typedef void (*xfsm_manager_dbus_client_shutdown_reply) (DBusGProxy *proxy, GError *error, gpointer userdata);

static void
xfsm_manager_dbus_client_shutdown_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
{
  DBusGAsyncData *data = (DBusGAsyncData*) user_data;
  GError *error = NULL;
  dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_INVALID);
  (*(xfsm_manager_dbus_client_shutdown_reply)data->cb) (proxy, error, data->userdata);
  return;
}

static
#ifdef G_HAVE_INLINE
inline
#endif
DBusGProxyCall*
xfsm_manager_dbus_client_shutdown_async (DBusGProxy *proxy, const guint IN_type, const gboolean IN_allow_save, xfsm_manager_dbus_client_shutdown_reply callback, gpointer userdata)

{
  DBusGAsyncData *stuff;
  stuff = g_new (DBusGAsyncData, 1);
  stuff->cb = G_CALLBACK (callback);
  stuff->userdata = userdata;
  return dbus_g_proxy_begin_call (proxy, "Shutdown", xfsm_manager_dbus_client_shutdown_async_callback, stuff, g_free, G_TYPE_UINT, IN_type, G_TYPE_BOOLEAN, IN_allow_save, G_TYPE_INVALID);
}
#endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_org_xfce_Session_Manager */

G_END_DECLS
