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

#include <gio/gio.h>

G_BEGIN_DECLS


/* ------------------------------------------------------------------------ */
/* Declarations for com.intel.dLeynaServer.Manager */

#define DLEYNA_SERVER_TYPE_MANAGER (dleyna_server_manager_get_type ())
#define DLEYNA_SERVER_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DLEYNA_SERVER_TYPE_MANAGER, DleynaServerManager))
#define DLEYNA_SERVER_IS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DLEYNA_SERVER_TYPE_MANAGER))
#define DLEYNA_SERVER_MANAGER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), DLEYNA_SERVER_TYPE_MANAGER, DleynaServerManagerIface))

struct _DleynaServerManager;
typedef struct _DleynaServerManager DleynaServerManager;
typedef struct _DleynaServerManagerIface DleynaServerManagerIface;

struct _DleynaServerManagerIface
{
  GTypeInterface parent_iface;


  gboolean (*handle_get_servers) (
    DleynaServerManager *object,
    GDBusMethodInvocation *invocation);

  void (*found_server) (
    DleynaServerManager *object,
    const gchar *arg_Path);

  void (*lost_server) (
    DleynaServerManager *object,
    const gchar *arg_Path);

};

GType dleyna_server_manager_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *dleyna_server_manager_interface_info (void);
guint dleyna_server_manager_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus method call completion functions: */
void dleyna_server_manager_complete_get_servers (
    DleynaServerManager *object,
    GDBusMethodInvocation *invocation,
    const gchar *const *Servers);



/* D-Bus signal emissions functions: */
void dleyna_server_manager_emit_found_server (
    DleynaServerManager *object,
    const gchar *arg_Path);

void dleyna_server_manager_emit_lost_server (
    DleynaServerManager *object,
    const gchar *arg_Path);



/* D-Bus method calls: */
void dleyna_server_manager_call_get_servers (
    DleynaServerManager *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data);

gboolean dleyna_server_manager_call_get_servers_finish (
    DleynaServerManager *proxy,
    gchar ***out_Servers,
    GAsyncResult *res,
    GError **error);

gboolean dleyna_server_manager_call_get_servers_sync (
    DleynaServerManager *proxy,
    gchar ***out_Servers,
    GCancellable *cancellable,
    GError **error);



/* ---- */

#define DLEYNA_SERVER_TYPE_MANAGER_PROXY (dleyna_server_manager_proxy_get_type ())
#define DLEYNA_SERVER_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DLEYNA_SERVER_TYPE_MANAGER_PROXY, DleynaServerManagerProxy))
#define DLEYNA_SERVER_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), DLEYNA_SERVER_TYPE_MANAGER_PROXY, DleynaServerManagerProxyClass))
#define DLEYNA_SERVER_MANAGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DLEYNA_SERVER_TYPE_MANAGER_PROXY, DleynaServerManagerProxyClass))
#define DLEYNA_SERVER_IS_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DLEYNA_SERVER_TYPE_MANAGER_PROXY))
#define DLEYNA_SERVER_IS_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DLEYNA_SERVER_TYPE_MANAGER_PROXY))

typedef struct _DleynaServerManagerProxy DleynaServerManagerProxy;
typedef struct _DleynaServerManagerProxyClass DleynaServerManagerProxyClass;
typedef struct _DleynaServerManagerProxyPrivate DleynaServerManagerProxyPrivate;

struct _DleynaServerManagerProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  DleynaServerManagerProxyPrivate *priv;
};

struct _DleynaServerManagerProxyClass
{
  GDBusProxyClass parent_class;
};

GType dleyna_server_manager_proxy_get_type (void) G_GNUC_CONST;

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

void dleyna_server_manager_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
DleynaServerManager *dleyna_server_manager_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
DleynaServerManager *dleyna_server_manager_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void dleyna_server_manager_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
DleynaServerManager *dleyna_server_manager_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
DleynaServerManager *dleyna_server_manager_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);


/* ---- */

#define DLEYNA_SERVER_TYPE_MANAGER_SKELETON (dleyna_server_manager_skeleton_get_type ())
#define DLEYNA_SERVER_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DLEYNA_SERVER_TYPE_MANAGER_SKELETON, DleynaServerManagerSkeleton))
#define DLEYNA_SERVER_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), DLEYNA_SERVER_TYPE_MANAGER_SKELETON, DleynaServerManagerSkeletonClass))
#define DLEYNA_SERVER_MANAGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DLEYNA_SERVER_TYPE_MANAGER_SKELETON, DleynaServerManagerSkeletonClass))
#define DLEYNA_SERVER_IS_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DLEYNA_SERVER_TYPE_MANAGER_SKELETON))
#define DLEYNA_SERVER_IS_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DLEYNA_SERVER_TYPE_MANAGER_SKELETON))

typedef struct _DleynaServerManagerSkeleton DleynaServerManagerSkeleton;
typedef struct _DleynaServerManagerSkeletonClass DleynaServerManagerSkeletonClass;
typedef struct _DleynaServerManagerSkeletonPrivate DleynaServerManagerSkeletonPrivate;

struct _DleynaServerManagerSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  DleynaServerManagerSkeletonPrivate *priv;
};

struct _DleynaServerManagerSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType dleyna_server_manager_skeleton_get_type (void) G_GNUC_CONST;

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

DleynaServerManager *dleyna_server_manager_skeleton_new (void);


G_END_DECLS

#endif /* __GOADLEYNASERVERMANAGER_H__ */
