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

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for org.gnome.Mutter.Clipboard */

#define META_DBUS_TYPE_CLIPBOARD (meta_dbus_clipboard_get_type ())
#define META_DBUS_CLIPBOARD(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), META_DBUS_TYPE_CLIPBOARD, MetaDBusClipboard))
#define META_DBUS_IS_CLIPBOARD(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), META_DBUS_TYPE_CLIPBOARD))
#define META_DBUS_CLIPBOARD_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), META_DBUS_TYPE_CLIPBOARD, MetaDBusClipboardIface))

struct _MetaDBusClipboard;
typedef struct _MetaDBusClipboard MetaDBusClipboard;
typedef struct _MetaDBusClipboardIface MetaDBusClipboardIface;

struct _MetaDBusClipboardIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_disable) (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation);

  gboolean (*handle_enable) (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_selection_read) (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    const gchar *arg_mime_type);

  gboolean (*handle_selection_write) (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    guint arg_serial);

  gboolean (*handle_selection_write_done) (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation,
    guint arg_serial,
    gboolean arg_success);

  gboolean (*handle_set_selection) (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  void (*selection_owner_changed) (
    MetaDBusClipboard *object,
    GVariant *arg_options);

  void (*selection_transfer) (
    MetaDBusClipboard *object,
    const gchar *arg_mime_type,
    guint arg_serial);

};

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

GType meta_dbus_clipboard_get_type (void);

GDBusInterfaceInfo *meta_dbus_clipboard_interface_info (void);
guint meta_dbus_clipboard_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void meta_dbus_clipboard_complete_enable (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation);

void meta_dbus_clipboard_complete_disable (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation);

void meta_dbus_clipboard_complete_set_selection (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation);

void meta_dbus_clipboard_complete_selection_write (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    GVariant *fd);

void meta_dbus_clipboard_complete_selection_write_done (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation);

void meta_dbus_clipboard_complete_selection_read (
    MetaDBusClipboard *object,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    GVariant *fd);



/* D-Bus signal emissions functions: */
void meta_dbus_clipboard_emit_selection_owner_changed (
    MetaDBusClipboard *object,
    GVariant *arg_options);

void meta_dbus_clipboard_emit_selection_transfer (
    MetaDBusClipboard *object,
    const gchar *arg_mime_type,
    guint arg_serial);



/* D-Bus method calls: */
void meta_dbus_clipboard_call_enable (
    MetaDBusClipboard *proxy,
    GVariant *arg_options,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_clipboard_call_enable_finish (
    MetaDBusClipboard *proxy,
    GAsyncResult *res,
    GError **error);

gboolean meta_dbus_clipboard_call_enable_sync (
    MetaDBusClipboard *proxy,
    GVariant *arg_options,
    GCancellable *cancellable,
    GError **error);

void meta_dbus_clipboard_call_disable (
    MetaDBusClipboard *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_clipboard_call_disable_finish (
    MetaDBusClipboard *proxy,
    GAsyncResult *res,
    GError **error);

gboolean meta_dbus_clipboard_call_disable_sync (
    MetaDBusClipboard *proxy,
    GCancellable *cancellable,
    GError **error);

void meta_dbus_clipboard_call_set_selection (
    MetaDBusClipboard *proxy,
    GVariant *arg_options,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_clipboard_call_set_selection_finish (
    MetaDBusClipboard *proxy,
    GAsyncResult *res,
    GError **error);

gboolean meta_dbus_clipboard_call_set_selection_sync (
    MetaDBusClipboard *proxy,
    GVariant *arg_options,
    GCancellable *cancellable,
    GError **error);

void meta_dbus_clipboard_call_selection_write (
    MetaDBusClipboard *proxy,
    guint arg_serial,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_clipboard_call_selection_write_finish (
    MetaDBusClipboard *proxy,
    GVariant ** out_fd,
    GUnixFDList **out_fd_list,
    GAsyncResult *res,
    GError **error);

gboolean meta_dbus_clipboard_call_selection_write_sync (
    MetaDBusClipboard *proxy,
    guint arg_serial,
    GUnixFDList  *fd_list,
    GVariant ** out_fd,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error);

void meta_dbus_clipboard_call_selection_write_done (
    MetaDBusClipboard *proxy,
    guint arg_serial,
    gboolean arg_success,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_clipboard_call_selection_write_done_finish (
    MetaDBusClipboard *proxy,
    GAsyncResult *res,
    GError **error);

gboolean meta_dbus_clipboard_call_selection_write_done_sync (
    MetaDBusClipboard *proxy,
    guint arg_serial,
    gboolean arg_success,
    GCancellable *cancellable,
    GError **error);

void meta_dbus_clipboard_call_selection_read (
    MetaDBusClipboard *proxy,
    const gchar *arg_mime_type,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean meta_dbus_clipboard_call_selection_read_finish (
    MetaDBusClipboard *proxy,
    GVariant ** out_fd,
    GUnixFDList **out_fd_list,
    GAsyncResult *res,
    GError **error);

gboolean meta_dbus_clipboard_call_selection_read_sync (
    MetaDBusClipboard *proxy,
    const gchar *arg_mime_type,
    GUnixFDList  *fd_list,
    GVariant ** out_fd,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define META_DBUS_TYPE_CLIPBOARD_PROXY (meta_dbus_clipboard_proxy_get_type ())
#define META_DBUS_CLIPBOARD_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), META_DBUS_TYPE_CLIPBOARD_PROXY, MetaDBusClipboardProxy))
#define META_DBUS_CLIPBOARD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), META_DBUS_TYPE_CLIPBOARD_PROXY, MetaDBusClipboardProxyClass))
#define META_DBUS_CLIPBOARD_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), META_DBUS_TYPE_CLIPBOARD_PROXY, MetaDBusClipboardProxyClass))
#define META_DBUS_IS_CLIPBOARD_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), META_DBUS_TYPE_CLIPBOARD_PROXY))
#define META_DBUS_IS_CLIPBOARD_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), META_DBUS_TYPE_CLIPBOARD_PROXY))

typedef struct _MetaDBusClipboardProxy MetaDBusClipboardProxy;
typedef struct _MetaDBusClipboardProxyClass MetaDBusClipboardProxyClass;
typedef struct _MetaDBusClipboardProxyPrivate MetaDBusClipboardProxyPrivate;

struct _MetaDBusClipboardProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  MetaDBusClipboardProxyPrivate *priv;
};

struct _MetaDBusClipboardProxyClass
{
  GDBusProxyClass parent_class;
};

GType meta_dbus_clipboard_proxy_get_type (void);

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

void meta_dbus_clipboard_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
MetaDBusClipboard *meta_dbus_clipboard_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
MetaDBusClipboard *meta_dbus_clipboard_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void meta_dbus_clipboard_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
MetaDBusClipboard *meta_dbus_clipboard_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
MetaDBusClipboard *meta_dbus_clipboard_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define META_DBUS_TYPE_CLIPBOARD_SKELETON (meta_dbus_clipboard_skeleton_get_type ())
#define META_DBUS_CLIPBOARD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), META_DBUS_TYPE_CLIPBOARD_SKELETON, MetaDBusClipboardSkeleton))
#define META_DBUS_CLIPBOARD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), META_DBUS_TYPE_CLIPBOARD_SKELETON, MetaDBusClipboardSkeletonClass))
#define META_DBUS_CLIPBOARD_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), META_DBUS_TYPE_CLIPBOARD_SKELETON, MetaDBusClipboardSkeletonClass))
#define META_DBUS_IS_CLIPBOARD_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), META_DBUS_TYPE_CLIPBOARD_SKELETON))
#define META_DBUS_IS_CLIPBOARD_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), META_DBUS_TYPE_CLIPBOARD_SKELETON))

typedef struct _MetaDBusClipboardSkeleton MetaDBusClipboardSkeleton;
typedef struct _MetaDBusClipboardSkeletonClass MetaDBusClipboardSkeletonClass;
typedef struct _MetaDBusClipboardSkeletonPrivate MetaDBusClipboardSkeletonPrivate;

struct _MetaDBusClipboardSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  MetaDBusClipboardSkeletonPrivate *priv;
};

struct _MetaDBusClipboardSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType meta_dbus_clipboard_skeleton_get_type (void);

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

MetaDBusClipboard *meta_dbus_clipboard_skeleton_new (void);


G_END_DECLS

#endif /* __META_DBUS_CLIPBOARD_H__ */
