/*
 * 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.
 */

#ifdef HAVE_CONFIG_H
#  include "config.h"
#endif

#include "grl-dleyna-proxy-mediaserver2.h"

#include <string.h>
#ifdef G_OS_UNIX
#  include <gio/gunixfdlist.h>
#endif

#ifdef G_ENABLE_DEBUG
#define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
#define g_marshal_value_peek_char(v)     g_value_get_schar (v)
#define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
#define g_marshal_value_peek_int(v)      g_value_get_int (v)
#define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
#define g_marshal_value_peek_long(v)     g_value_get_long (v)
#define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
#define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
#define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
#define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
#define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
#define g_marshal_value_peek_float(v)    g_value_get_float (v)
#define g_marshal_value_peek_double(v)   g_value_get_double (v)
#define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
#define g_marshal_value_peek_param(v)    g_value_get_param (v)
#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
#define g_marshal_value_peek_object(v)   g_value_get_object (v)
#define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
#else /* !G_ENABLE_DEBUG */
/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
 *          Do not access GValues directly in your code. Instead, use the
 *          g_value_get_*() functions
 */
#define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
#define g_marshal_value_peek_char(v)     (v)->data[0].v_int
#define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
#define g_marshal_value_peek_int(v)      (v)->data[0].v_int
#define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
#define g_marshal_value_peek_long(v)     (v)->data[0].v_long
#define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
#define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
#define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
#define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
#define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
#define g_marshal_value_peek_float(v)    (v)->data[0].v_float
#define g_marshal_value_peek_double(v)   (v)->data[0].v_double
#define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
#define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
#define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
#endif /* !G_ENABLE_DEBUG */

typedef struct
{
  GDBusArgInfo parent_struct;
  gboolean use_gvariant;
} _ExtendedGDBusArgInfo;

typedef struct
{
  GDBusMethodInfo parent_struct;
  const gchar *signal_name;
  gboolean pass_fdlist;
} _ExtendedGDBusMethodInfo;

typedef struct
{
  GDBusSignalInfo parent_struct;
  const gchar *signal_name;
} _ExtendedGDBusSignalInfo;

typedef struct
{
  GDBusPropertyInfo parent_struct;
  const gchar *hyphen_name;
  guint use_gvariant : 1;
  guint emits_changed_signal : 1;
} _ExtendedGDBusPropertyInfo;

typedef struct
{
  GDBusInterfaceInfo parent_struct;
  const gchar *hyphen_name;
} _ExtendedGDBusInterfaceInfo;

typedef struct
{
  const _ExtendedGDBusPropertyInfo *info;
  guint prop_id;
  GValue orig_value; /* the value before the change */
} ChangedProperty;

static void
_changed_property_free (ChangedProperty *data)
{
  g_value_unset (&data->orig_value);
  g_free (data);
}

static gboolean
_g_strv_equal0 (gchar **a, gchar **b)
{
  gboolean ret = FALSE;
  guint n;
  if (a == NULL && b == NULL)
    {
      ret = TRUE;
      goto out;
    }
  if (a == NULL || b == NULL)
    goto out;
  if (g_strv_length (a) != g_strv_length (b))
    goto out;
  for (n = 0; a[n] != NULL; n++)
    if (g_strcmp0 (a[n], b[n]) != 0)
      goto out;
  ret = TRUE;
out:
  return ret;
}

static gboolean
_g_variant_equal0 (GVariant *a, GVariant *b)
{
  gboolean ret = FALSE;
  if (a == NULL && b == NULL)
    {
      ret = TRUE;
      goto out;
    }
  if (a == NULL || b == NULL)
    goto out;
  ret = g_variant_equal (a, b);
out:
  return ret;
}

G_GNUC_UNUSED static gboolean
_g_value_equal (const GValue *a, const GValue *b)
{
  gboolean ret = FALSE;
  g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
  switch (G_VALUE_TYPE (a))
    {
      case G_TYPE_BOOLEAN:
        ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
        break;
      case G_TYPE_UCHAR:
        ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
        break;
      case G_TYPE_INT:
        ret = (g_value_get_int (a) == g_value_get_int (b));
        break;
      case G_TYPE_UINT:
        ret = (g_value_get_uint (a) == g_value_get_uint (b));
        break;
      case G_TYPE_INT64:
        ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
        break;
      case G_TYPE_UINT64:
        ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
        break;
      case G_TYPE_DOUBLE:
        {
          /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
          gdouble da = g_value_get_double (a);
          gdouble db = g_value_get_double (b);
          ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
        }
        break;
      case G_TYPE_STRING:
        ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
        break;
      case G_TYPE_VARIANT:
        ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
        break;
      default:
        if (G_VALUE_TYPE (a) == G_TYPE_STRV)
          ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
        else
          g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
        break;
    }
  return ret;
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 2);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT_BOXED (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantBoxedFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        GVariant *arg_ToAddUpdate,
        const gchar *const *arg_ToDelete,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectVariantBoxedFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 4);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectVariantBoxedFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_variant (param_values + 2),
              g_marshal_value_peek_boxed (param_values + 3),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT_UINT_BOXED (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintUintBoxedFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        guint arg_Offset,
        guint arg_Max,
        const gchar *const *arg_Filter,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectUintUintBoxedFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 5);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectUintUintBoxedFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_uint (param_values + 2),
              g_marshal_value_peek_uint (param_values + 3),
              g_marshal_value_peek_boxed (param_values + 4),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT_UINT_BOXED_STRING (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintUintBoxedStringFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        guint arg_Offset,
        guint arg_Max,
        const gchar *const *arg_Filter,
        const gchar *arg_SortBy,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectUintUintBoxedStringFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 6);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectUintUintBoxedStringFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_uint (param_values + 2),
              g_marshal_value_peek_uint (param_values + 3),
              g_marshal_value_peek_boxed (param_values + 4),
              g_marshal_value_peek_string (param_values + 5),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_UINT_UINT_BOXED (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringUintUintBoxedFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        const gchar *arg_Query,
        guint arg_Offset,
        guint arg_Max,
        const gchar *const *arg_Filter,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectStringUintUintBoxedFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 6);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectStringUintUintBoxedFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_string (param_values + 2),
              g_marshal_value_peek_uint (param_values + 3),
              g_marshal_value_peek_uint (param_values + 4),
              g_marshal_value_peek_boxed (param_values + 5),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_UINT_UINT_BOXED_STRING (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringUintUintBoxedStringFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        const gchar *arg_Query,
        guint arg_Offset,
        guint arg_Max,
        const gchar *const *arg_Filter,
        const gchar *arg_SortBy,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectStringUintUintBoxedStringFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 7);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectStringUintUintBoxedStringFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_string (param_values + 2),
              g_marshal_value_peek_uint (param_values + 3),
              g_marshal_value_peek_uint (param_values + 4),
              g_marshal_value_peek_boxed (param_values + 5),
              g_marshal_value_peek_string (param_values + 6),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringStringFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        const gchar *arg_DisplayName,
        const gchar *arg_FilePath,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectStringStringFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 4);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectStringStringFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_string (param_values + 2),
              g_marshal_value_peek_string (param_values + 3),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_BOXED (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringStringBoxedFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        const gchar *arg_DisplayName,
        const gchar *arg_Type,
        const gchar *const *arg_ChildTypes,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectStringStringBoxedFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 5);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectStringStringBoxedFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_string (param_values + 2),
              g_marshal_value_peek_string (param_values + 3),
              g_marshal_value_peek_boxed (param_values + 4),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING_STRING_BOXED (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringStringStringStringBoxedFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        const gchar *arg_Title,
        const gchar *arg_Creator,
        const gchar *arg_Genre,
        const gchar *arg_Description,
        const gchar *const *arg_PlaylistItems,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectStringStringStringStringBoxedFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 7);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectStringStringStringStringBoxedFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_string (param_values + 2),
              g_marshal_value_peek_string (param_values + 3),
              g_marshal_value_peek_string (param_values + 4),
              g_marshal_value_peek_string (param_values + 5),
              g_marshal_value_peek_boxed (param_values + 6),
              data2);

  g_value_set_boolean (return_value, v_return);
}

static void
_g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_BOXED (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint G_GNUC_UNUSED,
    void         *marshal_data)
{
  typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringBoxedFunc)
       (void *data1,
        GDBusMethodInvocation *arg_method_invocation,
        const gchar *arg_ProtocolInfo,
        const gchar *const *arg_Filter,
        void *data2);
  _GDbusCodegenMarshalBoolean_ObjectStringBoxedFunc callback;
  GCClosure *cc = (GCClosure*) closure;
  void *data1, *data2;
  gboolean v_return;

  g_return_if_fail (return_value != NULL);
  g_return_if_fail (n_param_values == 4);

  if (G_CCLOSURE_SWAP_DATA (closure))
    {
      data1 = closure->data;
      data2 = g_value_peek_pointer (param_values + 0);
    }
  else
    {
      data1 = g_value_peek_pointer (param_values + 0);
      data2 = closure->data;
    }

  callback = (_GDbusCodegenMarshalBoolean_ObjectStringBoxedFunc)
    (marshal_data ? marshal_data : cc->callback);

  v_return =
    callback (data1,
              g_marshal_value_peek_object (param_values + 1),
              g_marshal_value_peek_string (param_values + 2),
              g_marshal_value_peek_boxed (param_values + 3),
              data2);

  g_value_set_boolean (return_value, v_return);
}

/* ------------------------------------------------------------------------
 * Code for interface org.gnome.UPnP.MediaObject2
 * ------------------------------------------------------------------------
 */

/**
 * SECTION:GrlDleynaMediaObject2
 * @title: GrlDleynaMediaObject2
 * @short_description: Generated C code for the org.gnome.UPnP.MediaObject2 D-Bus interface
 *
 * This section contains code for working with the <link linkend="gdbus-interface-org-gnome-UPnP-MediaObject2.top_of_page">org.gnome.UPnP.MediaObject2</link> D-Bus interface in C.
 */

/* ---- Introspection data for org.gnome.UPnP.MediaObject2 ---- */

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_object2_method_info_delete =
{
  {
    -1,
    (gchar *) "Delete",
    NULL,
    NULL,
    NULL
  },
  "handle-delete",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_object2_method_info_update_IN_ARG_ToAddUpdate =
{
  {
    -1,
    (gchar *) "ToAddUpdate",
    (gchar *) "a{sv}",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_object2_method_info_update_IN_ARG_ToDelete =
{
  {
    -1,
    (gchar *) "ToDelete",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_object2_method_info_update_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_object2_method_info_update_IN_ARG_ToAddUpdate.parent_struct,
  &_grl_dleyna_media_object2_method_info_update_IN_ARG_ToDelete.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_object2_method_info_update =
{
  {
    -1,
    (gchar *) "Update",
    (GDBusArgInfo **) &_grl_dleyna_media_object2_method_info_update_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-update",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_object2_method_info_get_meta_data_OUT_ARG_MetaData =
{
  {
    -1,
    (gchar *) "MetaData",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_object2_method_info_get_meta_data_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_object2_method_info_get_meta_data_OUT_ARG_MetaData.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_object2_method_info_get_meta_data =
{
  {
    -1,
    (gchar *) "GetMetaData",
    NULL,
    (GDBusArgInfo **) &_grl_dleyna_media_object2_method_info_get_meta_data_OUT_ARG_pointers,
    NULL
  },
  "handle-get-meta-data",
  FALSE
};

static const GDBusMethodInfo * const _grl_dleyna_media_object2_method_info_pointers[] =
{
  &_grl_dleyna_media_object2_method_info_delete.parent_struct,
  &_grl_dleyna_media_object2_method_info_update.parent_struct,
  &_grl_dleyna_media_object2_method_info_get_meta_data.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_object2_property_info_parent =
{
  {
    -1,
    (gchar *) "Parent",
    (gchar *) "o",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "parent",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_object2_property_info_type_ =
{
  {
    -1,
    (gchar *) "Type",
    (gchar *) "s",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "type",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_object2_property_info_path =
{
  {
    -1,
    (gchar *) "Path",
    (gchar *) "o",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "path",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_object2_property_info_display_name =
{
  {
    -1,
    (gchar *) "DisplayName",
    (gchar *) "s",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "display-name",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_object2_property_info_creator =
{
  {
    -1,
    (gchar *) "Creator",
    (gchar *) "s",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "creator",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_object2_property_info_restricted =
{
  {
    -1,
    (gchar *) "Restricted",
    (gchar *) "b",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "restricted",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_object2_property_info_dlnamanaged =
{
  {
    -1,
    (gchar *) "DLNAManaged",
    (gchar *) "a{sb}",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "dlnamanaged",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_object2_property_info_object_update_id =
{
  {
    -1,
    (gchar *) "ObjectUpdateID",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "object-update-id",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _grl_dleyna_media_object2_property_info_pointers[] =
{
  &_grl_dleyna_media_object2_property_info_parent.parent_struct,
  &_grl_dleyna_media_object2_property_info_type_.parent_struct,
  &_grl_dleyna_media_object2_property_info_path.parent_struct,
  &_grl_dleyna_media_object2_property_info_display_name.parent_struct,
  &_grl_dleyna_media_object2_property_info_creator.parent_struct,
  &_grl_dleyna_media_object2_property_info_restricted.parent_struct,
  &_grl_dleyna_media_object2_property_info_dlnamanaged.parent_struct,
  &_grl_dleyna_media_object2_property_info_object_update_id.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _grl_dleyna_media_object2_interface_info =
{
  {
    -1,
    (gchar *) "org.gnome.UPnP.MediaObject2",
    (GDBusMethodInfo **) &_grl_dleyna_media_object2_method_info_pointers,
    NULL,
    (GDBusPropertyInfo **) &_grl_dleyna_media_object2_property_info_pointers,
    NULL
  },
  "media-object2",
};


/**
 * grl_dleyna_media_object2_interface_info:
 *
 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-gnome-UPnP-MediaObject2.top_of_page">org.gnome.UPnP.MediaObject2</link> D-Bus interface.
 *
 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
 */
GDBusInterfaceInfo *
grl_dleyna_media_object2_interface_info (void)
{
  return (GDBusInterfaceInfo *) &_grl_dleyna_media_object2_interface_info.parent_struct;
}

/**
 * grl_dleyna_media_object2_override_properties:
 * @klass: The class structure for a #GObject derived class.
 * @property_id_begin: The property id to assign to the first overridden property.
 *
 * Overrides all #GObject properties in the #GrlDleynaMediaObject2 interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
grl_dleyna_media_object2_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "parent");
  g_object_class_override_property (klass, property_id_begin++, "type");
  g_object_class_override_property (klass, property_id_begin++, "path");
  g_object_class_override_property (klass, property_id_begin++, "display-name");
  g_object_class_override_property (klass, property_id_begin++, "creator");
  g_object_class_override_property (klass, property_id_begin++, "restricted");
  g_object_class_override_property (klass, property_id_begin++, "dlnamanaged");
  g_object_class_override_property (klass, property_id_begin++, "object-update-id");
  return property_id_begin - 1;
}


inline static void
grl_dleyna_media_object2_method_marshal_delete (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_object2_method_marshal_update (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT_BOXED (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_object2_method_marshal_get_meta_data (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}


/**
 * GrlDleynaMediaObject2:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaObject2.top_of_page">org.gnome.UPnP.MediaObject2</link>.
 */

/**
 * GrlDleynaMediaObject2Iface:
 * @parent_iface: The parent interface.
 * @handle_delete: Handler for the #GrlDleynaMediaObject2::handle-delete signal.
 * @handle_get_meta_data: Handler for the #GrlDleynaMediaObject2::handle-get-meta-data signal.
 * @handle_update: Handler for the #GrlDleynaMediaObject2::handle-update signal.
 * @get_creator: Getter for the #GrlDleynaMediaObject2:creator property.
 * @get_display_name: Getter for the #GrlDleynaMediaObject2:display-name property.
 * @get_dlnamanaged: Getter for the #GrlDleynaMediaObject2:dlnamanaged property.
 * @get_object_update_id: Getter for the #GrlDleynaMediaObject2:object-update-id property.
 * @get_parent: Getter for the #GrlDleynaMediaObject2:parent property.
 * @get_path: Getter for the #GrlDleynaMediaObject2:path property.
 * @get_restricted: Getter for the #GrlDleynaMediaObject2:restricted property.
 * @get_type_: Getter for the #GrlDleynaMediaObject2:type property.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaObject2.top_of_page">org.gnome.UPnP.MediaObject2</link>.
 */

typedef GrlDleynaMediaObject2Iface GrlDleynaMediaObject2Interface;
G_DEFINE_INTERFACE (GrlDleynaMediaObject2, grl_dleyna_media_object2, G_TYPE_OBJECT)

static void
grl_dleyna_media_object2_default_init (GrlDleynaMediaObject2Iface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * GrlDleynaMediaObject2::handle-delete:
   * @object: A #GrlDleynaMediaObject2.
   * @invocation: A #GDBusMethodInvocation.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.Delete">Delete()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_object2_complete_delete() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-delete",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaObject2Iface, handle_delete),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_object2_method_marshal_delete,
    G_TYPE_BOOLEAN,
    1,
    G_TYPE_DBUS_METHOD_INVOCATION);

  /**
   * GrlDleynaMediaObject2::handle-update:
   * @object: A #GrlDleynaMediaObject2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_ToAddUpdate: Argument passed by remote caller.
   * @arg_ToDelete: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.Update">Update()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_object2_complete_update() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-update",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaObject2Iface, handle_update),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_object2_method_marshal_update,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT, G_TYPE_STRV);

  /**
   * GrlDleynaMediaObject2::handle-get-meta-data:
   * @object: A #GrlDleynaMediaObject2.
   * @invocation: A #GDBusMethodInvocation.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.GetMetaData">GetMetaData()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_object2_complete_get_meta_data() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-get-meta-data",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaObject2Iface, handle_get_meta_data),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_object2_method_marshal_get_meta_data,
    G_TYPE_BOOLEAN,
    1,
    G_TYPE_DBUS_METHOD_INVOCATION);

  /* GObject properties for D-Bus properties: */
  /**
   * GrlDleynaMediaObject2:parent:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Parent">"Parent"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_string ("parent", "Parent", "Parent", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaObject2:type:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Type">"Type"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_string ("type", "Type", "Type", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaObject2:path:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Path">"Path"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_string ("path", "Path", "Path", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaObject2:display-name:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.DisplayName">"DisplayName"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_string ("display-name", "DisplayName", "DisplayName", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaObject2:creator:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Creator">"Creator"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_string ("creator", "Creator", "Creator", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaObject2:restricted:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Restricted">"Restricted"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_boolean ("restricted", "Restricted", "Restricted", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaObject2:dlnamanaged:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.DLNAManaged">"DLNAManaged"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_variant ("dlnamanaged", "DLNAManaged", "DLNAManaged", G_VARIANT_TYPE ("a{sb}"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaObject2:object-update-id:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.ObjectUpdateID">"ObjectUpdateID"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_uint ("object-update-id", "ObjectUpdateID", "ObjectUpdateID", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * grl_dleyna_media_object2_get_parent: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Parent">"Parent"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_object2_dup_parent() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
const gchar *
grl_dleyna_media_object2_get_parent (GrlDleynaMediaObject2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_OBJECT2 (object), NULL);

  return GRL_DLEYNA_MEDIA_OBJECT2_GET_IFACE (object)->get_parent (object);
}

/**
 * grl_dleyna_media_object2_dup_parent: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Parent">"Parent"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
 */
gchar *
grl_dleyna_media_object2_dup_parent (GrlDleynaMediaObject2 *object)
{
  gchar *value;
  g_object_get (G_OBJECT (object), "parent", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_object2_set_parent: (skip)
 * @object: A #GrlDleynaMediaObject2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Parent">"Parent"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_object2_set_parent (GrlDleynaMediaObject2 *object, const gchar *value)
{
  g_object_set (G_OBJECT (object), "parent", value, NULL);
}

/**
 * grl_dleyna_media_object2_get_type_: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Type">"Type"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_object2_dup_type_() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
const gchar *
grl_dleyna_media_object2_get_type_ (GrlDleynaMediaObject2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_OBJECT2 (object), NULL);

  return GRL_DLEYNA_MEDIA_OBJECT2_GET_IFACE (object)->get_type_ (object);
}

/**
 * grl_dleyna_media_object2_dup_type_: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Type">"Type"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
 */
gchar *
grl_dleyna_media_object2_dup_type_ (GrlDleynaMediaObject2 *object)
{
  gchar *value;
  g_object_get (G_OBJECT (object), "type", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_object2_set_type_: (skip)
 * @object: A #GrlDleynaMediaObject2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Type">"Type"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_object2_set_type_ (GrlDleynaMediaObject2 *object, const gchar *value)
{
  g_object_set (G_OBJECT (object), "type", value, NULL);
}

/**
 * grl_dleyna_media_object2_get_path: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Path">"Path"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_object2_dup_path() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
const gchar *
grl_dleyna_media_object2_get_path (GrlDleynaMediaObject2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_OBJECT2 (object), NULL);

  return GRL_DLEYNA_MEDIA_OBJECT2_GET_IFACE (object)->get_path (object);
}

/**
 * grl_dleyna_media_object2_dup_path: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Path">"Path"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
 */
gchar *
grl_dleyna_media_object2_dup_path (GrlDleynaMediaObject2 *object)
{
  gchar *value;
  g_object_get (G_OBJECT (object), "path", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_object2_set_path: (skip)
 * @object: A #GrlDleynaMediaObject2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Path">"Path"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_object2_set_path (GrlDleynaMediaObject2 *object, const gchar *value)
{
  g_object_set (G_OBJECT (object), "path", value, NULL);
}

/**
 * grl_dleyna_media_object2_get_display_name: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.DisplayName">"DisplayName"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_object2_dup_display_name() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
const gchar *
grl_dleyna_media_object2_get_display_name (GrlDleynaMediaObject2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_OBJECT2 (object), NULL);

  return GRL_DLEYNA_MEDIA_OBJECT2_GET_IFACE (object)->get_display_name (object);
}

/**
 * grl_dleyna_media_object2_dup_display_name: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.DisplayName">"DisplayName"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
 */
gchar *
grl_dleyna_media_object2_dup_display_name (GrlDleynaMediaObject2 *object)
{
  gchar *value;
  g_object_get (G_OBJECT (object), "display-name", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_object2_set_display_name: (skip)
 * @object: A #GrlDleynaMediaObject2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.DisplayName">"DisplayName"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_object2_set_display_name (GrlDleynaMediaObject2 *object, const gchar *value)
{
  g_object_set (G_OBJECT (object), "display-name", value, NULL);
}

/**
 * grl_dleyna_media_object2_get_creator: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Creator">"Creator"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_object2_dup_creator() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
const gchar *
grl_dleyna_media_object2_get_creator (GrlDleynaMediaObject2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_OBJECT2 (object), NULL);

  return GRL_DLEYNA_MEDIA_OBJECT2_GET_IFACE (object)->get_creator (object);
}

/**
 * grl_dleyna_media_object2_dup_creator: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Creator">"Creator"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
 */
gchar *
grl_dleyna_media_object2_dup_creator (GrlDleynaMediaObject2 *object)
{
  gchar *value;
  g_object_get (G_OBJECT (object), "creator", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_object2_set_creator: (skip)
 * @object: A #GrlDleynaMediaObject2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Creator">"Creator"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_object2_set_creator (GrlDleynaMediaObject2 *object, const gchar *value)
{
  g_object_set (G_OBJECT (object), "creator", value, NULL);
}

/**
 * grl_dleyna_media_object2_get_restricted: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Restricted">"Restricted"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: The property value.
 */
gboolean 
grl_dleyna_media_object2_get_restricted (GrlDleynaMediaObject2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_OBJECT2 (object), FALSE);

  return GRL_DLEYNA_MEDIA_OBJECT2_GET_IFACE (object)->get_restricted (object);
}

/**
 * grl_dleyna_media_object2_set_restricted: (skip)
 * @object: A #GrlDleynaMediaObject2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.Restricted">"Restricted"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_object2_set_restricted (GrlDleynaMediaObject2 *object, gboolean value)
{
  g_object_set (G_OBJECT (object), "restricted", value, NULL);
}

/**
 * grl_dleyna_media_object2_get_dlnamanaged: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.DLNAManaged">"DLNAManaged"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_object2_dup_dlnamanaged() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
GVariant *
grl_dleyna_media_object2_get_dlnamanaged (GrlDleynaMediaObject2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_OBJECT2 (object), NULL);

  return GRL_DLEYNA_MEDIA_OBJECT2_GET_IFACE (object)->get_dlnamanaged (object);
}

/**
 * grl_dleyna_media_object2_dup_dlnamanaged: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.DLNAManaged">"DLNAManaged"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref().
 */
GVariant *
grl_dleyna_media_object2_dup_dlnamanaged (GrlDleynaMediaObject2 *object)
{
  GVariant *value;
  g_object_get (G_OBJECT (object), "dlnamanaged", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_object2_set_dlnamanaged: (skip)
 * @object: A #GrlDleynaMediaObject2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.DLNAManaged">"DLNAManaged"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_object2_set_dlnamanaged (GrlDleynaMediaObject2 *object, GVariant *value)
{
  g_object_set (G_OBJECT (object), "dlnamanaged", value, NULL);
}

/**
 * grl_dleyna_media_object2_get_object_update_id: (skip)
 * @object: A #GrlDleynaMediaObject2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.ObjectUpdateID">"ObjectUpdateID"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: The property value.
 */
guint 
grl_dleyna_media_object2_get_object_update_id (GrlDleynaMediaObject2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_OBJECT2 (object), 0);

  return GRL_DLEYNA_MEDIA_OBJECT2_GET_IFACE (object)->get_object_update_id (object);
}

/**
 * grl_dleyna_media_object2_set_object_update_id: (skip)
 * @object: A #GrlDleynaMediaObject2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaObject2.ObjectUpdateID">"ObjectUpdateID"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_object2_set_object_update_id (GrlDleynaMediaObject2 *object, guint value)
{
  g_object_set (G_OBJECT (object), "object-update-id", value, NULL);
}

/**
 * grl_dleyna_media_object2_call_delete:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.Delete">Delete()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_object2_call_delete_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_object2_call_delete_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_object2_call_delete (
    GrlDleynaMediaObject2 *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Delete",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_object2_call_delete_finish:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_object2_call_delete().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_object2_call_delete().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_object2_call_delete_finish (
    GrlDleynaMediaObject2 *proxy,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "()");
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_object2_call_delete_sync:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.Delete">Delete()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_object2_call_delete() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_object2_call_delete_sync (
    GrlDleynaMediaObject2 *proxy,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Delete",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "()");
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_object2_call_update:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @arg_ToAddUpdate: Argument to pass with the method invocation.
 * @arg_ToDelete: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.Update">Update()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_object2_call_update_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_object2_call_update_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_object2_call_update (
    GrlDleynaMediaObject2 *proxy,
    GVariant *arg_ToAddUpdate,
    const gchar *const *arg_ToDelete,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Update",
    g_variant_new ("(@a{sv}^as)",
                   arg_ToAddUpdate,
                   arg_ToDelete),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_object2_call_update_finish:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_object2_call_update().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_object2_call_update().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_object2_call_update_finish (
    GrlDleynaMediaObject2 *proxy,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "()");
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_object2_call_update_sync:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @arg_ToAddUpdate: Argument to pass with the method invocation.
 * @arg_ToDelete: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.Update">Update()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_object2_call_update() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_object2_call_update_sync (
    GrlDleynaMediaObject2 *proxy,
    GVariant *arg_ToAddUpdate,
    const gchar *const *arg_ToDelete,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Update",
    g_variant_new ("(@a{sv}^as)",
                   arg_ToAddUpdate,
                   arg_ToDelete),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "()");
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_object2_call_get_meta_data:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.GetMetaData">GetMetaData()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_object2_call_get_meta_data_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_object2_call_get_meta_data_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_object2_call_get_meta_data (
    GrlDleynaMediaObject2 *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "GetMetaData",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_object2_call_get_meta_data_finish:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @out_MetaData: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_object2_call_get_meta_data().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_object2_call_get_meta_data().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_object2_call_get_meta_data_finish (
    GrlDleynaMediaObject2 *proxy,
    gchar **out_MetaData,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(s)",
                 out_MetaData);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_object2_call_get_meta_data_sync:
 * @proxy: A #GrlDleynaMediaObject2Proxy.
 * @out_MetaData: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.GetMetaData">GetMetaData()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_object2_call_get_meta_data() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_object2_call_get_meta_data_sync (
    GrlDleynaMediaObject2 *proxy,
    gchar **out_MetaData,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "GetMetaData",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(s)",
                 out_MetaData);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_object2_complete_delete:
 * @object: A #GrlDleynaMediaObject2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.Delete">Delete()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_object2_complete_delete (
    GrlDleynaMediaObject2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * grl_dleyna_media_object2_complete_update:
 * @object: A #GrlDleynaMediaObject2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.Update">Update()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_object2_complete_update (
    GrlDleynaMediaObject2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * grl_dleyna_media_object2_complete_get_meta_data:
 * @object: A #GrlDleynaMediaObject2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @MetaData: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaObject2.GetMetaData">GetMetaData()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_object2_complete_get_meta_data (
    GrlDleynaMediaObject2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *MetaData)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(s)",
                   MetaData));
}

/* ------------------------------------------------------------------------ */

/**
 * GrlDleynaMediaObject2Proxy:
 *
 * The #GrlDleynaMediaObject2Proxy structure contains only private data and should only be accessed using the provided API.
 */

/**
 * GrlDleynaMediaObject2ProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #GrlDleynaMediaObject2Proxy.
 */

struct _GrlDleynaMediaObject2ProxyPrivate
{
  GData *qdata;
};

static void grl_dleyna_media_object2_proxy_iface_init (GrlDleynaMediaObject2Iface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (GrlDleynaMediaObject2Proxy, grl_dleyna_media_object2_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (GrlDleynaMediaObject2Proxy)
                         G_IMPLEMENT_INTERFACE (GRL_DLEYNA_TYPE_MEDIA_OBJECT2, grl_dleyna_media_object2_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (GrlDleynaMediaObject2Proxy, grl_dleyna_media_object2_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (GRL_DLEYNA_TYPE_MEDIA_OBJECT2, grl_dleyna_media_object2_proxy_iface_init))

#endif
static void
grl_dleyna_media_object2_proxy_finalize (GObject *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (grl_dleyna_media_object2_proxy_parent_class)->finalize (object);
}

static void
grl_dleyna_media_object2_proxy_get_property (GObject      *object,
  guint         prop_id,
  GValue       *value,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
  const _ExtendedGDBusPropertyInfo *info;
  GVariant *variant;
  g_assert (prop_id != 0 && prop_id - 1 < 8);
  info = (const _ExtendedGDBusPropertyInfo *) _grl_dleyna_media_object2_property_info_pointers[prop_id - 1];
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name);
  if (info->use_gvariant)
    {
      g_value_set_variant (value, variant);
    }
  else
    {
      if (variant != NULL)
        g_dbus_gvariant_to_gvalue (variant, value);
    }
  if (variant != NULL)
    g_variant_unref (variant);
}

static void
grl_dleyna_media_object2_proxy_set_property_cb (GDBusProxy *proxy,
  GAsyncResult *res,
  gpointer      user_data)
{
  const _ExtendedGDBusPropertyInfo *info = user_data;
  GError *error;
  GVariant *_ret;
  error = NULL;
  _ret = g_dbus_proxy_call_finish (proxy, res, &error);
  if (!_ret)
    {
      g_warning ("Error setting property '%s' on interface org.gnome.UPnP.MediaObject2: %s (%s, %d)",
                 info->parent_struct.name, 
                 error->message, g_quark_to_string (error->domain), error->code);
      g_error_free (error);
    }
  else
    {
      g_variant_unref (_ret);
    }
}

static void
grl_dleyna_media_object2_proxy_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
  const _ExtendedGDBusPropertyInfo *info;
  GVariant *variant;
  g_assert (prop_id != 0 && prop_id - 1 < 8);
  info = (const _ExtendedGDBusPropertyInfo *) _grl_dleyna_media_object2_property_info_pointers[prop_id - 1];
  variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature));
  g_dbus_proxy_call (G_DBUS_PROXY (object),
    "org.freedesktop.DBus.Properties.Set",
    g_variant_new ("(ssv)", "org.gnome.UPnP.MediaObject2", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) grl_dleyna_media_object2_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
grl_dleyna_media_object2_proxy_g_signal (GDBusProxy *proxy,
  const gchar *sender_name G_GNUC_UNUSED,
  const gchar *signal_name,
  GVariant *parameters)
{
  _ExtendedGDBusSignalInfo *info;
  GVariantIter iter;
  GVariant *child;
  GValue *paramv;
  gsize num_params;
  gsize n;
  guint signal_id;
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_grl_dleyna_media_object2_interface_info.parent_struct, signal_name);
  if (info == NULL)
    return;
  num_params = g_variant_n_children (parameters);
  paramv = g_new0 (GValue, num_params + 1);
  g_value_init (&paramv[0], GRL_DLEYNA_TYPE_MEDIA_OBJECT2);
  g_value_set_object (&paramv[0], proxy);
  g_variant_iter_init (&iter, parameters);
  n = 1;
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
    {
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
      if (arg_info->use_gvariant)
        {
          g_value_init (&paramv[n], G_TYPE_VARIANT);
          g_value_set_variant (&paramv[n], child);
          n++;
        }
      else
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
      g_variant_unref (child);
    }
  signal_id = g_signal_lookup (info->signal_name, GRL_DLEYNA_TYPE_MEDIA_OBJECT2);
  g_signal_emitv (paramv, signal_id, 0, NULL);
  for (n = 0; n < num_params + 1; n++)
    g_value_unset (&paramv[n]);
  g_free (paramv);
}

static void
grl_dleyna_media_object2_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (_proxy);
  guint n;
  const gchar *key;
  GVariantIter *iter;
  _ExtendedGDBusPropertyInfo *info;
  g_variant_get (changed_properties, "a{sv}", &iter);
  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
    {
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_grl_dleyna_media_object2_interface_info.parent_struct, key);
      g_datalist_remove_data (&proxy->priv->qdata, key);
      if (info != NULL)
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
    }
  g_variant_iter_free (iter);
  for (n = 0; invalidated_properties[n] != NULL; n++)
    {
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_grl_dleyna_media_object2_interface_info.parent_struct, invalidated_properties[n]);
      g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
      if (info != NULL)
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
    }
}

static const gchar *
grl_dleyna_media_object2_proxy_get_parent (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  GVariant *variant;
  const gchar *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Parent");
  if (variant != NULL)
    {
      value = g_variant_get_string (variant, NULL);
      g_variant_unref (variant);
    }
  return value;
}

static const gchar *
grl_dleyna_media_object2_proxy_get_type_ (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  GVariant *variant;
  const gchar *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Type");
  if (variant != NULL)
    {
      value = g_variant_get_string (variant, NULL);
      g_variant_unref (variant);
    }
  return value;
}

static const gchar *
grl_dleyna_media_object2_proxy_get_path (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  GVariant *variant;
  const gchar *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Path");
  if (variant != NULL)
    {
      value = g_variant_get_string (variant, NULL);
      g_variant_unref (variant);
    }
  return value;
}

static const gchar *
grl_dleyna_media_object2_proxy_get_display_name (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  GVariant *variant;
  const gchar *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DisplayName");
  if (variant != NULL)
    {
      value = g_variant_get_string (variant, NULL);
      g_variant_unref (variant);
    }
  return value;
}

static const gchar *
grl_dleyna_media_object2_proxy_get_creator (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  GVariant *variant;
  const gchar *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Creator");
  if (variant != NULL)
    {
      value = g_variant_get_string (variant, NULL);
      g_variant_unref (variant);
    }
  return value;
}

static gboolean 
grl_dleyna_media_object2_proxy_get_restricted (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  GVariant *variant;
  gboolean value = FALSE;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Restricted");
  if (variant != NULL)
    {
      value = g_variant_get_boolean (variant);
      g_variant_unref (variant);
    }
  return value;
}

static GVariant *
grl_dleyna_media_object2_proxy_get_dlnamanaged (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  GVariant *variant;
  GVariant *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DLNAManaged");
  value = variant;
  if (variant != NULL)
    g_variant_unref (variant);
  return value;
}

static guint 
grl_dleyna_media_object2_proxy_get_object_update_id (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Proxy *proxy = GRL_DLEYNA_MEDIA_OBJECT2_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "ObjectUpdateID");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
grl_dleyna_media_object2_proxy_init (GrlDleynaMediaObject2Proxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = grl_dleyna_media_object2_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GRL_DLEYNA_TYPE_MEDIA_OBJECT2_PROXY, GrlDleynaMediaObject2ProxyPrivate);
#endif

  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), grl_dleyna_media_object2_interface_info ());
}

static void
grl_dleyna_media_object2_proxy_class_init (GrlDleynaMediaObject2ProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = grl_dleyna_media_object2_proxy_finalize;
  gobject_class->get_property = grl_dleyna_media_object2_proxy_get_property;
  gobject_class->set_property = grl_dleyna_media_object2_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = grl_dleyna_media_object2_proxy_g_signal;
  proxy_class->g_properties_changed = grl_dleyna_media_object2_proxy_g_properties_changed;

  grl_dleyna_media_object2_override_properties (gobject_class, 1);

#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
  g_type_class_add_private (klass, sizeof (GrlDleynaMediaObject2ProxyPrivate));
#endif
}

static void
grl_dleyna_media_object2_proxy_iface_init (GrlDleynaMediaObject2Iface *iface)
{
  iface->get_parent = grl_dleyna_media_object2_proxy_get_parent;
  iface->get_type_ = grl_dleyna_media_object2_proxy_get_type_;
  iface->get_path = grl_dleyna_media_object2_proxy_get_path;
  iface->get_display_name = grl_dleyna_media_object2_proxy_get_display_name;
  iface->get_creator = grl_dleyna_media_object2_proxy_get_creator;
  iface->get_restricted = grl_dleyna_media_object2_proxy_get_restricted;
  iface->get_dlnamanaged = grl_dleyna_media_object2_proxy_get_dlnamanaged;
  iface->get_object_update_id = grl_dleyna_media_object2_proxy_get_object_update_id;
}

/**
 * grl_dleyna_media_object2_proxy_new:
 * @connection: A #GDBusConnection.
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
 * @object_path: An object path.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaObject2.top_of_page">org.gnome.UPnP.MediaObject2</link>. See g_dbus_proxy_new() for more details.
 *
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_object2_proxy_new_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_object2_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
grl_dleyna_media_object2_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data)
{
  g_async_initable_new_async (GRL_DLEYNA_TYPE_MEDIA_OBJECT2_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.UPnP.MediaObject2", NULL);
}

/**
 * grl_dleyna_media_object2_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_object2_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with grl_dleyna_media_object2_proxy_new().
 *
 * Returns: (transfer full) (type GrlDleynaMediaObject2Proxy): The constructed proxy object or %NULL if @error is set.
 */
GrlDleynaMediaObject2 *
grl_dleyna_media_object2_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error)
{
  GObject *ret;
  GObject *source_object;
  source_object = g_async_result_get_source_object (res);
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
  g_object_unref (source_object);
  if (ret != NULL)
    return GRL_DLEYNA_MEDIA_OBJECT2 (ret);
  else
    return NULL;
}

/**
 * grl_dleyna_media_object2_proxy_new_sync:
 * @connection: A #GDBusConnection.
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
 * @object_path: An object path.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL
 *
 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaObject2.top_of_page">org.gnome.UPnP.MediaObject2</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_object2_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type GrlDleynaMediaObject2Proxy): The constructed proxy object or %NULL if @error is set.
 */
GrlDleynaMediaObject2 *
grl_dleyna_media_object2_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (GRL_DLEYNA_TYPE_MEDIA_OBJECT2_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.UPnP.MediaObject2", NULL);
  if (ret != NULL)
    return GRL_DLEYNA_MEDIA_OBJECT2 (ret);
  else
    return NULL;
}


/**
 * grl_dleyna_media_object2_proxy_new_for_bus:
 * @bus_type: A #GBusType.
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 * @name: A bus name (well-known or unique).
 * @object_path: An object path.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
 * @user_data: User data to pass to @callback.
 *
 * Like grl_dleyna_media_object2_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
 *
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_object2_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_object2_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
grl_dleyna_media_object2_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data)
{
  g_async_initable_new_async (GRL_DLEYNA_TYPE_MEDIA_OBJECT2_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.UPnP.MediaObject2", NULL);
}

/**
 * grl_dleyna_media_object2_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_object2_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with grl_dleyna_media_object2_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type GrlDleynaMediaObject2Proxy): The constructed proxy object or %NULL if @error is set.
 */
GrlDleynaMediaObject2 *
grl_dleyna_media_object2_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error)
{
  GObject *ret;
  GObject *source_object;
  source_object = g_async_result_get_source_object (res);
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
  g_object_unref (source_object);
  if (ret != NULL)
    return GRL_DLEYNA_MEDIA_OBJECT2 (ret);
  else
    return NULL;
}

/**
 * grl_dleyna_media_object2_proxy_new_for_bus_sync:
 * @bus_type: A #GBusType.
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 * @name: A bus name (well-known or unique).
 * @object_path: An object path.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL
 *
 * Like grl_dleyna_media_object2_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_object2_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type GrlDleynaMediaObject2Proxy): The constructed proxy object or %NULL if @error is set.
 */
GrlDleynaMediaObject2 *
grl_dleyna_media_object2_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (GRL_DLEYNA_TYPE_MEDIA_OBJECT2_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.UPnP.MediaObject2", NULL);
  if (ret != NULL)
    return GRL_DLEYNA_MEDIA_OBJECT2 (ret);
  else
    return NULL;
}


/* ------------------------------------------------------------------------ */

/**
 * GrlDleynaMediaObject2Skeleton:
 *
 * The #GrlDleynaMediaObject2Skeleton structure contains only private data and should only be accessed using the provided API.
 */

/**
 * GrlDleynaMediaObject2SkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #GrlDleynaMediaObject2Skeleton.
 */

struct _GrlDleynaMediaObject2SkeletonPrivate
{
  GValue *properties;
  GList *changed_properties;
  GSource *changed_properties_idle_source;
  GMainContext *context;
  GMutex lock;
};

static void
_grl_dleyna_media_object2_skeleton_handle_method_call (
  GDBusConnection *connection G_GNUC_UNUSED,
  const gchar *sender G_GNUC_UNUSED,
  const gchar *object_path G_GNUC_UNUSED,
  const gchar *interface_name,
  const gchar *method_name,
  GVariant *parameters,
  GDBusMethodInvocation *invocation,
  gpointer user_data)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (user_data);
  _ExtendedGDBusMethodInfo *info;
  GVariantIter iter;
  GVariant *child;
  GValue *paramv;
  gsize num_params;
  guint num_extra;
  gsize n;
  guint signal_id;
  GValue return_value = G_VALUE_INIT;
  info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
  g_assert (info != NULL);
  num_params = g_variant_n_children (parameters);
  num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
  n = 0;
  g_value_init (&paramv[n], GRL_DLEYNA_TYPE_MEDIA_OBJECT2);
  g_value_set_object (&paramv[n++], skeleton);
  g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
  g_value_set_object (&paramv[n++], invocation);
  if (info->pass_fdlist)
    {
#ifdef G_OS_UNIX
      g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
      g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
#else
      g_assert_not_reached ();
#endif
    }
  g_variant_iter_init (&iter, parameters);
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
    {
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
      if (arg_info->use_gvariant)
        {
          g_value_init (&paramv[n], G_TYPE_VARIANT);
          g_value_set_variant (&paramv[n], child);
          n++;
        }
      else
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
      g_variant_unref (child);
    }
  signal_id = g_signal_lookup (info->signal_name, GRL_DLEYNA_TYPE_MEDIA_OBJECT2);
  g_value_init (&return_value, G_TYPE_BOOLEAN);
  g_signal_emitv (paramv, signal_id, 0, &return_value);
  if (!g_value_get_boolean (&return_value))
    g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
  g_value_unset (&return_value);
  for (n = 0; n < num_params + num_extra; n++)
    g_value_unset (&paramv[n]);
  g_free (paramv);
}

static GVariant *
_grl_dleyna_media_object2_skeleton_handle_get_property (
  GDBusConnection *connection G_GNUC_UNUSED,
  const gchar *sender G_GNUC_UNUSED,
  const gchar *object_path G_GNUC_UNUSED,
  const gchar *interface_name G_GNUC_UNUSED,
  const gchar *property_name,
  GError **error,
  gpointer user_data)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (user_data);
  GValue value = G_VALUE_INIT;
  GParamSpec *pspec;
  _ExtendedGDBusPropertyInfo *info;
  GVariant *ret;
  ret = NULL;
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_grl_dleyna_media_object2_interface_info.parent_struct, property_name);
  g_assert (info != NULL);
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
  if (pspec == NULL)
    {
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
    }
  else
    {
      g_value_init (&value, pspec->value_type);
      g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
      ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
      g_value_unset (&value);
    }
  return ret;
}

static gboolean
_grl_dleyna_media_object2_skeleton_handle_set_property (
  GDBusConnection *connection G_GNUC_UNUSED,
  const gchar *sender G_GNUC_UNUSED,
  const gchar *object_path G_GNUC_UNUSED,
  const gchar *interface_name G_GNUC_UNUSED,
  const gchar *property_name,
  GVariant *variant,
  GError **error,
  gpointer user_data)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (user_data);
  GValue value = G_VALUE_INIT;
  GParamSpec *pspec;
  _ExtendedGDBusPropertyInfo *info;
  gboolean ret;
  ret = FALSE;
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_grl_dleyna_media_object2_interface_info.parent_struct, property_name);
  g_assert (info != NULL);
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
  if (pspec == NULL)
    {
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
    }
  else
    {
      if (info->use_gvariant)
        g_value_set_variant (&value, variant);
      else
        g_dbus_gvariant_to_gvalue (variant, &value);
      g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
      g_value_unset (&value);
      ret = TRUE;
    }
  return ret;
}

static const GDBusInterfaceVTable _grl_dleyna_media_object2_skeleton_vtable =
{
  _grl_dleyna_media_object2_skeleton_handle_method_call,
  _grl_dleyna_media_object2_skeleton_handle_get_property,
  _grl_dleyna_media_object2_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
grl_dleyna_media_object2_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return grl_dleyna_media_object2_interface_info ();
}

static GDBusInterfaceVTable *
grl_dleyna_media_object2_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_grl_dleyna_media_object2_skeleton_vtable;
}

static GVariant *
grl_dleyna_media_object2_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84
  g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}"));
#else
  g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}"));
#endif
  if (_grl_dleyna_media_object2_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _grl_dleyna_media_object2_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _grl_dleyna_media_object2_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _grl_dleyna_media_object2_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.gnome.UPnP.MediaObject2", info->name, NULL, skeleton);
          if (value != NULL)
            {
              g_variant_take_ref (value);
              g_variant_builder_add (&builder, "{sv}", info->name, value);
              g_variant_unref (value);
            }
        }
    }
out:
  return g_variant_builder_end (&builder);
}

static gboolean _grl_dleyna_media_object2_emit_changed (gpointer user_data);

static void
grl_dleyna_media_object2_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (_skeleton);
  gboolean emit_changed = FALSE;

  g_mutex_lock (&skeleton->priv->lock);
  if (skeleton->priv->changed_properties_idle_source != NULL)
    {
      g_source_destroy (skeleton->priv->changed_properties_idle_source);
      skeleton->priv->changed_properties_idle_source = NULL;
      emit_changed = TRUE;
    }
  g_mutex_unlock (&skeleton->priv->lock);

  if (emit_changed)
    _grl_dleyna_media_object2_emit_changed (skeleton);
}

static void grl_dleyna_media_object2_skeleton_iface_init (GrlDleynaMediaObject2Iface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (GrlDleynaMediaObject2Skeleton, grl_dleyna_media_object2_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (GrlDleynaMediaObject2Skeleton)
                         G_IMPLEMENT_INTERFACE (GRL_DLEYNA_TYPE_MEDIA_OBJECT2, grl_dleyna_media_object2_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (GrlDleynaMediaObject2Skeleton, grl_dleyna_media_object2_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (GRL_DLEYNA_TYPE_MEDIA_OBJECT2, grl_dleyna_media_object2_skeleton_iface_init))

#endif
static void
grl_dleyna_media_object2_skeleton_finalize (GObject *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  guint n;
  for (n = 0; n < 8; n++)
    g_value_unset (&skeleton->priv->properties[n]);
  g_free (skeleton->priv->properties);
  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
  if (skeleton->priv->changed_properties_idle_source != NULL)
    g_source_destroy (skeleton->priv->changed_properties_idle_source);
  g_main_context_unref (skeleton->priv->context);
  g_mutex_clear (&skeleton->priv->lock);
  G_OBJECT_CLASS (grl_dleyna_media_object2_skeleton_parent_class)->finalize (object);
}

static void
grl_dleyna_media_object2_skeleton_get_property (GObject      *object,
  guint         prop_id,
  GValue       *value,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 8);
  g_mutex_lock (&skeleton->priv->lock);
  g_value_copy (&skeleton->priv->properties[prop_id - 1], value);
  g_mutex_unlock (&skeleton->priv->lock);
}

static gboolean
_grl_dleyna_media_object2_emit_changed (gpointer user_data)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84
  g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as"));
#else
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
#endif
  for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next)
    {
      ChangedProperty *cp = l->data;
      GVariant *variant;
      const GValue *cur_value;

      cur_value = &skeleton->priv->properties[cp->prop_id - 1];
      if (!_g_value_equal (cur_value, &cp->orig_value))
        {
          variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature));
          g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant);
          g_variant_unref (variant);
          num_changes++;
        }
    }
  if (num_changes > 0)
    {
      GList *connections, *ll;
      GVariant *signal_variant;
      signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "org.gnome.UPnP.MediaObject2",
                                           &builder, &invalidated_builder));
      connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
      for (ll = connections; ll != NULL; ll = ll->next)
        {
          GDBusConnection *connection = ll->data;

          g_dbus_connection_emit_signal (connection,
                                         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)),
                                         "org.freedesktop.DBus.Properties",
                                         "PropertiesChanged",
                                         signal_variant,
                                         NULL);
        }
      g_variant_unref (signal_variant);
      g_list_free_full (connections, g_object_unref);
    }
  else
    {
      g_variant_builder_clear (&builder);
      g_variant_builder_clear (&invalidated_builder);
    }
  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
  skeleton->priv->changed_properties = NULL;
  skeleton->priv->changed_properties_idle_source = NULL;
  g_mutex_unlock (&skeleton->priv->lock);
  return FALSE;
}

static void
_grl_dleyna_media_object2_schedule_emit_changed (GrlDleynaMediaObject2Skeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value)
{
  ChangedProperty *cp;
  GList *l;
  cp = NULL;
  for (l = skeleton->priv->changed_properties; l != NULL; l = l->next)
    {
      ChangedProperty *i_cp = l->data;
      if (i_cp->info == info)
        {
          cp = i_cp;
          break;
        }
    }
  if (cp == NULL)
    {
      cp = g_new0 (ChangedProperty, 1);
      cp->prop_id = prop_id;
      cp->info = info;
      skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp);
      g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value));
      g_value_copy (orig_value, &cp->orig_value);
    }
}

static void
grl_dleyna_media_object2_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  g_mutex_lock (&skeleton->priv->lock);
  if (skeleton->priv->changed_properties != NULL &&
      skeleton->priv->changed_properties_idle_source == NULL)
    {
      skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
      g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
      g_source_set_callback (skeleton->priv->changed_properties_idle_source, _grl_dleyna_media_object2_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _grl_dleyna_media_object2_emit_changed");
      g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
      g_source_unref (skeleton->priv->changed_properties_idle_source);
    }
  g_mutex_unlock (&skeleton->priv->lock);
}

static void
grl_dleyna_media_object2_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 8);
  info = (const _ExtendedGDBusPropertyInfo *) _grl_dleyna_media_object2_property_info_pointers[prop_id - 1];
  g_mutex_lock (&skeleton->priv->lock);
  g_object_freeze_notify (object);
  if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1]))
    {
      if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL &&
          info->emits_changed_signal)
        _grl_dleyna_media_object2_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]);
      g_value_copy (value, &skeleton->priv->properties[prop_id - 1]);
      g_object_notify_by_pspec (object, pspec);
    }
  g_mutex_unlock (&skeleton->priv->lock);
  g_object_thaw_notify (object);
}

static void
grl_dleyna_media_object2_skeleton_init (GrlDleynaMediaObject2Skeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = grl_dleyna_media_object2_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GRL_DLEYNA_TYPE_MEDIA_OBJECT2_SKELETON, GrlDleynaMediaObject2SkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 8);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING);
  g_value_init (&skeleton->priv->properties[1], G_TYPE_STRING);
  g_value_init (&skeleton->priv->properties[2], G_TYPE_STRING);
  g_value_init (&skeleton->priv->properties[3], G_TYPE_STRING);
  g_value_init (&skeleton->priv->properties[4], G_TYPE_STRING);
  g_value_init (&skeleton->priv->properties[5], G_TYPE_BOOLEAN);
  g_value_init (&skeleton->priv->properties[6], G_TYPE_VARIANT);
  g_value_init (&skeleton->priv->properties[7], G_TYPE_UINT);
}

static const gchar *
grl_dleyna_media_object2_skeleton_get_parent (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  const gchar *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_string (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static const gchar *
grl_dleyna_media_object2_skeleton_get_type_ (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  const gchar *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_string (&(skeleton->priv->properties[1]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static const gchar *
grl_dleyna_media_object2_skeleton_get_path (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  const gchar *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_string (&(skeleton->priv->properties[2]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static const gchar *
grl_dleyna_media_object2_skeleton_get_display_name (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  const gchar *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_string (&(skeleton->priv->properties[3]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static const gchar *
grl_dleyna_media_object2_skeleton_get_creator (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  const gchar *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_string (&(skeleton->priv->properties[4]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static gboolean 
grl_dleyna_media_object2_skeleton_get_restricted (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  gboolean value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_boolean (&(skeleton->priv->properties[5]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static GVariant *
grl_dleyna_media_object2_skeleton_get_dlnamanaged (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  GVariant *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_variant (&(skeleton->priv->properties[6]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static guint 
grl_dleyna_media_object2_skeleton_get_object_update_id (GrlDleynaMediaObject2 *object)
{
  GrlDleynaMediaObject2Skeleton *skeleton = GRL_DLEYNA_MEDIA_OBJECT2_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_uint (&(skeleton->priv->properties[7]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
grl_dleyna_media_object2_skeleton_class_init (GrlDleynaMediaObject2SkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = grl_dleyna_media_object2_skeleton_finalize;
  gobject_class->get_property = grl_dleyna_media_object2_skeleton_get_property;
  gobject_class->set_property = grl_dleyna_media_object2_skeleton_set_property;
  gobject_class->notify       = grl_dleyna_media_object2_skeleton_notify;


  grl_dleyna_media_object2_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = grl_dleyna_media_object2_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = grl_dleyna_media_object2_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = grl_dleyna_media_object2_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = grl_dleyna_media_object2_skeleton_dbus_interface_get_vtable;

#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
  g_type_class_add_private (klass, sizeof (GrlDleynaMediaObject2SkeletonPrivate));
#endif
}

static void
grl_dleyna_media_object2_skeleton_iface_init (GrlDleynaMediaObject2Iface *iface)
{
  iface->get_parent = grl_dleyna_media_object2_skeleton_get_parent;
  iface->get_type_ = grl_dleyna_media_object2_skeleton_get_type_;
  iface->get_path = grl_dleyna_media_object2_skeleton_get_path;
  iface->get_display_name = grl_dleyna_media_object2_skeleton_get_display_name;
  iface->get_creator = grl_dleyna_media_object2_skeleton_get_creator;
  iface->get_restricted = grl_dleyna_media_object2_skeleton_get_restricted;
  iface->get_dlnamanaged = grl_dleyna_media_object2_skeleton_get_dlnamanaged;
  iface->get_object_update_id = grl_dleyna_media_object2_skeleton_get_object_update_id;
}

/**
 * grl_dleyna_media_object2_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaObject2.top_of_page">org.gnome.UPnP.MediaObject2</link>.
 *
 * Returns: (transfer full) (type GrlDleynaMediaObject2Skeleton): The skeleton object.
 */
GrlDleynaMediaObject2 *
grl_dleyna_media_object2_skeleton_new (void)
{
  return GRL_DLEYNA_MEDIA_OBJECT2 (g_object_new (GRL_DLEYNA_TYPE_MEDIA_OBJECT2_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.gnome.UPnP.MediaContainer2
 * ------------------------------------------------------------------------
 */

/**
 * SECTION:GrlDleynaMediaContainer2
 * @title: GrlDleynaMediaContainer2
 * @short_description: Generated C code for the org.gnome.UPnP.MediaContainer2 D-Bus interface
 *
 * This section contains code for working with the <link linkend="gdbus-interface-org-gnome-UPnP-MediaContainer2.top_of_page">org.gnome.UPnP.MediaContainer2</link> D-Bus interface in C.
 */

/* ---- Introspection data for org.gnome.UPnP.MediaContainer2 ---- */

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_IN_ARG_Offset =
{
  {
    -1,
    (gchar *) "Offset",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_IN_ARG_Max =
{
  {
    -1,
    (gchar *) "Max",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_children_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_children_IN_ARG_Offset.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_children_IN_ARG_Max.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_children_IN_ARG_Filter.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_OUT_ARG_Children =
{
  {
    -1,
    (gchar *) "Children",
    (gchar *) "aa{sv}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_children_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_children_OUT_ARG_Children.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_list_children =
{
  {
    -1,
    (gchar *) "ListChildren",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_children_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_children_OUT_ARG_pointers,
    NULL
  },
  "handle-list-children",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_Offset =
{
  {
    -1,
    (gchar *) "Offset",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_Max =
{
  {
    -1,
    (gchar *) "Max",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_SortBy =
{
  {
    -1,
    (gchar *) "SortBy",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_Offset.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_Max.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_Filter.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_SortBy.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_children_ex_OUT_ARG_Children =
{
  {
    -1,
    (gchar *) "Children",
    (gchar *) "aa{sv}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_children_ex_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_children_ex_OUT_ARG_Children.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_list_children_ex =
{
  {
    -1,
    (gchar *) "ListChildrenEx",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_children_ex_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_children_ex_OUT_ARG_pointers,
    NULL
  },
  "handle-list-children-ex",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_IN_ARG_Offset =
{
  {
    -1,
    (gchar *) "Offset",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_IN_ARG_Max =
{
  {
    -1,
    (gchar *) "Max",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_containers_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_containers_IN_ARG_Offset.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_containers_IN_ARG_Max.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_containers_IN_ARG_Filter.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_OUT_ARG_Children =
{
  {
    -1,
    (gchar *) "Children",
    (gchar *) "aa{sv}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_containers_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_containers_OUT_ARG_Children.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_list_containers =
{
  {
    -1,
    (gchar *) "ListContainers",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_containers_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_containers_OUT_ARG_pointers,
    NULL
  },
  "handle-list-containers",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_Offset =
{
  {
    -1,
    (gchar *) "Offset",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_Max =
{
  {
    -1,
    (gchar *) "Max",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_SortBy =
{
  {
    -1,
    (gchar *) "SortBy",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_Offset.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_Max.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_Filter.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_SortBy.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_containers_ex_OUT_ARG_Children =
{
  {
    -1,
    (gchar *) "Children",
    (gchar *) "aa{sv}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_containers_ex_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_containers_ex_OUT_ARG_Children.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_list_containers_ex =
{
  {
    -1,
    (gchar *) "ListContainersEx",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_containers_ex_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_containers_ex_OUT_ARG_pointers,
    NULL
  },
  "handle-list-containers-ex",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_IN_ARG_Offset =
{
  {
    -1,
    (gchar *) "Offset",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_IN_ARG_Max =
{
  {
    -1,
    (gchar *) "Max",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_items_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_items_IN_ARG_Offset.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_items_IN_ARG_Max.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_items_IN_ARG_Filter.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_OUT_ARG_Children =
{
  {
    -1,
    (gchar *) "Children",
    (gchar *) "aa{sv}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_items_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_items_OUT_ARG_Children.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_list_items =
{
  {
    -1,
    (gchar *) "ListItems",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_items_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_items_OUT_ARG_pointers,
    NULL
  },
  "handle-list-items",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_Offset =
{
  {
    -1,
    (gchar *) "Offset",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_Max =
{
  {
    -1,
    (gchar *) "Max",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_SortBy =
{
  {
    -1,
    (gchar *) "SortBy",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_Offset.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_Max.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_Filter.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_SortBy.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_list_items_ex_OUT_ARG_Children =
{
  {
    -1,
    (gchar *) "Children",
    (gchar *) "aa{sv}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_list_items_ex_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_items_ex_OUT_ARG_Children.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_list_items_ex =
{
  {
    -1,
    (gchar *) "ListItemsEx",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_items_ex_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_list_items_ex_OUT_ARG_pointers,
    NULL
  },
  "handle-list-items-ex",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_IN_ARG_Query =
{
  {
    -1,
    (gchar *) "Query",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_IN_ARG_Offset =
{
  {
    -1,
    (gchar *) "Offset",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_IN_ARG_Max =
{
  {
    -1,
    (gchar *) "Max",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_search_objects_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_search_objects_IN_ARG_Query.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_IN_ARG_Offset.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_IN_ARG_Max.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_IN_ARG_Filter.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_OUT_ARG_Children =
{
  {
    -1,
    (gchar *) "Children",
    (gchar *) "aa{sv}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_search_objects_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_search_objects_OUT_ARG_Children.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_search_objects =
{
  {
    -1,
    (gchar *) "SearchObjects",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_search_objects_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_search_objects_OUT_ARG_pointers,
    NULL
  },
  "handle-search-objects",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_Query =
{
  {
    -1,
    (gchar *) "Query",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_Offset =
{
  {
    -1,
    (gchar *) "Offset",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_Max =
{
  {
    -1,
    (gchar *) "Max",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_SortBy =
{
  {
    -1,
    (gchar *) "SortBy",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_Query.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_Offset.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_Max.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_Filter.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_SortBy.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_ex_OUT_ARG_Children =
{
  {
    -1,
    (gchar *) "Children",
    (gchar *) "aa{sv}",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_search_objects_ex_OUT_ARG_TotalItems =
{
  {
    -1,
    (gchar *) "TotalItems",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_search_objects_ex_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_search_objects_ex_OUT_ARG_Children.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_ex_OUT_ARG_TotalItems.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_search_objects_ex =
{
  {
    -1,
    (gchar *) "SearchObjectsEx",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_search_objects_ex_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_search_objects_ex_OUT_ARG_pointers,
    NULL
  },
  "handle-search-objects-ex",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_upload_IN_ARG_DisplayName =
{
  {
    -1,
    (gchar *) "DisplayName",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_upload_IN_ARG_FilePath =
{
  {
    -1,
    (gchar *) "FilePath",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_upload_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_upload_IN_ARG_DisplayName.parent_struct,
  &_grl_dleyna_media_container2_method_info_upload_IN_ARG_FilePath.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_upload_OUT_ARG_UploadId =
{
  {
    -1,
    (gchar *) "UploadId",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_upload_OUT_ARG_Path =
{
  {
    -1,
    (gchar *) "Path",
    (gchar *) "o",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_upload_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_upload_OUT_ARG_UploadId.parent_struct,
  &_grl_dleyna_media_container2_method_info_upload_OUT_ARG_Path.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_upload =
{
  {
    -1,
    (gchar *) "Upload",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_upload_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_upload_OUT_ARG_pointers,
    NULL
  },
  "handle-upload",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_container_IN_ARG_DisplayName =
{
  {
    -1,
    (gchar *) "DisplayName",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_container_IN_ARG_Type =
{
  {
    -1,
    (gchar *) "Type",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_container_IN_ARG_ChildTypes =
{
  {
    -1,
    (gchar *) "ChildTypes",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_create_container_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_create_container_IN_ARG_DisplayName.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_container_IN_ARG_Type.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_container_IN_ARG_ChildTypes.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_container_OUT_ARG_Path =
{
  {
    -1,
    (gchar *) "Path",
    (gchar *) "o",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_create_container_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_create_container_OUT_ARG_Path.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_create_container =
{
  {
    -1,
    (gchar *) "CreateContainer",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_create_container_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_create_container_OUT_ARG_pointers,
    NULL
  },
  "handle-create-container",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_Title =
{
  {
    -1,
    (gchar *) "Title",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_Creator =
{
  {
    -1,
    (gchar *) "Creator",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_Genre =
{
  {
    -1,
    (gchar *) "Genre",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_Description =
{
  {
    -1,
    (gchar *) "Description",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_PlaylistItems =
{
  {
    -1,
    (gchar *) "PlaylistItems",
    (gchar *) "ao",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_Title.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_Creator.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_Genre.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_Description.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_PlaylistItems.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_playlist_OUT_ARG_UploadId =
{
  {
    -1,
    (gchar *) "UploadId",
    (gchar *) "u",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_create_playlist_OUT_ARG_Path =
{
  {
    -1,
    (gchar *) "Path",
    (gchar *) "o",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_create_playlist_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_create_playlist_OUT_ARG_UploadId.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_playlist_OUT_ARG_Path.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_create_playlist =
{
  {
    -1,
    (gchar *) "CreatePlaylist",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_create_playlist_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_create_playlist_OUT_ARG_pointers,
    NULL
  },
  "handle-create-playlist",
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_get_compatible_resource_IN_ARG_ProtocolInfo =
{
  {
    -1,
    (gchar *) "ProtocolInfo",
    (gchar *) "s",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_get_compatible_resource_IN_ARG_Filter =
{
  {
    -1,
    (gchar *) "Filter",
    (gchar *) "as",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_get_compatible_resource_IN_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_get_compatible_resource_IN_ARG_ProtocolInfo.parent_struct,
  &_grl_dleyna_media_container2_method_info_get_compatible_resource_IN_ARG_Filter.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _grl_dleyna_media_container2_method_info_get_compatible_resource_OUT_ARG_Properties =
{
  {
    -1,
    (gchar *) "Properties",
    (gchar *) "a{sv}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _grl_dleyna_media_container2_method_info_get_compatible_resource_OUT_ARG_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_get_compatible_resource_OUT_ARG_Properties.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _grl_dleyna_media_container2_method_info_get_compatible_resource =
{
  {
    -1,
    (gchar *) "GetCompatibleResource",
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_get_compatible_resource_IN_ARG_pointers,
    (GDBusArgInfo **) &_grl_dleyna_media_container2_method_info_get_compatible_resource_OUT_ARG_pointers,
    NULL
  },
  "handle-get-compatible-resource",
  FALSE
};

static const GDBusMethodInfo * const _grl_dleyna_media_container2_method_info_pointers[] =
{
  &_grl_dleyna_media_container2_method_info_list_children.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_children_ex.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_containers.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_containers_ex.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_items.parent_struct,
  &_grl_dleyna_media_container2_method_info_list_items_ex.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects.parent_struct,
  &_grl_dleyna_media_container2_method_info_search_objects_ex.parent_struct,
  &_grl_dleyna_media_container2_method_info_upload.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_container.parent_struct,
  &_grl_dleyna_media_container2_method_info_create_playlist.parent_struct,
  &_grl_dleyna_media_container2_method_info_get_compatible_resource.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_child_count =
{
  {
    -1,
    (gchar *) "ChildCount",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "child-count",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_searchable =
{
  {
    -1,
    (gchar *) "Searchable",
    (gchar *) "b",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "searchable",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_create_classes =
{
  {
    -1,
    (gchar *) "CreateClasses",
    (gchar *) "a(sb)",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "create-classes",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_container_update_id =
{
  {
    -1,
    (gchar *) "ContainerUpdateID",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "container-update-id",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_total_deleted_child_count =
{
  {
    -1,
    (gchar *) "TotalDeletedChildCount",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "total-deleted-child-count",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_resources =
{
  {
    -1,
    (gchar *) "Resources",
    (gchar *) "aa{sv}",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "resources",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_urls =
{
  {
    -1,
    (gchar *) "URLs",
    (gchar *) "as",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "urls",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_mimetype =
{
  {
    -1,
    (gchar *) "MIMEType",
    (gchar *) "s",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "mimetype",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_dlnaprofile =
{
  {
    -1,
    (gchar *) "DLNAProfile",
    (gchar *) "s",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "dlnaprofile",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_dlnaconversion =
{
  {
    -1,
    (gchar *) "DLNAConversion",
    (gchar *) "a{sb}",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "dlnaconversion",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_dlnaoperation =
{
  {
    -1,
    (gchar *) "DLNAOperation",
    (gchar *) "a{sb}",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "dlnaoperation",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_dlnaflags =
{
  {
    -1,
    (gchar *) "DLNAFlags",
    (gchar *) "a{sb}",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "dlnaflags",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _grl_dleyna_media_container2_property_info_size =
{
  {
    -1,
    (gchar *) "Size",
    (gchar *) "x",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "size",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _grl_dleyna_media_container2_property_info_pointers[] =
{
  &_grl_dleyna_media_container2_property_info_child_count.parent_struct,
  &_grl_dleyna_media_container2_property_info_searchable.parent_struct,
  &_grl_dleyna_media_container2_property_info_create_classes.parent_struct,
  &_grl_dleyna_media_container2_property_info_container_update_id.parent_struct,
  &_grl_dleyna_media_container2_property_info_total_deleted_child_count.parent_struct,
  &_grl_dleyna_media_container2_property_info_resources.parent_struct,
  &_grl_dleyna_media_container2_property_info_urls.parent_struct,
  &_grl_dleyna_media_container2_property_info_mimetype.parent_struct,
  &_grl_dleyna_media_container2_property_info_dlnaprofile.parent_struct,
  &_grl_dleyna_media_container2_property_info_dlnaconversion.parent_struct,
  &_grl_dleyna_media_container2_property_info_dlnaoperation.parent_struct,
  &_grl_dleyna_media_container2_property_info_dlnaflags.parent_struct,
  &_grl_dleyna_media_container2_property_info_size.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _grl_dleyna_media_container2_interface_info =
{
  {
    -1,
    (gchar *) "org.gnome.UPnP.MediaContainer2",
    (GDBusMethodInfo **) &_grl_dleyna_media_container2_method_info_pointers,
    NULL,
    (GDBusPropertyInfo **) &_grl_dleyna_media_container2_property_info_pointers,
    NULL
  },
  "media-container2",
};


/**
 * grl_dleyna_media_container2_interface_info:
 *
 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-gnome-UPnP-MediaContainer2.top_of_page">org.gnome.UPnP.MediaContainer2</link> D-Bus interface.
 *
 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
 */
GDBusInterfaceInfo *
grl_dleyna_media_container2_interface_info (void)
{
  return (GDBusInterfaceInfo *) &_grl_dleyna_media_container2_interface_info.parent_struct;
}

/**
 * grl_dleyna_media_container2_override_properties:
 * @klass: The class structure for a #GObject derived class.
 * @property_id_begin: The property id to assign to the first overridden property.
 *
 * Overrides all #GObject properties in the #GrlDleynaMediaContainer2 interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
grl_dleyna_media_container2_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "child-count");
  g_object_class_override_property (klass, property_id_begin++, "searchable");
  g_object_class_override_property (klass, property_id_begin++, "create-classes");
  g_object_class_override_property (klass, property_id_begin++, "container-update-id");
  g_object_class_override_property (klass, property_id_begin++, "total-deleted-child-count");
  g_object_class_override_property (klass, property_id_begin++, "resources");
  g_object_class_override_property (klass, property_id_begin++, "urls");
  g_object_class_override_property (klass, property_id_begin++, "mimetype");
  g_object_class_override_property (klass, property_id_begin++, "dlnaprofile");
  g_object_class_override_property (klass, property_id_begin++, "dlnaconversion");
  g_object_class_override_property (klass, property_id_begin++, "dlnaoperation");
  g_object_class_override_property (klass, property_id_begin++, "dlnaflags");
  g_object_class_override_property (klass, property_id_begin++, "size");
  return property_id_begin - 1;
}


inline static void
grl_dleyna_media_container2_method_marshal_list_children (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT_UINT_BOXED (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_list_children_ex (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT_UINT_BOXED_STRING (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_list_containers (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT_UINT_BOXED (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_list_containers_ex (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT_UINT_BOXED_STRING (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_list_items (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT_UINT_BOXED (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_list_items_ex (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT_UINT_BOXED_STRING (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_search_objects (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_UINT_UINT_BOXED (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_search_objects_ex (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_UINT_UINT_BOXED_STRING (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_upload (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_create_container (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_BOXED (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_create_playlist (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_STRING_STRING_STRING_BOXED (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}

inline static void
grl_dleyna_media_container2_method_marshal_get_compatible_resource (
    GClosure     *closure,
    GValue       *return_value,
    unsigned int  n_param_values,
    const GValue *param_values,
    void         *invocation_hint,
    void         *marshal_data)
{
  _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_BOXED (closure,
    return_value, n_param_values, param_values, invocation_hint, marshal_data);
}


/**
 * GrlDleynaMediaContainer2:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaContainer2.top_of_page">org.gnome.UPnP.MediaContainer2</link>.
 */

/**
 * GrlDleynaMediaContainer2Iface:
 * @parent_iface: The parent interface.
 * @handle_create_container: Handler for the #GrlDleynaMediaContainer2::handle-create-container signal.
 * @handle_create_playlist: Handler for the #GrlDleynaMediaContainer2::handle-create-playlist signal.
 * @handle_get_compatible_resource: Handler for the #GrlDleynaMediaContainer2::handle-get-compatible-resource signal.
 * @handle_list_children: Handler for the #GrlDleynaMediaContainer2::handle-list-children signal.
 * @handle_list_children_ex: Handler for the #GrlDleynaMediaContainer2::handle-list-children-ex signal.
 * @handle_list_containers: Handler for the #GrlDleynaMediaContainer2::handle-list-containers signal.
 * @handle_list_containers_ex: Handler for the #GrlDleynaMediaContainer2::handle-list-containers-ex signal.
 * @handle_list_items: Handler for the #GrlDleynaMediaContainer2::handle-list-items signal.
 * @handle_list_items_ex: Handler for the #GrlDleynaMediaContainer2::handle-list-items-ex signal.
 * @handle_search_objects: Handler for the #GrlDleynaMediaContainer2::handle-search-objects signal.
 * @handle_search_objects_ex: Handler for the #GrlDleynaMediaContainer2::handle-search-objects-ex signal.
 * @handle_upload: Handler for the #GrlDleynaMediaContainer2::handle-upload signal.
 * @get_child_count: Getter for the #GrlDleynaMediaContainer2:child-count property.
 * @get_container_update_id: Getter for the #GrlDleynaMediaContainer2:container-update-id property.
 * @get_create_classes: Getter for the #GrlDleynaMediaContainer2:create-classes property.
 * @get_dlnaconversion: Getter for the #GrlDleynaMediaContainer2:dlnaconversion property.
 * @get_dlnaflags: Getter for the #GrlDleynaMediaContainer2:dlnaflags property.
 * @get_dlnaoperation: Getter for the #GrlDleynaMediaContainer2:dlnaoperation property.
 * @get_dlnaprofile: Getter for the #GrlDleynaMediaContainer2:dlnaprofile property.
 * @get_mimetype: Getter for the #GrlDleynaMediaContainer2:mimetype property.
 * @get_resources: Getter for the #GrlDleynaMediaContainer2:resources property.
 * @get_searchable: Getter for the #GrlDleynaMediaContainer2:searchable property.
 * @get_size: Getter for the #GrlDleynaMediaContainer2:size property.
 * @get_total_deleted_child_count: Getter for the #GrlDleynaMediaContainer2:total-deleted-child-count property.
 * @get_urls: Getter for the #GrlDleynaMediaContainer2:urls property.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaContainer2.top_of_page">org.gnome.UPnP.MediaContainer2</link>.
 */

typedef GrlDleynaMediaContainer2Iface GrlDleynaMediaContainer2Interface;
G_DEFINE_INTERFACE (GrlDleynaMediaContainer2, grl_dleyna_media_container2, G_TYPE_OBJECT)

static void
grl_dleyna_media_container2_default_init (GrlDleynaMediaContainer2Iface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * GrlDleynaMediaContainer2::handle-list-children:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Offset: Argument passed by remote caller.
   * @arg_Max: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListChildren">ListChildren()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_list_children() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-list-children",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_list_children),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_list_children,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRV);

  /**
   * GrlDleynaMediaContainer2::handle-list-children-ex:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Offset: Argument passed by remote caller.
   * @arg_Max: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   * @arg_SortBy: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListChildrenEx">ListChildrenEx()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_list_children_ex() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-list-children-ex",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_list_children_ex),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_list_children_ex,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRV, G_TYPE_STRING);

  /**
   * GrlDleynaMediaContainer2::handle-list-containers:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Offset: Argument passed by remote caller.
   * @arg_Max: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListContainers">ListContainers()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_list_containers() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-list-containers",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_list_containers),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_list_containers,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRV);

  /**
   * GrlDleynaMediaContainer2::handle-list-containers-ex:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Offset: Argument passed by remote caller.
   * @arg_Max: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   * @arg_SortBy: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListContainersEx">ListContainersEx()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_list_containers_ex() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-list-containers-ex",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_list_containers_ex),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_list_containers_ex,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRV, G_TYPE_STRING);

  /**
   * GrlDleynaMediaContainer2::handle-list-items:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Offset: Argument passed by remote caller.
   * @arg_Max: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListItems">ListItems()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_list_items() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-list-items",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_list_items),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_list_items,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRV);

  /**
   * GrlDleynaMediaContainer2::handle-list-items-ex:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Offset: Argument passed by remote caller.
   * @arg_Max: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   * @arg_SortBy: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListItemsEx">ListItemsEx()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_list_items_ex() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-list-items-ex",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_list_items_ex),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_list_items_ex,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRV, G_TYPE_STRING);

  /**
   * GrlDleynaMediaContainer2::handle-search-objects:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Query: Argument passed by remote caller.
   * @arg_Offset: Argument passed by remote caller.
   * @arg_Max: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.SearchObjects">SearchObjects()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_search_objects() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-search-objects",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_search_objects),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_search_objects,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRV);

  /**
   * GrlDleynaMediaContainer2::handle-search-objects-ex:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Query: Argument passed by remote caller.
   * @arg_Offset: Argument passed by remote caller.
   * @arg_Max: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   * @arg_SortBy: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.SearchObjectsEx">SearchObjectsEx()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_search_objects_ex() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-search-objects-ex",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_search_objects_ex),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_search_objects_ex,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRV, G_TYPE_STRING);

  /**
   * GrlDleynaMediaContainer2::handle-upload:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_DisplayName: Argument passed by remote caller.
   * @arg_FilePath: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.Upload">Upload()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_upload() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-upload",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_upload),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_upload,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * GrlDleynaMediaContainer2::handle-create-container:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_DisplayName: Argument passed by remote caller.
   * @arg_Type: Argument passed by remote caller.
   * @arg_ChildTypes: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.CreateContainer">CreateContainer()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_create_container() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-create-container",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_create_container),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_create_container,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);

  /**
   * GrlDleynaMediaContainer2::handle-create-playlist:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_Title: Argument passed by remote caller.
   * @arg_Creator: Argument passed by remote caller.
   * @arg_Genre: Argument passed by remote caller.
   * @arg_Description: Argument passed by remote caller.
   * @arg_PlaylistItems: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.CreatePlaylist">CreatePlaylist()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_create_playlist() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-create-playlist",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_create_playlist),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_create_playlist,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);

  /**
   * GrlDleynaMediaContainer2::handle-get-compatible-resource:
   * @object: A #GrlDleynaMediaContainer2.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_ProtocolInfo: Argument passed by remote caller.
   * @arg_Filter: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.GetCompatibleResource">GetCompatibleResource()</link> D-Bus method.
   *
   * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call grl_dleyna_media_container2_complete_get_compatible_resource() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
   *
   * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
   */
  g_signal_new ("handle-get-compatible-resource",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (GrlDleynaMediaContainer2Iface, handle_get_compatible_resource),
    g_signal_accumulator_true_handled,
    NULL,
      grl_dleyna_media_container2_method_marshal_get_compatible_resource,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV);

  /* GObject properties for D-Bus properties: */
  /**
   * GrlDleynaMediaContainer2:child-count:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.ChildCount">"ChildCount"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_uint ("child-count", "ChildCount", "ChildCount", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:searchable:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Searchable">"Searchable"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_boolean ("searchable", "Searchable", "Searchable", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:create-classes:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.CreateClasses">"CreateClasses"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_variant ("create-classes", "CreateClasses", "CreateClasses", G_VARIANT_TYPE ("a(sb)"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:container-update-id:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.ContainerUpdateID">"ContainerUpdateID"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_uint ("container-update-id", "ContainerUpdateID", "ContainerUpdateID", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:total-deleted-child-count:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.TotalDeletedChildCount">"TotalDeletedChildCount"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_uint ("total-deleted-child-count", "TotalDeletedChildCount", "TotalDeletedChildCount", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:resources:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Resources">"Resources"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_variant ("resources", "Resources", "Resources", G_VARIANT_TYPE ("aa{sv}"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:urls:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.URLs">"URLs"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_boxed ("urls", "URLs", "URLs", G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:mimetype:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.MIMEType">"MIMEType"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_string ("mimetype", "MIMEType", "MIMEType", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:dlnaprofile:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAProfile">"DLNAProfile"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_string ("dlnaprofile", "DLNAProfile", "DLNAProfile", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:dlnaconversion:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAConversion">"DLNAConversion"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_variant ("dlnaconversion", "DLNAConversion", "DLNAConversion", G_VARIANT_TYPE ("a{sb}"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:dlnaoperation:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAOperation">"DLNAOperation"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_variant ("dlnaoperation", "DLNAOperation", "DLNAOperation", G_VARIANT_TYPE ("a{sb}"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:dlnaflags:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAFlags">"DLNAFlags"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_variant ("dlnaflags", "DLNAFlags", "DLNAFlags", G_VARIANT_TYPE ("a{sb}"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * GrlDleynaMediaContainer2:size:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Size">"Size"</link>.
   *
   * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
   */
  g_object_interface_install_property (iface,
    g_param_spec_int64 ("size", "Size", "Size", G_MININT64, G_MAXINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * grl_dleyna_media_container2_get_child_count: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.ChildCount">"ChildCount"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: The property value.
 */
guint 
grl_dleyna_media_container2_get_child_count (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), 0);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_child_count (object);
}

/**
 * grl_dleyna_media_container2_set_child_count: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.ChildCount">"ChildCount"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_child_count (GrlDleynaMediaContainer2 *object, guint value)
{
  g_object_set (G_OBJECT (object), "child-count", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_searchable: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Searchable">"Searchable"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: The property value.
 */
gboolean 
grl_dleyna_media_container2_get_searchable (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), FALSE);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_searchable (object);
}

/**
 * grl_dleyna_media_container2_set_searchable: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Searchable">"Searchable"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_searchable (GrlDleynaMediaContainer2 *object, gboolean value)
{
  g_object_set (G_OBJECT (object), "searchable", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_create_classes: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.CreateClasses">"CreateClasses"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_container2_dup_create_classes() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
GVariant *
grl_dleyna_media_container2_get_create_classes (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), NULL);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_create_classes (object);
}

/**
 * grl_dleyna_media_container2_dup_create_classes: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.CreateClasses">"CreateClasses"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref().
 */
GVariant *
grl_dleyna_media_container2_dup_create_classes (GrlDleynaMediaContainer2 *object)
{
  GVariant *value;
  g_object_get (G_OBJECT (object), "create-classes", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_container2_set_create_classes: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.CreateClasses">"CreateClasses"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_create_classes (GrlDleynaMediaContainer2 *object, GVariant *value)
{
  g_object_set (G_OBJECT (object), "create-classes", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_container_update_id: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.ContainerUpdateID">"ContainerUpdateID"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: The property value.
 */
guint 
grl_dleyna_media_container2_get_container_update_id (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), 0);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_container_update_id (object);
}

/**
 * grl_dleyna_media_container2_set_container_update_id: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.ContainerUpdateID">"ContainerUpdateID"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_container_update_id (GrlDleynaMediaContainer2 *object, guint value)
{
  g_object_set (G_OBJECT (object), "container-update-id", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_total_deleted_child_count: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.TotalDeletedChildCount">"TotalDeletedChildCount"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: The property value.
 */
guint 
grl_dleyna_media_container2_get_total_deleted_child_count (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), 0);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_total_deleted_child_count (object);
}

/**
 * grl_dleyna_media_container2_set_total_deleted_child_count: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.TotalDeletedChildCount">"TotalDeletedChildCount"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_total_deleted_child_count (GrlDleynaMediaContainer2 *object, guint value)
{
  g_object_set (G_OBJECT (object), "total-deleted-child-count", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_resources: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Resources">"Resources"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_container2_dup_resources() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
GVariant *
grl_dleyna_media_container2_get_resources (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), NULL);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_resources (object);
}

/**
 * grl_dleyna_media_container2_dup_resources: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Resources">"Resources"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref().
 */
GVariant *
grl_dleyna_media_container2_dup_resources (GrlDleynaMediaContainer2 *object)
{
  GVariant *value;
  g_object_get (G_OBJECT (object), "resources", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_container2_set_resources: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Resources">"Resources"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_resources (GrlDleynaMediaContainer2 *object, GVariant *value)
{
  g_object_set (G_OBJECT (object), "resources", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_urls: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.URLs">"URLs"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_container2_dup_urls() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
const gchar *const *
grl_dleyna_media_container2_get_urls (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), NULL);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_urls (object);
}

/**
 * grl_dleyna_media_container2_dup_urls: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.URLs">"URLs"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev().
 */
gchar **
grl_dleyna_media_container2_dup_urls (GrlDleynaMediaContainer2 *object)
{
  gchar **value;
  g_object_get (G_OBJECT (object), "urls", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_container2_set_urls: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.URLs">"URLs"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_urls (GrlDleynaMediaContainer2 *object, const gchar *const *value)
{
  g_object_set (G_OBJECT (object), "urls", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_mimetype: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.MIMEType">"MIMEType"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_container2_dup_mimetype() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
const gchar *
grl_dleyna_media_container2_get_mimetype (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), NULL);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_mimetype (object);
}

/**
 * grl_dleyna_media_container2_dup_mimetype: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.MIMEType">"MIMEType"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
 */
gchar *
grl_dleyna_media_container2_dup_mimetype (GrlDleynaMediaContainer2 *object)
{
  gchar *value;
  g_object_get (G_OBJECT (object), "mimetype", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_container2_set_mimetype: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.MIMEType">"MIMEType"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_mimetype (GrlDleynaMediaContainer2 *object, const gchar *value)
{
  g_object_set (G_OBJECT (object), "mimetype", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_dlnaprofile: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAProfile">"DLNAProfile"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_container2_dup_dlnaprofile() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
const gchar *
grl_dleyna_media_container2_get_dlnaprofile (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), NULL);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_dlnaprofile (object);
}

/**
 * grl_dleyna_media_container2_dup_dlnaprofile: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAProfile">"DLNAProfile"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
 */
gchar *
grl_dleyna_media_container2_dup_dlnaprofile (GrlDleynaMediaContainer2 *object)
{
  gchar *value;
  g_object_get (G_OBJECT (object), "dlnaprofile", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_container2_set_dlnaprofile: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAProfile">"DLNAProfile"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_dlnaprofile (GrlDleynaMediaContainer2 *object, const gchar *value)
{
  g_object_set (G_OBJECT (object), "dlnaprofile", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_dlnaconversion: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAConversion">"DLNAConversion"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_container2_dup_dlnaconversion() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
GVariant *
grl_dleyna_media_container2_get_dlnaconversion (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), NULL);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_dlnaconversion (object);
}

/**
 * grl_dleyna_media_container2_dup_dlnaconversion: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAConversion">"DLNAConversion"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref().
 */
GVariant *
grl_dleyna_media_container2_dup_dlnaconversion (GrlDleynaMediaContainer2 *object)
{
  GVariant *value;
  g_object_get (G_OBJECT (object), "dlnaconversion", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_container2_set_dlnaconversion: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAConversion">"DLNAConversion"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_dlnaconversion (GrlDleynaMediaContainer2 *object, GVariant *value)
{
  g_object_set (G_OBJECT (object), "dlnaconversion", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_dlnaoperation: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAOperation">"DLNAOperation"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_container2_dup_dlnaoperation() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
GVariant *
grl_dleyna_media_container2_get_dlnaoperation (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), NULL);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_dlnaoperation (object);
}

/**
 * grl_dleyna_media_container2_dup_dlnaoperation: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAOperation">"DLNAOperation"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref().
 */
GVariant *
grl_dleyna_media_container2_dup_dlnaoperation (GrlDleynaMediaContainer2 *object)
{
  GVariant *value;
  g_object_get (G_OBJECT (object), "dlnaoperation", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_container2_set_dlnaoperation: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAOperation">"DLNAOperation"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_dlnaoperation (GrlDleynaMediaContainer2 *object, GVariant *value)
{
  g_object_set (G_OBJECT (object), "dlnaoperation", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_dlnaflags: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAFlags">"DLNAFlags"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use grl_dleyna_media_container2_dup_dlnaflags() if on another thread.
 *
 * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
 */
GVariant *
grl_dleyna_media_container2_get_dlnaflags (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), NULL);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_dlnaflags (object);
}

/**
 * grl_dleyna_media_container2_dup_dlnaflags: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets a copy of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAFlags">"DLNAFlags"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref().
 */
GVariant *
grl_dleyna_media_container2_dup_dlnaflags (GrlDleynaMediaContainer2 *object)
{
  GVariant *value;
  g_object_get (G_OBJECT (object), "dlnaflags", &value, NULL);
  return value;
}

/**
 * grl_dleyna_media_container2_set_dlnaflags: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.DLNAFlags">"DLNAFlags"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_dlnaflags (GrlDleynaMediaContainer2 *object, GVariant *value)
{
  g_object_set (G_OBJECT (object), "dlnaflags", value, NULL);
}

/**
 * grl_dleyna_media_container2_get_size: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 *
 * Gets the value of the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Size">"Size"</link> D-Bus property.
 *
 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
 *
 * Returns: The property value.
 */
gint64 
grl_dleyna_media_container2_get_size (GrlDleynaMediaContainer2 *object)
{
  g_return_val_if_fail (GRL_DLEYNA_IS_MEDIA_CONTAINER2 (object), 0);

  return GRL_DLEYNA_MEDIA_CONTAINER2_GET_IFACE (object)->get_size (object);
}

/**
 * grl_dleyna_media_container2_set_size: (skip)
 * @object: A #GrlDleynaMediaContainer2.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-gnome-UPnP-MediaContainer2.Size">"Size"</link> D-Bus property to @value.
 *
 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
 */
void
grl_dleyna_media_container2_set_size (GrlDleynaMediaContainer2 *object, gint64 value)
{
  g_object_set (G_OBJECT (object), "size", value, NULL);
}

/**
 * grl_dleyna_media_container2_call_list_children:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListChildren">ListChildren()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_list_children_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_list_children_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_list_children (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "ListChildren",
    g_variant_new ("(uu^as)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_list_children_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_list_children().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_list_children().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_children_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Children,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_children_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListChildren">ListChildren()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_list_children() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_children_sync (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    GVariant **out_Children,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "ListChildren",
    g_variant_new ("(uu^as)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_children_ex:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @arg_SortBy: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListChildrenEx">ListChildrenEx()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_list_children_ex_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_list_children_ex_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_list_children_ex (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    const gchar *arg_SortBy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "ListChildrenEx",
    g_variant_new ("(uu^ass)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter,
                   arg_SortBy),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_list_children_ex_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_list_children_ex().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_list_children_ex().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_children_ex_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Children,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_children_ex_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @arg_SortBy: Argument to pass with the method invocation.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListChildrenEx">ListChildrenEx()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_list_children_ex() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_children_ex_sync (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    const gchar *arg_SortBy,
    GVariant **out_Children,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "ListChildrenEx",
    g_variant_new ("(uu^ass)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter,
                   arg_SortBy),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_containers:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListContainers">ListContainers()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_list_containers_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_list_containers_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_list_containers (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "ListContainers",
    g_variant_new ("(uu^as)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_list_containers_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_list_containers().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_list_containers().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_containers_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Children,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_containers_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListContainers">ListContainers()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_list_containers() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_containers_sync (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    GVariant **out_Children,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "ListContainers",
    g_variant_new ("(uu^as)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_containers_ex:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @arg_SortBy: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListContainersEx">ListContainersEx()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_list_containers_ex_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_list_containers_ex_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_list_containers_ex (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    const gchar *arg_SortBy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "ListContainersEx",
    g_variant_new ("(uu^ass)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter,
                   arg_SortBy),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_list_containers_ex_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_list_containers_ex().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_list_containers_ex().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_containers_ex_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Children,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_containers_ex_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @arg_SortBy: Argument to pass with the method invocation.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListContainersEx">ListContainersEx()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_list_containers_ex() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_containers_ex_sync (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    const gchar *arg_SortBy,
    GVariant **out_Children,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "ListContainersEx",
    g_variant_new ("(uu^ass)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter,
                   arg_SortBy),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_items:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListItems">ListItems()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_list_items_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_list_items_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_list_items (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "ListItems",
    g_variant_new ("(uu^as)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_list_items_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_list_items().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_list_items().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_items_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Children,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_items_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListItems">ListItems()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_list_items() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_items_sync (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    GVariant **out_Children,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "ListItems",
    g_variant_new ("(uu^as)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_items_ex:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @arg_SortBy: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListItemsEx">ListItemsEx()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_list_items_ex_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_list_items_ex_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_list_items_ex (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    const gchar *arg_SortBy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "ListItemsEx",
    g_variant_new ("(uu^ass)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter,
                   arg_SortBy),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_list_items_ex_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_list_items_ex().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_list_items_ex().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_items_ex_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Children,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_list_items_ex_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @arg_SortBy: Argument to pass with the method invocation.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListItemsEx">ListItemsEx()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_list_items_ex() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_list_items_ex_sync (
    GrlDleynaMediaContainer2 *proxy,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    const gchar *arg_SortBy,
    GVariant **out_Children,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "ListItemsEx",
    g_variant_new ("(uu^ass)",
                   arg_Offset,
                   arg_Max,
                   arg_Filter,
                   arg_SortBy),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_search_objects:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Query: Argument to pass with the method invocation.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.SearchObjects">SearchObjects()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_search_objects_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_search_objects_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_search_objects (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_Query,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SearchObjects",
    g_variant_new ("(suu^as)",
                   arg_Query,
                   arg_Offset,
                   arg_Max,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_search_objects_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_search_objects().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_search_objects().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_search_objects_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Children,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_search_objects_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Query: Argument to pass with the method invocation.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.SearchObjects">SearchObjects()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_search_objects() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_search_objects_sync (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_Query,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    GVariant **out_Children,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "SearchObjects",
    g_variant_new ("(suu^as)",
                   arg_Query,
                   arg_Offset,
                   arg_Max,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv})",
                 out_Children);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_search_objects_ex:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Query: Argument to pass with the method invocation.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @arg_SortBy: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.SearchObjectsEx">SearchObjectsEx()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_search_objects_ex_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_search_objects_ex_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_search_objects_ex (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_Query,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    const gchar *arg_SortBy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SearchObjectsEx",
    g_variant_new ("(suu^ass)",
                   arg_Query,
                   arg_Offset,
                   arg_Max,
                   arg_Filter,
                   arg_SortBy),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_search_objects_ex_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_TotalItems: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_search_objects_ex().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_search_objects_ex().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_search_objects_ex_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Children,
    guint *out_TotalItems,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv}u)",
                 out_Children,
                 out_TotalItems);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_search_objects_ex_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Query: Argument to pass with the method invocation.
 * @arg_Offset: Argument to pass with the method invocation.
 * @arg_Max: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @arg_SortBy: Argument to pass with the method invocation.
 * @out_Children: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_TotalItems: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.SearchObjectsEx">SearchObjectsEx()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_search_objects_ex() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_search_objects_ex_sync (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_Query,
    guint arg_Offset,
    guint arg_Max,
    const gchar *const *arg_Filter,
    const gchar *arg_SortBy,
    GVariant **out_Children,
    guint *out_TotalItems,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "SearchObjectsEx",
    g_variant_new ("(suu^ass)",
                   arg_Query,
                   arg_Offset,
                   arg_Max,
                   arg_Filter,
                   arg_SortBy),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@aa{sv}u)",
                 out_Children,
                 out_TotalItems);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_upload:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_DisplayName: Argument to pass with the method invocation.
 * @arg_FilePath: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.Upload">Upload()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_upload_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_upload_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_upload (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_DisplayName,
    const gchar *arg_FilePath,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Upload",
    g_variant_new ("(ss)",
                   arg_DisplayName,
                   arg_FilePath),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_upload_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_UploadId: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_Path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_upload().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_upload().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_upload_finish (
    GrlDleynaMediaContainer2 *proxy,
    guint *out_UploadId,
    gchar **out_Path,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(uo)",
                 out_UploadId,
                 out_Path);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_upload_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_DisplayName: Argument to pass with the method invocation.
 * @arg_FilePath: Argument to pass with the method invocation.
 * @out_UploadId: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_Path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.Upload">Upload()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_upload() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_upload_sync (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_DisplayName,
    const gchar *arg_FilePath,
    guint *out_UploadId,
    gchar **out_Path,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Upload",
    g_variant_new ("(ss)",
                   arg_DisplayName,
                   arg_FilePath),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(uo)",
                 out_UploadId,
                 out_Path);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_create_container:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_DisplayName: Argument to pass with the method invocation.
 * @arg_Type: Argument to pass with the method invocation.
 * @arg_ChildTypes: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.CreateContainer">CreateContainer()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_create_container_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_create_container_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_create_container (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_DisplayName,
    const gchar *arg_Type,
    const gchar *const *arg_ChildTypes,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "CreateContainer",
    g_variant_new ("(ss^as)",
                   arg_DisplayName,
                   arg_Type,
                   arg_ChildTypes),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_create_container_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_create_container().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_create_container().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_create_container_finish (
    GrlDleynaMediaContainer2 *proxy,
    gchar **out_Path,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_Path);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_create_container_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_DisplayName: Argument to pass with the method invocation.
 * @arg_Type: Argument to pass with the method invocation.
 * @arg_ChildTypes: Argument to pass with the method invocation.
 * @out_Path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.CreateContainer">CreateContainer()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_create_container() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_create_container_sync (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_DisplayName,
    const gchar *arg_Type,
    const gchar *const *arg_ChildTypes,
    gchar **out_Path,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "CreateContainer",
    g_variant_new ("(ss^as)",
                   arg_DisplayName,
                   arg_Type,
                   arg_ChildTypes),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_Path);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_create_playlist:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Title: Argument to pass with the method invocation.
 * @arg_Creator: Argument to pass with the method invocation.
 * @arg_Genre: Argument to pass with the method invocation.
 * @arg_Description: Argument to pass with the method invocation.
 * @arg_PlaylistItems: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.CreatePlaylist">CreatePlaylist()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_create_playlist_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_create_playlist_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_create_playlist (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_Title,
    const gchar *arg_Creator,
    const gchar *arg_Genre,
    const gchar *arg_Description,
    const gchar *const *arg_PlaylistItems,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "CreatePlaylist",
    g_variant_new ("(ssss^ao)",
                   arg_Title,
                   arg_Creator,
                   arg_Genre,
                   arg_Description,
                   arg_PlaylistItems),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_create_playlist_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_UploadId: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_Path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_create_playlist().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_create_playlist().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_create_playlist_finish (
    GrlDleynaMediaContainer2 *proxy,
    guint *out_UploadId,
    gchar **out_Path,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(uo)",
                 out_UploadId,
                 out_Path);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_create_playlist_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_Title: Argument to pass with the method invocation.
 * @arg_Creator: Argument to pass with the method invocation.
 * @arg_Genre: Argument to pass with the method invocation.
 * @arg_Description: Argument to pass with the method invocation.
 * @arg_PlaylistItems: Argument to pass with the method invocation.
 * @out_UploadId: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_Path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.CreatePlaylist">CreatePlaylist()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_create_playlist() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_create_playlist_sync (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_Title,
    const gchar *arg_Creator,
    const gchar *arg_Genre,
    const gchar *arg_Description,
    const gchar *const *arg_PlaylistItems,
    guint *out_UploadId,
    gchar **out_Path,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "CreatePlaylist",
    g_variant_new ("(ssss^ao)",
                   arg_Title,
                   arg_Creator,
                   arg_Genre,
                   arg_Description,
                   arg_PlaylistItems),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(uo)",
                 out_UploadId,
                 out_Path);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_get_compatible_resource:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_ProtocolInfo: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.GetCompatibleResource">GetCompatibleResource()</link> D-Bus method on @proxy.
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_call_get_compatible_resource_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_call_get_compatible_resource_sync() for the synchronous, blocking version of this method.
 */
void
grl_dleyna_media_container2_call_get_compatible_resource (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_ProtocolInfo,
    const gchar *const *arg_Filter,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "GetCompatibleResource",
    g_variant_new ("(s^as)",
                   arg_ProtocolInfo,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * grl_dleyna_media_container2_call_get_compatible_resource_finish:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @out_Properties: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_call_get_compatible_resource().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with grl_dleyna_media_container2_call_get_compatible_resource().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_get_compatible_resource_finish (
    GrlDleynaMediaContainer2 *proxy,
    GVariant **out_Properties,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@a{sv})",
                 out_Properties);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_call_get_compatible_resource_sync:
 * @proxy: A #GrlDleynaMediaContainer2Proxy.
 * @arg_ProtocolInfo: Argument to pass with the method invocation.
 * @arg_Filter: Argument to pass with the method invocation.
 * @out_Properties: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.GetCompatibleResource">GetCompatibleResource()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_call_get_compatible_resource() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
grl_dleyna_media_container2_call_get_compatible_resource_sync (
    GrlDleynaMediaContainer2 *proxy,
    const gchar *arg_ProtocolInfo,
    const gchar *const *arg_Filter,
    GVariant **out_Properties,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "GetCompatibleResource",
    g_variant_new ("(s^as)",
                   arg_ProtocolInfo,
                   arg_Filter),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@a{sv})",
                 out_Properties);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * grl_dleyna_media_container2_complete_list_children:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Children: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListChildren">ListChildren()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_list_children (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Children)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@aa{sv})",
                   Children));
}

/**
 * grl_dleyna_media_container2_complete_list_children_ex:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Children: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListChildrenEx">ListChildrenEx()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_list_children_ex (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Children)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@aa{sv})",
                   Children));
}

/**
 * grl_dleyna_media_container2_complete_list_containers:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Children: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListContainers">ListContainers()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_list_containers (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Children)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@aa{sv})",
                   Children));
}

/**
 * grl_dleyna_media_container2_complete_list_containers_ex:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Children: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListContainersEx">ListContainersEx()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_list_containers_ex (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Children)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@aa{sv})",
                   Children));
}

/**
 * grl_dleyna_media_container2_complete_list_items:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Children: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListItems">ListItems()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_list_items (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Children)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@aa{sv})",
                   Children));
}

/**
 * grl_dleyna_media_container2_complete_list_items_ex:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Children: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.ListItemsEx">ListItemsEx()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_list_items_ex (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Children)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@aa{sv})",
                   Children));
}

/**
 * grl_dleyna_media_container2_complete_search_objects:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Children: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.SearchObjects">SearchObjects()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_search_objects (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Children)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@aa{sv})",
                   Children));
}

/**
 * grl_dleyna_media_container2_complete_search_objects_ex:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Children: Parameter to return.
 * @TotalItems: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.SearchObjectsEx">SearchObjectsEx()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_search_objects_ex (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Children,
    guint TotalItems)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@aa{sv}u)",
                   Children,
                   TotalItems));
}

/**
 * grl_dleyna_media_container2_complete_upload:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @UploadId: Parameter to return.
 * @Path: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.Upload">Upload()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_upload (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    guint UploadId,
    const gchar *Path)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(uo)",
                   UploadId,
                   Path));
}

/**
 * grl_dleyna_media_container2_complete_create_container:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Path: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.CreateContainer">CreateContainer()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_create_container (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *Path)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(o)",
                   Path));
}

/**
 * grl_dleyna_media_container2_complete_create_playlist:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @UploadId: Parameter to return.
 * @Path: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.CreatePlaylist">CreatePlaylist()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_create_playlist (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    guint UploadId,
    const gchar *Path)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(uo)",
                   UploadId,
                   Path));
}

/**
 * grl_dleyna_media_container2_complete_get_compatible_resource:
 * @object: A #GrlDleynaMediaContainer2.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @Properties: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-UPnP-MediaContainer2.GetCompatibleResource">GetCompatibleResource()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
 *
 * This method will free @invocation, you cannot use it afterwards.
 */
void
grl_dleyna_media_container2_complete_get_compatible_resource (
    GrlDleynaMediaContainer2 *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *Properties)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@a{sv})",
                   Properties));
}

/* ------------------------------------------------------------------------ */

/**
 * GrlDleynaMediaContainer2Proxy:
 *
 * The #GrlDleynaMediaContainer2Proxy structure contains only private data and should only be accessed using the provided API.
 */

/**
 * GrlDleynaMediaContainer2ProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #GrlDleynaMediaContainer2Proxy.
 */

struct _GrlDleynaMediaContainer2ProxyPrivate
{
  GData *qdata;
};

static void grl_dleyna_media_container2_proxy_iface_init (GrlDleynaMediaContainer2Iface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (GrlDleynaMediaContainer2Proxy, grl_dleyna_media_container2_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (GrlDleynaMediaContainer2Proxy)
                         G_IMPLEMENT_INTERFACE (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2, grl_dleyna_media_container2_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (GrlDleynaMediaContainer2Proxy, grl_dleyna_media_container2_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2, grl_dleyna_media_container2_proxy_iface_init))

#endif
static void
grl_dleyna_media_container2_proxy_finalize (GObject *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (grl_dleyna_media_container2_proxy_parent_class)->finalize (object);
}

static void
grl_dleyna_media_container2_proxy_get_property (GObject      *object,
  guint         prop_id,
  GValue       *value,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
  const _ExtendedGDBusPropertyInfo *info;
  GVariant *variant;
  g_assert (prop_id != 0 && prop_id - 1 < 13);
  info = (const _ExtendedGDBusPropertyInfo *) _grl_dleyna_media_container2_property_info_pointers[prop_id - 1];
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name);
  if (info->use_gvariant)
    {
      g_value_set_variant (value, variant);
    }
  else
    {
      if (variant != NULL)
        g_dbus_gvariant_to_gvalue (variant, value);
    }
  if (variant != NULL)
    g_variant_unref (variant);
}

static void
grl_dleyna_media_container2_proxy_set_property_cb (GDBusProxy *proxy,
  GAsyncResult *res,
  gpointer      user_data)
{
  const _ExtendedGDBusPropertyInfo *info = user_data;
  GError *error;
  GVariant *_ret;
  error = NULL;
  _ret = g_dbus_proxy_call_finish (proxy, res, &error);
  if (!_ret)
    {
      g_warning ("Error setting property '%s' on interface org.gnome.UPnP.MediaContainer2: %s (%s, %d)",
                 info->parent_struct.name, 
                 error->message, g_quark_to_string (error->domain), error->code);
      g_error_free (error);
    }
  else
    {
      g_variant_unref (_ret);
    }
}

static void
grl_dleyna_media_container2_proxy_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
  const _ExtendedGDBusPropertyInfo *info;
  GVariant *variant;
  g_assert (prop_id != 0 && prop_id - 1 < 13);
  info = (const _ExtendedGDBusPropertyInfo *) _grl_dleyna_media_container2_property_info_pointers[prop_id - 1];
  variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature));
  g_dbus_proxy_call (G_DBUS_PROXY (object),
    "org.freedesktop.DBus.Properties.Set",
    g_variant_new ("(ssv)", "org.gnome.UPnP.MediaContainer2", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) grl_dleyna_media_container2_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
grl_dleyna_media_container2_proxy_g_signal (GDBusProxy *proxy,
  const gchar *sender_name G_GNUC_UNUSED,
  const gchar *signal_name,
  GVariant *parameters)
{
  _ExtendedGDBusSignalInfo *info;
  GVariantIter iter;
  GVariant *child;
  GValue *paramv;
  gsize num_params;
  gsize n;
  guint signal_id;
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_grl_dleyna_media_container2_interface_info.parent_struct, signal_name);
  if (info == NULL)
    return;
  num_params = g_variant_n_children (parameters);
  paramv = g_new0 (GValue, num_params + 1);
  g_value_init (&paramv[0], GRL_DLEYNA_TYPE_MEDIA_CONTAINER2);
  g_value_set_object (&paramv[0], proxy);
  g_variant_iter_init (&iter, parameters);
  n = 1;
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
    {
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
      if (arg_info->use_gvariant)
        {
          g_value_init (&paramv[n], G_TYPE_VARIANT);
          g_value_set_variant (&paramv[n], child);
          n++;
        }
      else
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
      g_variant_unref (child);
    }
  signal_id = g_signal_lookup (info->signal_name, GRL_DLEYNA_TYPE_MEDIA_CONTAINER2);
  g_signal_emitv (paramv, signal_id, 0, NULL);
  for (n = 0; n < num_params + 1; n++)
    g_value_unset (&paramv[n]);
  g_free (paramv);
}

static void
grl_dleyna_media_container2_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (_proxy);
  guint n;
  const gchar *key;
  GVariantIter *iter;
  _ExtendedGDBusPropertyInfo *info;
  g_variant_get (changed_properties, "a{sv}", &iter);
  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
    {
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_grl_dleyna_media_container2_interface_info.parent_struct, key);
      g_datalist_remove_data (&proxy->priv->qdata, key);
      if (info != NULL)
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
    }
  g_variant_iter_free (iter);
  for (n = 0; invalidated_properties[n] != NULL; n++)
    {
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_grl_dleyna_media_container2_interface_info.parent_struct, invalidated_properties[n]);
      g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
      if (info != NULL)
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
    }
}

static guint 
grl_dleyna_media_container2_proxy_get_child_count (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "ChildCount");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static gboolean 
grl_dleyna_media_container2_proxy_get_searchable (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  gboolean value = FALSE;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Searchable");
  if (variant != NULL)
    {
      value = g_variant_get_boolean (variant);
      g_variant_unref (variant);
    }
  return value;
}

static GVariant *
grl_dleyna_media_container2_proxy_get_create_classes (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  GVariant *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "CreateClasses");
  value = variant;
  if (variant != NULL)
    g_variant_unref (variant);
  return value;
}

static guint 
grl_dleyna_media_container2_proxy_get_container_update_id (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "ContainerUpdateID");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static guint 
grl_dleyna_media_container2_proxy_get_total_deleted_child_count (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "TotalDeletedChildCount");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static GVariant *
grl_dleyna_media_container2_proxy_get_resources (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  GVariant *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Resources");
  value = variant;
  if (variant != NULL)
    g_variant_unref (variant);
  return value;
}

static const gchar *const *
grl_dleyna_media_container2_proxy_get_urls (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  const gchar *const *value = NULL;
  value = g_datalist_get_data (&proxy->priv->qdata, "URLs");
  if (value != NULL)
    return value;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "URLs");
  if (variant != NULL)
    {
      value = g_variant_get_strv (variant, NULL);
      g_datalist_set_data_full (&proxy->priv->qdata, "URLs", (gpointer) value, g_free);
      g_variant_unref (variant);
    }
  return value;
}

static const gchar *
grl_dleyna_media_container2_proxy_get_mimetype (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  const gchar *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "MIMEType");
  if (variant != NULL)
    {
      value = g_variant_get_string (variant, NULL);
      g_variant_unref (variant);
    }
  return value;
}

static const gchar *
grl_dleyna_media_container2_proxy_get_dlnaprofile (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  const gchar *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DLNAProfile");
  if (variant != NULL)
    {
      value = g_variant_get_string (variant, NULL);
      g_variant_unref (variant);
    }
  return value;
}

static GVariant *
grl_dleyna_media_container2_proxy_get_dlnaconversion (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  GVariant *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DLNAConversion");
  value = variant;
  if (variant != NULL)
    g_variant_unref (variant);
  return value;
}

static GVariant *
grl_dleyna_media_container2_proxy_get_dlnaoperation (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  GVariant *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DLNAOperation");
  value = variant;
  if (variant != NULL)
    g_variant_unref (variant);
  return value;
}

static GVariant *
grl_dleyna_media_container2_proxy_get_dlnaflags (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  GVariant *value = NULL;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DLNAFlags");
  value = variant;
  if (variant != NULL)
    g_variant_unref (variant);
  return value;
}

static gint64 
grl_dleyna_media_container2_proxy_get_size (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Proxy *proxy = GRL_DLEYNA_MEDIA_CONTAINER2_PROXY (object);
  GVariant *variant;
  gint64 value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Size");
  if (variant != NULL)
    {
      value = g_variant_get_int64 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
grl_dleyna_media_container2_proxy_init (GrlDleynaMediaContainer2Proxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = grl_dleyna_media_container2_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GRL_DLEYNA_TYPE_MEDIA_CONTAINER2_PROXY, GrlDleynaMediaContainer2ProxyPrivate);
#endif

  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), grl_dleyna_media_container2_interface_info ());
}

static void
grl_dleyna_media_container2_proxy_class_init (GrlDleynaMediaContainer2ProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = grl_dleyna_media_container2_proxy_finalize;
  gobject_class->get_property = grl_dleyna_media_container2_proxy_get_property;
  gobject_class->set_property = grl_dleyna_media_container2_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = grl_dleyna_media_container2_proxy_g_signal;
  proxy_class->g_properties_changed = grl_dleyna_media_container2_proxy_g_properties_changed;

  grl_dleyna_media_container2_override_properties (gobject_class, 1);

#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
  g_type_class_add_private (klass, sizeof (GrlDleynaMediaContainer2ProxyPrivate));
#endif
}

static void
grl_dleyna_media_container2_proxy_iface_init (GrlDleynaMediaContainer2Iface *iface)
{
  iface->get_child_count = grl_dleyna_media_container2_proxy_get_child_count;
  iface->get_searchable = grl_dleyna_media_container2_proxy_get_searchable;
  iface->get_create_classes = grl_dleyna_media_container2_proxy_get_create_classes;
  iface->get_container_update_id = grl_dleyna_media_container2_proxy_get_container_update_id;
  iface->get_total_deleted_child_count = grl_dleyna_media_container2_proxy_get_total_deleted_child_count;
  iface->get_resources = grl_dleyna_media_container2_proxy_get_resources;
  iface->get_urls = grl_dleyna_media_container2_proxy_get_urls;
  iface->get_mimetype = grl_dleyna_media_container2_proxy_get_mimetype;
  iface->get_dlnaprofile = grl_dleyna_media_container2_proxy_get_dlnaprofile;
  iface->get_dlnaconversion = grl_dleyna_media_container2_proxy_get_dlnaconversion;
  iface->get_dlnaoperation = grl_dleyna_media_container2_proxy_get_dlnaoperation;
  iface->get_dlnaflags = grl_dleyna_media_container2_proxy_get_dlnaflags;
  iface->get_size = grl_dleyna_media_container2_proxy_get_size;
}

/**
 * grl_dleyna_media_container2_proxy_new:
 * @connection: A #GDBusConnection.
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
 * @object_path: An object path.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
 * @user_data: User data to pass to @callback.
 *
 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaContainer2.top_of_page">org.gnome.UPnP.MediaContainer2</link>. See g_dbus_proxy_new() for more details.
 *
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_proxy_new_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
grl_dleyna_media_container2_proxy_new (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data)
{
  g_async_initable_new_async (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.UPnP.MediaContainer2", NULL);
}

/**
 * grl_dleyna_media_container2_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with grl_dleyna_media_container2_proxy_new().
 *
 * Returns: (transfer full) (type GrlDleynaMediaContainer2Proxy): The constructed proxy object or %NULL if @error is set.
 */
GrlDleynaMediaContainer2 *
grl_dleyna_media_container2_proxy_new_finish (
    GAsyncResult        *res,
    GError             **error)
{
  GObject *ret;
  GObject *source_object;
  source_object = g_async_result_get_source_object (res);
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
  g_object_unref (source_object);
  if (ret != NULL)
    return GRL_DLEYNA_MEDIA_CONTAINER2 (ret);
  else
    return NULL;
}

/**
 * grl_dleyna_media_container2_proxy_new_sync:
 * @connection: A #GDBusConnection.
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
 * @object_path: An object path.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL
 *
 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaContainer2.top_of_page">org.gnome.UPnP.MediaContainer2</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type GrlDleynaMediaContainer2Proxy): The constructed proxy object or %NULL if @error is set.
 */
GrlDleynaMediaContainer2 *
grl_dleyna_media_container2_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.UPnP.MediaContainer2", NULL);
  if (ret != NULL)
    return GRL_DLEYNA_MEDIA_CONTAINER2 (ret);
  else
    return NULL;
}


/**
 * grl_dleyna_media_container2_proxy_new_for_bus:
 * @bus_type: A #GBusType.
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 * @name: A bus name (well-known or unique).
 * @object_path: An object path.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
 * @user_data: User data to pass to @callback.
 *
 * Like grl_dleyna_media_container2_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
 *
 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
 * You can then call grl_dleyna_media_container2_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See grl_dleyna_media_container2_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
grl_dleyna_media_container2_proxy_new_for_bus (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GAsyncReadyCallback  callback,
    gpointer             user_data)
{
  g_async_initable_new_async (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.UPnP.MediaContainer2", NULL);
}

/**
 * grl_dleyna_media_container2_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to grl_dleyna_media_container2_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with grl_dleyna_media_container2_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type GrlDleynaMediaContainer2Proxy): The constructed proxy object or %NULL if @error is set.
 */
GrlDleynaMediaContainer2 *
grl_dleyna_media_container2_proxy_new_for_bus_finish (
    GAsyncResult        *res,
    GError             **error)
{
  GObject *ret;
  GObject *source_object;
  source_object = g_async_result_get_source_object (res);
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
  g_object_unref (source_object);
  if (ret != NULL)
    return GRL_DLEYNA_MEDIA_CONTAINER2 (ret);
  else
    return NULL;
}

/**
 * grl_dleyna_media_container2_proxy_new_for_bus_sync:
 * @bus_type: A #GBusType.
 * @flags: Flags from the #GDBusProxyFlags enumeration.
 * @name: A bus name (well-known or unique).
 * @object_path: An object path.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL
 *
 * Like grl_dleyna_media_container2_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See grl_dleyna_media_container2_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type GrlDleynaMediaContainer2Proxy): The constructed proxy object or %NULL if @error is set.
 */
GrlDleynaMediaContainer2 *
grl_dleyna_media_container2_proxy_new_for_bus_sync (
    GBusType             bus_type,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.UPnP.MediaContainer2", NULL);
  if (ret != NULL)
    return GRL_DLEYNA_MEDIA_CONTAINER2 (ret);
  else
    return NULL;
}


/* ------------------------------------------------------------------------ */

/**
 * GrlDleynaMediaContainer2Skeleton:
 *
 * The #GrlDleynaMediaContainer2Skeleton structure contains only private data and should only be accessed using the provided API.
 */

/**
 * GrlDleynaMediaContainer2SkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #GrlDleynaMediaContainer2Skeleton.
 */

struct _GrlDleynaMediaContainer2SkeletonPrivate
{
  GValue *properties;
  GList *changed_properties;
  GSource *changed_properties_idle_source;
  GMainContext *context;
  GMutex lock;
};

static void
_grl_dleyna_media_container2_skeleton_handle_method_call (
  GDBusConnection *connection G_GNUC_UNUSED,
  const gchar *sender G_GNUC_UNUSED,
  const gchar *object_path G_GNUC_UNUSED,
  const gchar *interface_name,
  const gchar *method_name,
  GVariant *parameters,
  GDBusMethodInvocation *invocation,
  gpointer user_data)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (user_data);
  _ExtendedGDBusMethodInfo *info;
  GVariantIter iter;
  GVariant *child;
  GValue *paramv;
  gsize num_params;
  guint num_extra;
  gsize n;
  guint signal_id;
  GValue return_value = G_VALUE_INIT;
  info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
  g_assert (info != NULL);
  num_params = g_variant_n_children (parameters);
  num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
  n = 0;
  g_value_init (&paramv[n], GRL_DLEYNA_TYPE_MEDIA_CONTAINER2);
  g_value_set_object (&paramv[n++], skeleton);
  g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
  g_value_set_object (&paramv[n++], invocation);
  if (info->pass_fdlist)
    {
#ifdef G_OS_UNIX
      g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
      g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
#else
      g_assert_not_reached ();
#endif
    }
  g_variant_iter_init (&iter, parameters);
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
    {
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
      if (arg_info->use_gvariant)
        {
          g_value_init (&paramv[n], G_TYPE_VARIANT);
          g_value_set_variant (&paramv[n], child);
          n++;
        }
      else
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
      g_variant_unref (child);
    }
  signal_id = g_signal_lookup (info->signal_name, GRL_DLEYNA_TYPE_MEDIA_CONTAINER2);
  g_value_init (&return_value, G_TYPE_BOOLEAN);
  g_signal_emitv (paramv, signal_id, 0, &return_value);
  if (!g_value_get_boolean (&return_value))
    g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
  g_value_unset (&return_value);
  for (n = 0; n < num_params + num_extra; n++)
    g_value_unset (&paramv[n]);
  g_free (paramv);
}

static GVariant *
_grl_dleyna_media_container2_skeleton_handle_get_property (
  GDBusConnection *connection G_GNUC_UNUSED,
  const gchar *sender G_GNUC_UNUSED,
  const gchar *object_path G_GNUC_UNUSED,
  const gchar *interface_name G_GNUC_UNUSED,
  const gchar *property_name,
  GError **error,
  gpointer user_data)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (user_data);
  GValue value = G_VALUE_INIT;
  GParamSpec *pspec;
  _ExtendedGDBusPropertyInfo *info;
  GVariant *ret;
  ret = NULL;
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_grl_dleyna_media_container2_interface_info.parent_struct, property_name);
  g_assert (info != NULL);
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
  if (pspec == NULL)
    {
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
    }
  else
    {
      g_value_init (&value, pspec->value_type);
      g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
      ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
      g_value_unset (&value);
    }
  return ret;
}

static gboolean
_grl_dleyna_media_container2_skeleton_handle_set_property (
  GDBusConnection *connection G_GNUC_UNUSED,
  const gchar *sender G_GNUC_UNUSED,
  const gchar *object_path G_GNUC_UNUSED,
  const gchar *interface_name G_GNUC_UNUSED,
  const gchar *property_name,
  GVariant *variant,
  GError **error,
  gpointer user_data)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (user_data);
  GValue value = G_VALUE_INIT;
  GParamSpec *pspec;
  _ExtendedGDBusPropertyInfo *info;
  gboolean ret;
  ret = FALSE;
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_grl_dleyna_media_container2_interface_info.parent_struct, property_name);
  g_assert (info != NULL);
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
  if (pspec == NULL)
    {
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
    }
  else
    {
      if (info->use_gvariant)
        g_value_set_variant (&value, variant);
      else
        g_dbus_gvariant_to_gvalue (variant, &value);
      g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
      g_value_unset (&value);
      ret = TRUE;
    }
  return ret;
}

static const GDBusInterfaceVTable _grl_dleyna_media_container2_skeleton_vtable =
{
  _grl_dleyna_media_container2_skeleton_handle_method_call,
  _grl_dleyna_media_container2_skeleton_handle_get_property,
  _grl_dleyna_media_container2_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
grl_dleyna_media_container2_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return grl_dleyna_media_container2_interface_info ();
}

static GDBusInterfaceVTable *
grl_dleyna_media_container2_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_grl_dleyna_media_container2_skeleton_vtable;
}

static GVariant *
grl_dleyna_media_container2_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84
  g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}"));
#else
  g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}"));
#endif
  if (_grl_dleyna_media_container2_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _grl_dleyna_media_container2_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _grl_dleyna_media_container2_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _grl_dleyna_media_container2_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.gnome.UPnP.MediaContainer2", info->name, NULL, skeleton);
          if (value != NULL)
            {
              g_variant_take_ref (value);
              g_variant_builder_add (&builder, "{sv}", info->name, value);
              g_variant_unref (value);
            }
        }
    }
out:
  return g_variant_builder_end (&builder);
}

static gboolean _grl_dleyna_media_container2_emit_changed (gpointer user_data);

static void
grl_dleyna_media_container2_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (_skeleton);
  gboolean emit_changed = FALSE;

  g_mutex_lock (&skeleton->priv->lock);
  if (skeleton->priv->changed_properties_idle_source != NULL)
    {
      g_source_destroy (skeleton->priv->changed_properties_idle_source);
      skeleton->priv->changed_properties_idle_source = NULL;
      emit_changed = TRUE;
    }
  g_mutex_unlock (&skeleton->priv->lock);

  if (emit_changed)
    _grl_dleyna_media_container2_emit_changed (skeleton);
}

static void grl_dleyna_media_container2_skeleton_iface_init (GrlDleynaMediaContainer2Iface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (GrlDleynaMediaContainer2Skeleton, grl_dleyna_media_container2_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (GrlDleynaMediaContainer2Skeleton)
                         G_IMPLEMENT_INTERFACE (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2, grl_dleyna_media_container2_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (GrlDleynaMediaContainer2Skeleton, grl_dleyna_media_container2_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2, grl_dleyna_media_container2_skeleton_iface_init))

#endif
static void
grl_dleyna_media_container2_skeleton_finalize (GObject *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  guint n;
  for (n = 0; n < 13; n++)
    g_value_unset (&skeleton->priv->properties[n]);
  g_free (skeleton->priv->properties);
  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
  if (skeleton->priv->changed_properties_idle_source != NULL)
    g_source_destroy (skeleton->priv->changed_properties_idle_source);
  g_main_context_unref (skeleton->priv->context);
  g_mutex_clear (&skeleton->priv->lock);
  G_OBJECT_CLASS (grl_dleyna_media_container2_skeleton_parent_class)->finalize (object);
}

static void
grl_dleyna_media_container2_skeleton_get_property (GObject      *object,
  guint         prop_id,
  GValue       *value,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 13);
  g_mutex_lock (&skeleton->priv->lock);
  g_value_copy (&skeleton->priv->properties[prop_id - 1], value);
  g_mutex_unlock (&skeleton->priv->lock);
}

static gboolean
_grl_dleyna_media_container2_emit_changed (gpointer user_data)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84
  g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as"));
#else
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
#endif
  for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next)
    {
      ChangedProperty *cp = l->data;
      GVariant *variant;
      const GValue *cur_value;

      cur_value = &skeleton->priv->properties[cp->prop_id - 1];
      if (!_g_value_equal (cur_value, &cp->orig_value))
        {
          variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature));
          g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant);
          g_variant_unref (variant);
          num_changes++;
        }
    }
  if (num_changes > 0)
    {
      GList *connections, *ll;
      GVariant *signal_variant;
      signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "org.gnome.UPnP.MediaContainer2",
                                           &builder, &invalidated_builder));
      connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
      for (ll = connections; ll != NULL; ll = ll->next)
        {
          GDBusConnection *connection = ll->data;

          g_dbus_connection_emit_signal (connection,
                                         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)),
                                         "org.freedesktop.DBus.Properties",
                                         "PropertiesChanged",
                                         signal_variant,
                                         NULL);
        }
      g_variant_unref (signal_variant);
      g_list_free_full (connections, g_object_unref);
    }
  else
    {
      g_variant_builder_clear (&builder);
      g_variant_builder_clear (&invalidated_builder);
    }
  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
  skeleton->priv->changed_properties = NULL;
  skeleton->priv->changed_properties_idle_source = NULL;
  g_mutex_unlock (&skeleton->priv->lock);
  return FALSE;
}

static void
_grl_dleyna_media_container2_schedule_emit_changed (GrlDleynaMediaContainer2Skeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value)
{
  ChangedProperty *cp;
  GList *l;
  cp = NULL;
  for (l = skeleton->priv->changed_properties; l != NULL; l = l->next)
    {
      ChangedProperty *i_cp = l->data;
      if (i_cp->info == info)
        {
          cp = i_cp;
          break;
        }
    }
  if (cp == NULL)
    {
      cp = g_new0 (ChangedProperty, 1);
      cp->prop_id = prop_id;
      cp->info = info;
      skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp);
      g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value));
      g_value_copy (orig_value, &cp->orig_value);
    }
}

static void
grl_dleyna_media_container2_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  g_mutex_lock (&skeleton->priv->lock);
  if (skeleton->priv->changed_properties != NULL &&
      skeleton->priv->changed_properties_idle_source == NULL)
    {
      skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
      g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
      g_source_set_callback (skeleton->priv->changed_properties_idle_source, _grl_dleyna_media_container2_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _grl_dleyna_media_container2_emit_changed");
      g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
      g_source_unref (skeleton->priv->changed_properties_idle_source);
    }
  g_mutex_unlock (&skeleton->priv->lock);
}

static void
grl_dleyna_media_container2_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 13);
  info = (const _ExtendedGDBusPropertyInfo *) _grl_dleyna_media_container2_property_info_pointers[prop_id - 1];
  g_mutex_lock (&skeleton->priv->lock);
  g_object_freeze_notify (object);
  if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1]))
    {
      if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL &&
          info->emits_changed_signal)
        _grl_dleyna_media_container2_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]);
      g_value_copy (value, &skeleton->priv->properties[prop_id - 1]);
      g_object_notify_by_pspec (object, pspec);
    }
  g_mutex_unlock (&skeleton->priv->lock);
  g_object_thaw_notify (object);
}

static void
grl_dleyna_media_container2_skeleton_init (GrlDleynaMediaContainer2Skeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = grl_dleyna_media_container2_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GRL_DLEYNA_TYPE_MEDIA_CONTAINER2_SKELETON, GrlDleynaMediaContainer2SkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 13);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
  g_value_init (&skeleton->priv->properties[1], G_TYPE_BOOLEAN);
  g_value_init (&skeleton->priv->properties[2], G_TYPE_VARIANT);
  g_value_init (&skeleton->priv->properties[3], G_TYPE_UINT);
  g_value_init (&skeleton->priv->properties[4], G_TYPE_UINT);
  g_value_init (&skeleton->priv->properties[5], G_TYPE_VARIANT);
  g_value_init (&skeleton->priv->properties[6], G_TYPE_STRV);
  g_value_init (&skeleton->priv->properties[7], G_TYPE_STRING);
  g_value_init (&skeleton->priv->properties[8], G_TYPE_STRING);
  g_value_init (&skeleton->priv->properties[9], G_TYPE_VARIANT);
  g_value_init (&skeleton->priv->properties[10], G_TYPE_VARIANT);
  g_value_init (&skeleton->priv->properties[11], G_TYPE_VARIANT);
  g_value_init (&skeleton->priv->properties[12], G_TYPE_INT64);
}

static guint 
grl_dleyna_media_container2_skeleton_get_child_count (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_uint (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static gboolean 
grl_dleyna_media_container2_skeleton_get_searchable (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  gboolean value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_boolean (&(skeleton->priv->properties[1]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static GVariant *
grl_dleyna_media_container2_skeleton_get_create_classes (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  GVariant *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_variant (&(skeleton->priv->properties[2]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static guint 
grl_dleyna_media_container2_skeleton_get_container_update_id (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_uint (&(skeleton->priv->properties[3]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static guint 
grl_dleyna_media_container2_skeleton_get_total_deleted_child_count (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_uint (&(skeleton->priv->properties[4]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static GVariant *
grl_dleyna_media_container2_skeleton_get_resources (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  GVariant *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_variant (&(skeleton->priv->properties[5]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static const gchar *const *
grl_dleyna_media_container2_skeleton_get_urls (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  const gchar *const *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_boxed (&(skeleton->priv->properties[6]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static const gchar *
grl_dleyna_media_container2_skeleton_get_mimetype (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  const gchar *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_string (&(skeleton->priv->properties[7]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static const gchar *
grl_dleyna_media_container2_skeleton_get_dlnaprofile (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  const gchar *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_string (&(skeleton->priv->properties[8]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static GVariant *
grl_dleyna_media_container2_skeleton_get_dlnaconversion (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  GVariant *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_variant (&(skeleton->priv->properties[9]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static GVariant *
grl_dleyna_media_container2_skeleton_get_dlnaoperation (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  GVariant *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_variant (&(skeleton->priv->properties[10]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static GVariant *
grl_dleyna_media_container2_skeleton_get_dlnaflags (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  GVariant *value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_variant (&(skeleton->priv->properties[11]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static gint64 
grl_dleyna_media_container2_skeleton_get_size (GrlDleynaMediaContainer2 *object)
{
  GrlDleynaMediaContainer2Skeleton *skeleton = GRL_DLEYNA_MEDIA_CONTAINER2_SKELETON (object);
  gint64 value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_marshal_value_peek_int64 (&(skeleton->priv->properties[12]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
grl_dleyna_media_container2_skeleton_class_init (GrlDleynaMediaContainer2SkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = grl_dleyna_media_container2_skeleton_finalize;
  gobject_class->get_property = grl_dleyna_media_container2_skeleton_get_property;
  gobject_class->set_property = grl_dleyna_media_container2_skeleton_set_property;
  gobject_class->notify       = grl_dleyna_media_container2_skeleton_notify;


  grl_dleyna_media_container2_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = grl_dleyna_media_container2_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = grl_dleyna_media_container2_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = grl_dleyna_media_container2_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = grl_dleyna_media_container2_skeleton_dbus_interface_get_vtable;

#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
  g_type_class_add_private (klass, sizeof (GrlDleynaMediaContainer2SkeletonPrivate));
#endif
}

static void
grl_dleyna_media_container2_skeleton_iface_init (GrlDleynaMediaContainer2Iface *iface)
{
  iface->get_child_count = grl_dleyna_media_container2_skeleton_get_child_count;
  iface->get_searchable = grl_dleyna_media_container2_skeleton_get_searchable;
  iface->get_create_classes = grl_dleyna_media_container2_skeleton_get_create_classes;
  iface->get_container_update_id = grl_dleyna_media_container2_skeleton_get_container_update_id;
  iface->get_total_deleted_child_count = grl_dleyna_media_container2_skeleton_get_total_deleted_child_count;
  iface->get_resources = grl_dleyna_media_container2_skeleton_get_resources;
  iface->get_urls = grl_dleyna_media_container2_skeleton_get_urls;
  iface->get_mimetype = grl_dleyna_media_container2_skeleton_get_mimetype;
  iface->get_dlnaprofile = grl_dleyna_media_container2_skeleton_get_dlnaprofile;
  iface->get_dlnaconversion = grl_dleyna_media_container2_skeleton_get_dlnaconversion;
  iface->get_dlnaoperation = grl_dleyna_media_container2_skeleton_get_dlnaoperation;
  iface->get_dlnaflags = grl_dleyna_media_container2_skeleton_get_dlnaflags;
  iface->get_size = grl_dleyna_media_container2_skeleton_get_size;
}

/**
 * grl_dleyna_media_container2_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-gnome-UPnP-MediaContainer2.top_of_page">org.gnome.UPnP.MediaContainer2</link>.
 *
 * Returns: (transfer full) (type GrlDleynaMediaContainer2Skeleton): The skeleton object.
 */
GrlDleynaMediaContainer2 *
grl_dleyna_media_container2_skeleton_new (void)
{
  return GRL_DLEYNA_MEDIA_CONTAINER2 (g_object_new (GRL_DLEYNA_TYPE_MEDIA_CONTAINER2_SKELETON, NULL));
}

