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

#include <gio/gio.h>

G_BEGIN_DECLS


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

#define DLEYNA_SERVER_TYPE_MEDIA_DEVICE (dleyna_server_media_device_get_type ())
#define DLEYNA_SERVER_MEDIA_DEVICE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE, DleynaServerMediaDevice))
#define DLEYNA_SERVER_IS_MEDIA_DEVICE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE))
#define DLEYNA_SERVER_MEDIA_DEVICE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE, DleynaServerMediaDeviceIface))

struct _DleynaServerMediaDevice;
typedef struct _DleynaServerMediaDevice DleynaServerMediaDevice;
typedef struct _DleynaServerMediaDeviceIface DleynaServerMediaDeviceIface;

struct _DleynaServerMediaDeviceIface
{
  GTypeInterface parent_iface;

  const gchar * (*get_friendly_name) (DleynaServerMediaDevice *object);

  const gchar * (*get_udn) (DleynaServerMediaDevice *object);

};

GType dleyna_server_media_device_get_type (void) G_GNUC_CONST;

GDBusInterfaceInfo *dleyna_server_media_device_interface_info (void);
guint dleyna_server_media_device_override_properties (GObjectClass *klass, guint property_id_begin);


/* D-Bus property accessors: */
const gchar *dleyna_server_media_device_get_udn (DleynaServerMediaDevice *object);
gchar *dleyna_server_media_device_dup_udn (DleynaServerMediaDevice *object);
void dleyna_server_media_device_set_udn (DleynaServerMediaDevice *object, const gchar *value);

const gchar *dleyna_server_media_device_get_friendly_name (DleynaServerMediaDevice *object);
gchar *dleyna_server_media_device_dup_friendly_name (DleynaServerMediaDevice *object);
void dleyna_server_media_device_set_friendly_name (DleynaServerMediaDevice *object, const gchar *value);


/* ---- */

#define DLEYNA_SERVER_TYPE_MEDIA_DEVICE_PROXY (dleyna_server_media_device_proxy_get_type ())
#define DLEYNA_SERVER_MEDIA_DEVICE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_PROXY, DleynaServerMediaDeviceProxy))
#define DLEYNA_SERVER_MEDIA_DEVICE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_PROXY, DleynaServerMediaDeviceProxyClass))
#define DLEYNA_SERVER_MEDIA_DEVICE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_PROXY, DleynaServerMediaDeviceProxyClass))
#define DLEYNA_SERVER_IS_MEDIA_DEVICE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_PROXY))
#define DLEYNA_SERVER_IS_MEDIA_DEVICE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_PROXY))

typedef struct _DleynaServerMediaDeviceProxy DleynaServerMediaDeviceProxy;
typedef struct _DleynaServerMediaDeviceProxyClass DleynaServerMediaDeviceProxyClass;
typedef struct _DleynaServerMediaDeviceProxyPrivate DleynaServerMediaDeviceProxyPrivate;

struct _DleynaServerMediaDeviceProxy
{
  /*< private >*/
  GDBusProxy parent_instance;
  DleynaServerMediaDeviceProxyPrivate *priv;
};

struct _DleynaServerMediaDeviceProxyClass
{
  GDBusProxyClass parent_class;
};

GType dleyna_server_media_device_proxy_get_type (void) G_GNUC_CONST;

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

void dleyna_server_media_device_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
DleynaServerMediaDevice *dleyna_server_media_device_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error);
DleynaServerMediaDevice *dleyna_server_media_device_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error);

void dleyna_server_media_device_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data);
DleynaServerMediaDevice *dleyna_server_media_device_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error);
DleynaServerMediaDevice *dleyna_server_media_device_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_MEDIA_DEVICE_SKELETON (dleyna_server_media_device_skeleton_get_type ())
#define DLEYNA_SERVER_MEDIA_DEVICE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_SKELETON, DleynaServerMediaDeviceSkeleton))
#define DLEYNA_SERVER_MEDIA_DEVICE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_SKELETON, DleynaServerMediaDeviceSkeletonClass))
#define DLEYNA_SERVER_MEDIA_DEVICE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_SKELETON, DleynaServerMediaDeviceSkeletonClass))
#define DLEYNA_SERVER_IS_MEDIA_DEVICE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_SKELETON))
#define DLEYNA_SERVER_IS_MEDIA_DEVICE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DLEYNA_SERVER_TYPE_MEDIA_DEVICE_SKELETON))

typedef struct _DleynaServerMediaDeviceSkeleton DleynaServerMediaDeviceSkeleton;
typedef struct _DleynaServerMediaDeviceSkeletonClass DleynaServerMediaDeviceSkeletonClass;
typedef struct _DleynaServerMediaDeviceSkeletonPrivate DleynaServerMediaDeviceSkeletonPrivate;

struct _DleynaServerMediaDeviceSkeleton
{
  /*< private >*/
  GDBusInterfaceSkeleton parent_instance;
  DleynaServerMediaDeviceSkeletonPrivate *priv;
};

struct _DleynaServerMediaDeviceSkeletonClass
{
  GDBusInterfaceSkeletonClass parent_class;
};

GType dleyna_server_media_device_skeleton_get_type (void) G_GNUC_CONST;

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

DleynaServerMediaDevice *dleyna_server_media_device_skeleton_new (void);


G_END_DECLS

#endif /* __GOADLEYNASERVERMEDIADEVICE_H__ */
