/*
 * 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 "doc-dbus-generated.h"

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

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;
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.Flatpak.Authenticator
 * ------------------------------------------------------------------------
 */

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

/* ---- Introspection data for org.freedesktop.Flatpak.Authenticator ---- */

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

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

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

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_refs =
{
  {
    -1,
    (gchar *) "refs",
    (gchar *) "a(ssia{sv})",
    NULL
  },
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_handle_token.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_authenticator_options.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_remote.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_remote_uri.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_refs.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_options.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_parent_window.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_OUT_ARG_handle.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens =
{
  {
    -1,
    (gchar *) "RequestRefTokens",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens_OUT_ARG_pointers,
    NULL
  },
  "handle-request-ref-tokens",
  FALSE
};

static const GDBusMethodInfo * const _doc_org_freedesktop_flatpak_authenticator_method_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_method_info_request_ref_tokens.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _doc_org_freedesktop_flatpak_authenticator_property_info_version =
{
  {
    -1,
    (gchar *) "version",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "version",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _doc_org_freedesktop_flatpak_authenticator_property_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_property_info_version.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_flatpak_authenticator_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.Flatpak.Authenticator",
    (GDBusMethodInfo **) &_doc_org_freedesktop_flatpak_authenticator_method_info_pointers,
    NULL,
    (GDBusPropertyInfo **) &_doc_org_freedesktop_flatpak_authenticator_property_info_pointers,
    NULL
  },
  "org-freedesktop-flatpak-authenticator",
};


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

/**
 * doc_org_freedesktop_flatpak_authenticator_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 #docOrgFreedesktopFlatpakAuthenticator interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_flatpak_authenticator_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "version");
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopFlatpakAuthenticator:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-Authenticator.top_of_page">org.freedesktop.Flatpak.Authenticator</link>.
 */

/**
 * docOrgFreedesktopFlatpakAuthenticatorIface:
 * @parent_iface: The parent interface.
 * @handle_request_ref_tokens: Handler for the #docOrgFreedesktopFlatpakAuthenticator::handle-request-ref-tokens signal.
 * @get_version: Getter for the #docOrgFreedesktopFlatpakAuthenticator:version property.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-Authenticator.top_of_page">org.freedesktop.Flatpak.Authenticator</link>.
 */

typedef docOrgFreedesktopFlatpakAuthenticatorIface docOrgFreedesktopFlatpakAuthenticatorInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopFlatpakAuthenticator, doc_org_freedesktop_flatpak_authenticator, G_TYPE_OBJECT)

static void
doc_org_freedesktop_flatpak_authenticator_default_init (docOrgFreedesktopFlatpakAuthenticatorIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopFlatpakAuthenticator::handle-request-ref-tokens:
   * @object: A #docOrgFreedesktopFlatpakAuthenticator.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_handle_token: Argument passed by remote caller.
   * @arg_authenticator_options: Argument passed by remote caller.
   * @arg_remote: Argument passed by remote caller.
   * @arg_remote_uri: Argument passed by remote caller.
   * @arg_refs: Argument passed by remote caller.
   * @arg_options: Argument passed by remote caller.
   * @arg_parent_window: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-Authenticator.RequestRefTokens">RequestRefTokens()</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 doc_org_freedesktop_flatpak_authenticator_complete_request_ref_tokens() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-request-ref-tokens",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakAuthenticatorIface, handle_request_ref_tokens),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    8,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_VARIANT, G_TYPE_STRING);

  /* GObject properties for D-Bus properties: */
  /**
   * docOrgFreedesktopFlatpakAuthenticator:version:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-Flatpak-Authenticator.version">"version"</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 ("version", "version", "version", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * doc_org_freedesktop_flatpak_authenticator_get_version: (skip)
 * @object: A #docOrgFreedesktopFlatpakAuthenticator.
 *
 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-Flatpak-Authenticator.version">"version"</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 
doc_org_freedesktop_flatpak_authenticator_get_version (docOrgFreedesktopFlatpakAuthenticator *object)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_GET_IFACE (object)->get_version (object);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_set_version: (skip)
 * @object: A #docOrgFreedesktopFlatpakAuthenticator.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-freedesktop-Flatpak-Authenticator.version">"version"</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
doc_org_freedesktop_flatpak_authenticator_set_version (docOrgFreedesktopFlatpakAuthenticator *object, guint value)
{
  g_object_set (G_OBJECT (object), "version", value, NULL);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorProxy.
 * @arg_handle_token: Argument to pass with the method invocation.
 * @arg_authenticator_options: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_remote_uri: Argument to pass with the method invocation.
 * @arg_refs: Argument to pass with the method invocation.
 * @arg_options: Argument to pass with the method invocation.
 * @arg_parent_window: 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-freedesktop-Flatpak-Authenticator.RequestRefTokens">RequestRefTokens()</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 doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens (
    docOrgFreedesktopFlatpakAuthenticator *proxy,
    const gchar *arg_handle_token,
    GVariant *arg_authenticator_options,
    const gchar *arg_remote,
    const gchar *arg_remote_uri,
    GVariant *arg_refs,
    GVariant *arg_options,
    const gchar *arg_parent_window,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "RequestRefTokens",
    g_variant_new ("(s@a{sv}ss@a(ssia{sv})@a{sv}s)",
                   arg_handle_token,
                   arg_authenticator_options,
                   arg_remote,
                   arg_remote_uri,
                   arg_refs,
                   arg_options,
                   arg_parent_window),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens_finish:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorProxy.
 * @out_handle: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens_finish (
    docOrgFreedesktopFlatpakAuthenticator *proxy,
    gchar **out_handle,
    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_handle);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens_sync:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorProxy.
 * @arg_handle_token: Argument to pass with the method invocation.
 * @arg_authenticator_options: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_remote_uri: Argument to pass with the method invocation.
 * @arg_refs: Argument to pass with the method invocation.
 * @arg_options: Argument to pass with the method invocation.
 * @arg_parent_window: Argument to pass with the method invocation.
 * @out_handle: (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-freedesktop-Flatpak-Authenticator.RequestRefTokens">RequestRefTokens()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_authenticator_call_request_ref_tokens_sync (
    docOrgFreedesktopFlatpakAuthenticator *proxy,
    const gchar *arg_handle_token,
    GVariant *arg_authenticator_options,
    const gchar *arg_remote,
    const gchar *arg_remote_uri,
    GVariant *arg_refs,
    GVariant *arg_options,
    const gchar *arg_parent_window,
    gchar **out_handle,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "RequestRefTokens",
    g_variant_new ("(s@a{sv}ss@a(ssia{sv})@a{sv}s)",
                   arg_handle_token,
                   arg_authenticator_options,
                   arg_remote,
                   arg_remote_uri,
                   arg_refs,
                   arg_options,
                   arg_parent_window),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_handle);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_complete_request_ref_tokens:
 * @object: A #docOrgFreedesktopFlatpakAuthenticator.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @handle: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-Authenticator.RequestRefTokens">RequestRefTokens()</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
doc_org_freedesktop_flatpak_authenticator_complete_request_ref_tokens (
    docOrgFreedesktopFlatpakAuthenticator *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *handle)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(o)",
                   handle));
}

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

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

/**
 * docOrgFreedesktopFlatpakAuthenticatorProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakAuthenticatorProxy.
 */

struct _docOrgFreedesktopFlatpakAuthenticatorProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_flatpak_authenticator_proxy_iface_init (docOrgFreedesktopFlatpakAuthenticatorIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakAuthenticatorProxy, doc_org_freedesktop_flatpak_authenticator_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakAuthenticatorProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR, doc_org_freedesktop_flatpak_authenticator_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakAuthenticatorProxy, doc_org_freedesktop_flatpak_authenticator_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR, doc_org_freedesktop_flatpak_authenticator_proxy_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_authenticator_proxy_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakAuthenticatorProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_flatpak_authenticator_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_flatpak_authenticator_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_authenticator_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
doc_org_freedesktop_flatpak_authenticator_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.freedesktop.Flatpak.Authenticator: %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
doc_org_freedesktop_flatpak_authenticator_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_authenticator_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.freedesktop.Flatpak.Authenticator", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) doc_org_freedesktop_flatpak_authenticator_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
doc_org_freedesktop_flatpak_authenticator_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 *) &_doc_org_freedesktop_flatpak_authenticator_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR);
  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
doc_org_freedesktop_flatpak_authenticator_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopFlatpakAuthenticatorProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_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 *) &_doc_org_freedesktop_flatpak_authenticator_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 *) &_doc_org_freedesktop_flatpak_authenticator_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 
doc_org_freedesktop_flatpak_authenticator_proxy_get_version (docOrgFreedesktopFlatpakAuthenticator *object)
{
  docOrgFreedesktopFlatpakAuthenticatorProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "version");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
doc_org_freedesktop_flatpak_authenticator_proxy_init (docOrgFreedesktopFlatpakAuthenticatorProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_flatpak_authenticator_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_PROXY, docOrgFreedesktopFlatpakAuthenticatorProxyPrivate);
#endif

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

static void
doc_org_freedesktop_flatpak_authenticator_proxy_class_init (docOrgFreedesktopFlatpakAuthenticatorProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_flatpak_authenticator_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_authenticator_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_authenticator_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_flatpak_authenticator_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_flatpak_authenticator_proxy_g_properties_changed;

  doc_org_freedesktop_flatpak_authenticator_override_properties (gobject_class, 1);

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

static void
doc_org_freedesktop_flatpak_authenticator_proxy_iface_init (docOrgFreedesktopFlatpakAuthenticatorIface *iface)
{
  iface->get_version = doc_org_freedesktop_flatpak_authenticator_proxy_get_version;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_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-freedesktop-Flatpak-Authenticator.top_of_page">org.freedesktop.Flatpak.Authenticator</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 doc_org_freedesktop_flatpak_authenticator_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_authenticator_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_authenticator_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_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.freedesktop.Flatpak.Authenticator", NULL);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_authenticator_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_authenticator_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakAuthenticator *
doc_org_freedesktop_flatpak_authenticator_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 DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_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-freedesktop-Flatpak-Authenticator.top_of_page">org.freedesktop.Flatpak.Authenticator</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_authenticator_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakAuthenticator *
doc_org_freedesktop_flatpak_authenticator_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.Authenticator", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_flatpak_authenticator_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 doc_org_freedesktop_flatpak_authenticator_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 doc_org_freedesktop_flatpak_authenticator_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_authenticator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_authenticator_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_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.freedesktop.Flatpak.Authenticator", NULL);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_authenticator_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_authenticator_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakAuthenticator *
doc_org_freedesktop_flatpak_authenticator_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 DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_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 doc_org_freedesktop_flatpak_authenticator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_authenticator_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakAuthenticator *
doc_org_freedesktop_flatpak_authenticator_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.Authenticator", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopFlatpakAuthenticatorSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakAuthenticatorSkeleton.
 */

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

static void
_doc_org_freedesktop_flatpak_authenticator_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)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR);
  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 *
_doc_org_freedesktop_flatpak_authenticator_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)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_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 *) &_doc_org_freedesktop_flatpak_authenticator_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
_doc_org_freedesktop_flatpak_authenticator_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)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_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 *) &_doc_org_freedesktop_flatpak_authenticator_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 _doc_org_freedesktop_flatpak_authenticator_skeleton_vtable =
{
  _doc_org_freedesktop_flatpak_authenticator_skeleton_handle_method_call,
  _doc_org_freedesktop_flatpak_authenticator_skeleton_handle_get_property,
  _doc_org_freedesktop_flatpak_authenticator_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_flatpak_authenticator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_flatpak_authenticator_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_flatpak_authenticator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_flatpak_authenticator_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_flatpak_authenticator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_flatpak_authenticator_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_flatpak_authenticator_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_flatpak_authenticator_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_flatpak_authenticator_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.freedesktop.Flatpak.Authenticator", 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 _doc_org_freedesktop_flatpak_authenticator_emit_changed (gpointer user_data);

static void
doc_org_freedesktop_flatpak_authenticator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_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)
    _doc_org_freedesktop_flatpak_authenticator_emit_changed (skeleton);
}

static void doc_org_freedesktop_flatpak_authenticator_skeleton_iface_init (docOrgFreedesktopFlatpakAuthenticatorIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakAuthenticatorSkeleton, doc_org_freedesktop_flatpak_authenticator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakAuthenticatorSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR, doc_org_freedesktop_flatpak_authenticator_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakAuthenticatorSkeleton, doc_org_freedesktop_flatpak_authenticator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR, doc_org_freedesktop_flatpak_authenticator_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_authenticator_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_SKELETON (object);
  guint n;
  for (n = 0; n < 1; 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 (doc_org_freedesktop_flatpak_authenticator_skeleton_parent_class)->finalize (object);
}

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

static gboolean
_doc_org_freedesktop_flatpak_authenticator_emit_changed (gpointer user_data)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
  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.freedesktop.Flatpak.Authenticator",
                                           &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
_doc_org_freedesktop_flatpak_authenticator_schedule_emit_changed (docOrgFreedesktopFlatpakAuthenticatorSkeleton *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
doc_org_freedesktop_flatpak_authenticator_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_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, _doc_org_freedesktop_flatpak_authenticator_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _doc_org_freedesktop_flatpak_authenticator_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
doc_org_freedesktop_flatpak_authenticator_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_authenticator_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)
        _doc_org_freedesktop_flatpak_authenticator_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
doc_org_freedesktop_flatpak_authenticator_skeleton_init (docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_flatpak_authenticator_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_SKELETON, docOrgFreedesktopFlatpakAuthenticatorSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 1);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
}

static guint 
doc_org_freedesktop_flatpak_authenticator_skeleton_get_version (docOrgFreedesktopFlatpakAuthenticator *object)
{
  docOrgFreedesktopFlatpakAuthenticatorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_value_get_uint (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
doc_org_freedesktop_flatpak_authenticator_skeleton_class_init (docOrgFreedesktopFlatpakAuthenticatorSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_flatpak_authenticator_skeleton_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_authenticator_skeleton_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_authenticator_skeleton_set_property;
  gobject_class->notify       = doc_org_freedesktop_flatpak_authenticator_skeleton_notify;


  doc_org_freedesktop_flatpak_authenticator_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_flatpak_authenticator_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_flatpak_authenticator_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_flatpak_authenticator_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_flatpak_authenticator_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_flatpak_authenticator_skeleton_iface_init (docOrgFreedesktopFlatpakAuthenticatorIface *iface)
{
  iface->get_version = doc_org_freedesktop_flatpak_authenticator_skeleton_get_version;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-Authenticator.top_of_page">org.freedesktop.Flatpak.Authenticator</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorSkeleton): The skeleton object.
 */
docOrgFreedesktopFlatpakAuthenticator *
doc_org_freedesktop_flatpak_authenticator_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.Flatpak.AuthenticatorRequest
 * ------------------------------------------------------------------------
 */

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

/* ---- Introspection data for org.freedesktop.Flatpak.AuthenticatorRequest ---- */

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_authenticator_request_method_info_close =
{
  {
    -1,
    (gchar *) "Close",
    NULL,
    NULL,
    NULL
  },
  "handle-close",
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_authenticator_request_method_info_basic_auth_reply_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_request_method_info_basic_auth_reply_IN_ARG_user.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_method_info_basic_auth_reply_IN_ARG_password.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_method_info_basic_auth_reply_IN_ARG_options.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_authenticator_request_method_info_basic_auth_reply =
{
  {
    -1,
    (gchar *) "BasicAuthReply",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_authenticator_request_method_info_basic_auth_reply_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-basic-auth-reply",
  FALSE
};

static const GDBusMethodInfo * const _doc_org_freedesktop_flatpak_authenticator_request_method_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_request_method_info_close.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_method_info_basic_auth_reply.parent_struct,
  NULL
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_ARG_uri.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_ARG_options.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow =
{
  {
    -1,
    (gchar *) "Webflow",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_ARG_pointers,
    NULL
  },
  "webflow"
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_done_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_done_ARG_options.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_done =
{
  {
    -1,
    (gchar *) "WebflowDone",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_done_ARG_pointers,
    NULL
  },
  "webflow-done"
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_authenticator_request_signal_info_basic_auth_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_basic_auth_ARG_realm.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_basic_auth_ARG_options.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_flatpak_authenticator_request_signal_info_basic_auth =
{
  {
    -1,
    (gchar *) "BasicAuth",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_basic_auth_ARG_pointers,
    NULL
  },
  "basic-auth"
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_authenticator_request_signal_info_response_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_response_ARG_response.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_response_ARG_results.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_flatpak_authenticator_request_signal_info_response =
{
  {
    -1,
    (gchar *) "Response",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_response_ARG_pointers,
    NULL
  },
  "response"
};

static const GDBusSignalInfo * const _doc_org_freedesktop_flatpak_authenticator_request_signal_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_webflow_done.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_basic_auth.parent_struct,
  &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_response.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_flatpak_authenticator_request_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.Flatpak.AuthenticatorRequest",
    (GDBusMethodInfo **) &_doc_org_freedesktop_flatpak_authenticator_request_method_info_pointers,
    (GDBusSignalInfo **) &_doc_org_freedesktop_flatpak_authenticator_request_signal_info_pointers,
    NULL,
    NULL
  },
  "org-freedesktop-flatpak-authenticator-request",
};


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

/**
 * doc_org_freedesktop_flatpak_authenticator_request_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 #docOrgFreedesktopFlatpakAuthenticatorRequest interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_flatpak_authenticator_request_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin)
{
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopFlatpakAuthenticatorRequest:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-AuthenticatorRequest.top_of_page">org.freedesktop.Flatpak.AuthenticatorRequest</link>.
 */

/**
 * docOrgFreedesktopFlatpakAuthenticatorRequestIface:
 * @parent_iface: The parent interface.
 * @handle_basic_auth_reply: Handler for the #docOrgFreedesktopFlatpakAuthenticatorRequest::handle-basic-auth-reply signal.
 * @handle_close: Handler for the #docOrgFreedesktopFlatpakAuthenticatorRequest::handle-close signal.
 * @basic_auth: Handler for the #docOrgFreedesktopFlatpakAuthenticatorRequest::basic-auth signal.
 * @response: Handler for the #docOrgFreedesktopFlatpakAuthenticatorRequest::response signal.
 * @webflow: Handler for the #docOrgFreedesktopFlatpakAuthenticatorRequest::webflow signal.
 * @webflow_done: Handler for the #docOrgFreedesktopFlatpakAuthenticatorRequest::webflow-done signal.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-AuthenticatorRequest.top_of_page">org.freedesktop.Flatpak.AuthenticatorRequest</link>.
 */

typedef docOrgFreedesktopFlatpakAuthenticatorRequestIface docOrgFreedesktopFlatpakAuthenticatorRequestInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopFlatpakAuthenticatorRequest, doc_org_freedesktop_flatpak_authenticator_request, G_TYPE_OBJECT)

static void
doc_org_freedesktop_flatpak_authenticator_request_default_init (docOrgFreedesktopFlatpakAuthenticatorRequestIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopFlatpakAuthenticatorRequest::handle-close:
   * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
   * @invocation: A #GDBusMethodInvocation.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-AuthenticatorRequest.Close">Close()</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 doc_org_freedesktop_flatpak_authenticator_request_complete_close() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-close",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakAuthenticatorRequestIface, handle_close),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    1,
    G_TYPE_DBUS_METHOD_INVOCATION);

  /**
   * docOrgFreedesktopFlatpakAuthenticatorRequest::handle-basic-auth-reply:
   * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_user: Argument passed by remote caller.
   * @arg_password: Argument passed by remote caller.
   * @arg_options: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-AuthenticatorRequest.BasicAuthReply">BasicAuthReply()</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 doc_org_freedesktop_flatpak_authenticator_request_complete_basic_auth_reply() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-basic-auth-reply",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakAuthenticatorRequestIface, handle_basic_auth_reply),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_VARIANT);

  /* GObject signals for received D-Bus signals: */
  /**
   * docOrgFreedesktopFlatpakAuthenticatorRequest::webflow:
   * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
   * @arg_uri: Argument.
   * @arg_options: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-Flatpak-AuthenticatorRequest.Webflow">"Webflow"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("webflow",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakAuthenticatorRequestIface, webflow),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    2, G_TYPE_STRING, G_TYPE_VARIANT);

  /**
   * docOrgFreedesktopFlatpakAuthenticatorRequest::webflow-done:
   * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
   * @arg_options: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-Flatpak-AuthenticatorRequest.WebflowDone">"WebflowDone"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("webflow-done",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakAuthenticatorRequestIface, webflow_done),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    1, G_TYPE_VARIANT);

  /**
   * docOrgFreedesktopFlatpakAuthenticatorRequest::basic-auth:
   * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
   * @arg_realm: Argument.
   * @arg_options: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-Flatpak-AuthenticatorRequest.BasicAuth">"BasicAuth"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("basic-auth",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakAuthenticatorRequestIface, basic_auth),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    2, G_TYPE_STRING, G_TYPE_VARIANT);

  /**
   * docOrgFreedesktopFlatpakAuthenticatorRequest::response:
   * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
   * @arg_response: Argument.
   * @arg_results: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-Flatpak-AuthenticatorRequest.Response">"Response"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("response",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakAuthenticatorRequestIface, response),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    2, G_TYPE_UINT, G_TYPE_VARIANT);

}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_emit_webflow:
 * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
 * @arg_uri: Argument to pass with the signal.
 * @arg_options: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-Flatpak-AuthenticatorRequest.Webflow">"Webflow"</link> D-Bus signal.
 */
void
doc_org_freedesktop_flatpak_authenticator_request_emit_webflow (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object,
    const gchar *arg_uri,
    GVariant *arg_options)
{
  g_signal_emit_by_name (object, "webflow", arg_uri, arg_options);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_emit_webflow_done:
 * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
 * @arg_options: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-Flatpak-AuthenticatorRequest.WebflowDone">"WebflowDone"</link> D-Bus signal.
 */
void
doc_org_freedesktop_flatpak_authenticator_request_emit_webflow_done (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object,
    GVariant *arg_options)
{
  g_signal_emit_by_name (object, "webflow-done", arg_options);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_emit_basic_auth:
 * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
 * @arg_realm: Argument to pass with the signal.
 * @arg_options: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-Flatpak-AuthenticatorRequest.BasicAuth">"BasicAuth"</link> D-Bus signal.
 */
void
doc_org_freedesktop_flatpak_authenticator_request_emit_basic_auth (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object,
    const gchar *arg_realm,
    GVariant *arg_options)
{
  g_signal_emit_by_name (object, "basic-auth", arg_realm, arg_options);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_emit_response:
 * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
 * @arg_response: Argument to pass with the signal.
 * @arg_results: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-Flatpak-AuthenticatorRequest.Response">"Response"</link> D-Bus signal.
 */
void
doc_org_freedesktop_flatpak_authenticator_request_emit_response (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object,
    guint arg_response,
    GVariant *arg_results)
{
  g_signal_emit_by_name (object, "response", arg_response, arg_results);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_call_close:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorRequestProxy.
 * @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-freedesktop-Flatpak-AuthenticatorRequest.Close">Close()</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 doc_org_freedesktop_flatpak_authenticator_request_call_close_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_authenticator_request_call_close_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_authenticator_request_call_close (
    docOrgFreedesktopFlatpakAuthenticatorRequest *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Close",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_call_close_finish:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorRequestProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_authenticator_request_call_close().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_authenticator_request_call_close().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_authenticator_request_call_close_finish (
    docOrgFreedesktopFlatpakAuthenticatorRequest *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;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_call_close_sync:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorRequestProxy.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Flatpak-AuthenticatorRequest.Close">Close()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_authenticator_request_call_close() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_authenticator_request_call_close_sync (
    docOrgFreedesktopFlatpakAuthenticatorRequest *proxy,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Close",
    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;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorRequestProxy.
 * @arg_user: Argument to pass with the method invocation.
 * @arg_password: Argument to pass with the method invocation.
 * @arg_options: 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-freedesktop-Flatpak-AuthenticatorRequest.BasicAuthReply">BasicAuthReply()</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 doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply (
    docOrgFreedesktopFlatpakAuthenticatorRequest *proxy,
    const gchar *arg_user,
    const gchar *arg_password,
    GVariant *arg_options,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "BasicAuthReply",
    g_variant_new ("(ss@a{sv})",
                   arg_user,
                   arg_password,
                   arg_options),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply_finish:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorRequestProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply_finish (
    docOrgFreedesktopFlatpakAuthenticatorRequest *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;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply_sync:
 * @proxy: A #docOrgFreedesktopFlatpakAuthenticatorRequestProxy.
 * @arg_user: Argument to pass with the method invocation.
 * @arg_password: Argument to pass with the method invocation.
 * @arg_options: 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-freedesktop-Flatpak-AuthenticatorRequest.BasicAuthReply">BasicAuthReply()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_authenticator_request_call_basic_auth_reply_sync (
    docOrgFreedesktopFlatpakAuthenticatorRequest *proxy,
    const gchar *arg_user,
    const gchar *arg_password,
    GVariant *arg_options,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "BasicAuthReply",
    g_variant_new ("(ss@a{sv})",
                   arg_user,
                   arg_password,
                   arg_options),
    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;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_complete_close:
 * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-AuthenticatorRequest.Close">Close()</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
doc_org_freedesktop_flatpak_authenticator_request_complete_close (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_complete_basic_auth_reply:
 * @object: A #docOrgFreedesktopFlatpakAuthenticatorRequest.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-AuthenticatorRequest.BasicAuthReply">BasicAuthReply()</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
doc_org_freedesktop_flatpak_authenticator_request_complete_basic_auth_reply (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

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

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

/**
 * docOrgFreedesktopFlatpakAuthenticatorRequestProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakAuthenticatorRequestProxy.
 */

struct _docOrgFreedesktopFlatpakAuthenticatorRequestProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_flatpak_authenticator_request_proxy_iface_init (docOrgFreedesktopFlatpakAuthenticatorRequestIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakAuthenticatorRequestProxy, doc_org_freedesktop_flatpak_authenticator_request_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakAuthenticatorRequestProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST, doc_org_freedesktop_flatpak_authenticator_request_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakAuthenticatorRequestProxy, doc_org_freedesktop_flatpak_authenticator_request_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST, doc_org_freedesktop_flatpak_authenticator_request_proxy_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_authenticator_request_proxy_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_flatpak_authenticator_request_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_flatpak_authenticator_request_proxy_get_property (GObject      *object G_GNUC_UNUSED,
  guint         prop_id G_GNUC_UNUSED,
  GValue       *value G_GNUC_UNUSED,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
}

static void
doc_org_freedesktop_flatpak_authenticator_request_proxy_set_property (GObject      *object G_GNUC_UNUSED,
  guint         prop_id G_GNUC_UNUSED,
  const GValue *value G_GNUC_UNUSED,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
}

static void
doc_org_freedesktop_flatpak_authenticator_request_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 *) &_doc_org_freedesktop_flatpak_authenticator_request_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST);
  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
doc_org_freedesktop_flatpak_authenticator_request_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_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 *) &_doc_org_freedesktop_flatpak_authenticator_request_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 *) &_doc_org_freedesktop_flatpak_authenticator_request_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 void
doc_org_freedesktop_flatpak_authenticator_request_proxy_init (docOrgFreedesktopFlatpakAuthenticatorRequestProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_flatpak_authenticator_request_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_PROXY, docOrgFreedesktopFlatpakAuthenticatorRequestProxyPrivate);
#endif

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

static void
doc_org_freedesktop_flatpak_authenticator_request_proxy_class_init (docOrgFreedesktopFlatpakAuthenticatorRequestProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_flatpak_authenticator_request_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_authenticator_request_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_authenticator_request_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_flatpak_authenticator_request_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_flatpak_authenticator_request_proxy_g_properties_changed;

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

static void
doc_org_freedesktop_flatpak_authenticator_request_proxy_iface_init (docOrgFreedesktopFlatpakAuthenticatorRequestIface *iface G_GNUC_UNUSED)
{
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_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-freedesktop-Flatpak-AuthenticatorRequest.top_of_page">org.freedesktop.Flatpak.AuthenticatorRequest</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 doc_org_freedesktop_flatpak_authenticator_request_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_authenticator_request_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_authenticator_request_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_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.freedesktop.Flatpak.AuthenticatorRequest", NULL);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_authenticator_request_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_authenticator_request_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorRequestProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakAuthenticatorRequest *
doc_org_freedesktop_flatpak_authenticator_request_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 DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_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-freedesktop-Flatpak-AuthenticatorRequest.top_of_page">org.freedesktop.Flatpak.AuthenticatorRequest</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_authenticator_request_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorRequestProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakAuthenticatorRequest *
doc_org_freedesktop_flatpak_authenticator_request_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.AuthenticatorRequest", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_flatpak_authenticator_request_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 doc_org_freedesktop_flatpak_authenticator_request_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 doc_org_freedesktop_flatpak_authenticator_request_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_authenticator_request_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_authenticator_request_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_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.freedesktop.Flatpak.AuthenticatorRequest", NULL);
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_authenticator_request_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_authenticator_request_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorRequestProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakAuthenticatorRequest *
doc_org_freedesktop_flatpak_authenticator_request_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 DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_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 doc_org_freedesktop_flatpak_authenticator_request_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_authenticator_request_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorRequestProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakAuthenticatorRequest *
doc_org_freedesktop_flatpak_authenticator_request_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.AuthenticatorRequest", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopFlatpakAuthenticatorRequestSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton.
 */

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

static void
_doc_org_freedesktop_flatpak_authenticator_request_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)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST);
  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 *
_doc_org_freedesktop_flatpak_authenticator_request_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)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_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 *) &_doc_org_freedesktop_flatpak_authenticator_request_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
_doc_org_freedesktop_flatpak_authenticator_request_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)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_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 *) &_doc_org_freedesktop_flatpak_authenticator_request_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 _doc_org_freedesktop_flatpak_authenticator_request_skeleton_vtable =
{
  _doc_org_freedesktop_flatpak_authenticator_request_skeleton_handle_method_call,
  _doc_org_freedesktop_flatpak_authenticator_request_skeleton_handle_get_property,
  _doc_org_freedesktop_flatpak_authenticator_request_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_flatpak_authenticator_request_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_flatpak_authenticator_request_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_flatpak_authenticator_request_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_flatpak_authenticator_request_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_flatpak_authenticator_request_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_flatpak_authenticator_request_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_flatpak_authenticator_request_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_flatpak_authenticator_request_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_flatpak_authenticator_request_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.freedesktop.Flatpak.AuthenticatorRequest", 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 void
doc_org_freedesktop_flatpak_authenticator_request_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED)
{
}

static void
_doc_org_freedesktop_flatpak_authenticator_request_on_signal_webflow (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object,
    const gchar *arg_uri,
    GVariant *arg_options)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(s@a{sv})",
                   arg_uri,
                   arg_options));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.Flatpak.AuthenticatorRequest", "Webflow",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void
_doc_org_freedesktop_flatpak_authenticator_request_on_signal_webflow_done (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object,
    GVariant *arg_options)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})",
                   arg_options));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.Flatpak.AuthenticatorRequest", "WebflowDone",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void
_doc_org_freedesktop_flatpak_authenticator_request_on_signal_basic_auth (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object,
    const gchar *arg_realm,
    GVariant *arg_options)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(s@a{sv})",
                   arg_realm,
                   arg_options));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.Flatpak.AuthenticatorRequest", "BasicAuth",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void
_doc_org_freedesktop_flatpak_authenticator_request_on_signal_response (
    docOrgFreedesktopFlatpakAuthenticatorRequest *object,
    guint arg_response,
    GVariant *arg_results)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(u@a{sv})",
                   arg_response,
                   arg_results));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.Flatpak.AuthenticatorRequest", "Response",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void doc_org_freedesktop_flatpak_authenticator_request_skeleton_iface_init (docOrgFreedesktopFlatpakAuthenticatorRequestIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton, doc_org_freedesktop_flatpak_authenticator_request_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST, doc_org_freedesktop_flatpak_authenticator_request_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton, doc_org_freedesktop_flatpak_authenticator_request_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST, doc_org_freedesktop_flatpak_authenticator_request_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_authenticator_request_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_SKELETON (object);
  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 (doc_org_freedesktop_flatpak_authenticator_request_skeleton_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_flatpak_authenticator_request_skeleton_init (docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_flatpak_authenticator_request_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_SKELETON, docOrgFreedesktopFlatpakAuthenticatorRequestSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
}

static void
doc_org_freedesktop_flatpak_authenticator_request_skeleton_class_init (docOrgFreedesktopFlatpakAuthenticatorRequestSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_flatpak_authenticator_request_skeleton_finalize;

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_flatpak_authenticator_request_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_flatpak_authenticator_request_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_flatpak_authenticator_request_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_flatpak_authenticator_request_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_flatpak_authenticator_request_skeleton_iface_init (docOrgFreedesktopFlatpakAuthenticatorRequestIface *iface)
{
  iface->webflow = _doc_org_freedesktop_flatpak_authenticator_request_on_signal_webflow;
  iface->webflow_done = _doc_org_freedesktop_flatpak_authenticator_request_on_signal_webflow_done;
  iface->basic_auth = _doc_org_freedesktop_flatpak_authenticator_request_on_signal_basic_auth;
  iface->response = _doc_org_freedesktop_flatpak_authenticator_request_on_signal_response;
}

/**
 * doc_org_freedesktop_flatpak_authenticator_request_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-AuthenticatorRequest.top_of_page">org.freedesktop.Flatpak.AuthenticatorRequest</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakAuthenticatorRequestSkeleton): The skeleton object.
 */
docOrgFreedesktopFlatpakAuthenticatorRequest *
doc_org_freedesktop_flatpak_authenticator_request_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_AUTHENTICATOR_REQUEST_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.Flatpak.SessionHelper
 * ------------------------------------------------------------------------
 */

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

/* ---- Introspection data for org.freedesktop.Flatpak.SessionHelper ---- */

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_session_helper_method_info_request_session_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_session_helper_method_info_request_session_OUT_ARG_data.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_session_helper_method_info_request_session =
{
  {
    -1,
    (gchar *) "RequestSession",
    NULL,
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_session_helper_method_info_request_session_OUT_ARG_pointers,
    NULL
  },
  "handle-request-session",
  FALSE
};

static const GDBusMethodInfo * const _doc_org_freedesktop_flatpak_session_helper_method_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_session_helper_method_info_request_session.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _doc_org_freedesktop_flatpak_session_helper_property_info_version =
{
  {
    -1,
    (gchar *) "version",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "version",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _doc_org_freedesktop_flatpak_session_helper_property_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_session_helper_property_info_version.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_flatpak_session_helper_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.Flatpak.SessionHelper",
    (GDBusMethodInfo **) &_doc_org_freedesktop_flatpak_session_helper_method_info_pointers,
    NULL,
    (GDBusPropertyInfo **) &_doc_org_freedesktop_flatpak_session_helper_property_info_pointers,
    NULL
  },
  "org-freedesktop-flatpak-session-helper",
};


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

/**
 * doc_org_freedesktop_flatpak_session_helper_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 #docOrgFreedesktopFlatpakSessionHelper interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_flatpak_session_helper_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "version");
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopFlatpakSessionHelper:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-SessionHelper.top_of_page">org.freedesktop.Flatpak.SessionHelper</link>.
 */

/**
 * docOrgFreedesktopFlatpakSessionHelperIface:
 * @parent_iface: The parent interface.
 * @handle_request_session: Handler for the #docOrgFreedesktopFlatpakSessionHelper::handle-request-session signal.
 * @get_version: Getter for the #docOrgFreedesktopFlatpakSessionHelper:version property.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-SessionHelper.top_of_page">org.freedesktop.Flatpak.SessionHelper</link>.
 */

typedef docOrgFreedesktopFlatpakSessionHelperIface docOrgFreedesktopFlatpakSessionHelperInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopFlatpakSessionHelper, doc_org_freedesktop_flatpak_session_helper, G_TYPE_OBJECT)

static void
doc_org_freedesktop_flatpak_session_helper_default_init (docOrgFreedesktopFlatpakSessionHelperIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopFlatpakSessionHelper::handle-request-session:
   * @object: A #docOrgFreedesktopFlatpakSessionHelper.
   * @invocation: A #GDBusMethodInvocation.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SessionHelper.RequestSession">RequestSession()</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 doc_org_freedesktop_flatpak_session_helper_complete_request_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-request-session",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSessionHelperIface, handle_request_session),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    1,
    G_TYPE_DBUS_METHOD_INVOCATION);

  /* GObject properties for D-Bus properties: */
  /**
   * docOrgFreedesktopFlatpakSessionHelper:version:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-Flatpak-SessionHelper.version">"version"</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 ("version", "version", "version", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * doc_org_freedesktop_flatpak_session_helper_get_version: (skip)
 * @object: A #docOrgFreedesktopFlatpakSessionHelper.
 *
 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-Flatpak-SessionHelper.version">"version"</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 
doc_org_freedesktop_flatpak_session_helper_get_version (docOrgFreedesktopFlatpakSessionHelper *object)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_GET_IFACE (object)->get_version (object);
}

/**
 * doc_org_freedesktop_flatpak_session_helper_set_version: (skip)
 * @object: A #docOrgFreedesktopFlatpakSessionHelper.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-freedesktop-Flatpak-SessionHelper.version">"version"</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
doc_org_freedesktop_flatpak_session_helper_set_version (docOrgFreedesktopFlatpakSessionHelper *object, guint value)
{
  g_object_set (G_OBJECT (object), "version", value, NULL);
}

/**
 * doc_org_freedesktop_flatpak_session_helper_call_request_session:
 * @proxy: A #docOrgFreedesktopFlatpakSessionHelperProxy.
 * @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-freedesktop-Flatpak-SessionHelper.RequestSession">RequestSession()</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 doc_org_freedesktop_flatpak_session_helper_call_request_session_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_session_helper_call_request_session_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_session_helper_call_request_session (
    docOrgFreedesktopFlatpakSessionHelper *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "RequestSession",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_session_helper_call_request_session_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSessionHelperProxy.
 * @out_data: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_session_helper_call_request_session().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_session_helper_call_request_session().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_session_helper_call_request_session_finish (
    docOrgFreedesktopFlatpakSessionHelper *proxy,
    GVariant **out_data,
    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_data);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_session_helper_call_request_session_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSessionHelperProxy.
 * @out_data: (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-freedesktop-Flatpak-SessionHelper.RequestSession">RequestSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_session_helper_call_request_session() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_session_helper_call_request_session_sync (
    docOrgFreedesktopFlatpakSessionHelper *proxy,
    GVariant **out_data,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "RequestSession",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@a{sv})",
                 out_data);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_session_helper_complete_request_session:
 * @object: A #docOrgFreedesktopFlatpakSessionHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @data: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SessionHelper.RequestSession">RequestSession()</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
doc_org_freedesktop_flatpak_session_helper_complete_request_session (
    docOrgFreedesktopFlatpakSessionHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *data)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@a{sv})",
                   data));
}

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

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

/**
 * docOrgFreedesktopFlatpakSessionHelperProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakSessionHelperProxy.
 */

struct _docOrgFreedesktopFlatpakSessionHelperProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_flatpak_session_helper_proxy_iface_init (docOrgFreedesktopFlatpakSessionHelperIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakSessionHelperProxy, doc_org_freedesktop_flatpak_session_helper_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakSessionHelperProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER, doc_org_freedesktop_flatpak_session_helper_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakSessionHelperProxy, doc_org_freedesktop_flatpak_session_helper_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER, doc_org_freedesktop_flatpak_session_helper_proxy_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_session_helper_proxy_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakSessionHelperProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_flatpak_session_helper_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_flatpak_session_helper_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_session_helper_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
doc_org_freedesktop_flatpak_session_helper_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.freedesktop.Flatpak.SessionHelper: %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
doc_org_freedesktop_flatpak_session_helper_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_session_helper_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.freedesktop.Flatpak.SessionHelper", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) doc_org_freedesktop_flatpak_session_helper_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
doc_org_freedesktop_flatpak_session_helper_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 *) &_doc_org_freedesktop_flatpak_session_helper_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER);
  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
doc_org_freedesktop_flatpak_session_helper_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopFlatpakSessionHelperProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_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 *) &_doc_org_freedesktop_flatpak_session_helper_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 *) &_doc_org_freedesktop_flatpak_session_helper_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 
doc_org_freedesktop_flatpak_session_helper_proxy_get_version (docOrgFreedesktopFlatpakSessionHelper *object)
{
  docOrgFreedesktopFlatpakSessionHelperProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "version");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
doc_org_freedesktop_flatpak_session_helper_proxy_init (docOrgFreedesktopFlatpakSessionHelperProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_flatpak_session_helper_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_PROXY, docOrgFreedesktopFlatpakSessionHelperProxyPrivate);
#endif

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

static void
doc_org_freedesktop_flatpak_session_helper_proxy_class_init (docOrgFreedesktopFlatpakSessionHelperProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_flatpak_session_helper_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_session_helper_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_session_helper_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_flatpak_session_helper_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_flatpak_session_helper_proxy_g_properties_changed;

  doc_org_freedesktop_flatpak_session_helper_override_properties (gobject_class, 1);

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

static void
doc_org_freedesktop_flatpak_session_helper_proxy_iface_init (docOrgFreedesktopFlatpakSessionHelperIface *iface)
{
  iface->get_version = doc_org_freedesktop_flatpak_session_helper_proxy_get_version;
}

/**
 * doc_org_freedesktop_flatpak_session_helper_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-freedesktop-Flatpak-SessionHelper.top_of_page">org.freedesktop.Flatpak.SessionHelper</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 doc_org_freedesktop_flatpak_session_helper_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_session_helper_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_session_helper_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_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.freedesktop.Flatpak.SessionHelper", NULL);
}

/**
 * doc_org_freedesktop_flatpak_session_helper_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_session_helper_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_session_helper_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSessionHelperProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakSessionHelper *
doc_org_freedesktop_flatpak_session_helper_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 DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_session_helper_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-freedesktop-Flatpak-SessionHelper.top_of_page">org.freedesktop.Flatpak.SessionHelper</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_session_helper_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSessionHelperProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakSessionHelper *
doc_org_freedesktop_flatpak_session_helper_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.SessionHelper", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_flatpak_session_helper_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 doc_org_freedesktop_flatpak_session_helper_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 doc_org_freedesktop_flatpak_session_helper_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_session_helper_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_session_helper_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_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.freedesktop.Flatpak.SessionHelper", NULL);
}

/**
 * doc_org_freedesktop_flatpak_session_helper_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_session_helper_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_session_helper_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSessionHelperProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakSessionHelper *
doc_org_freedesktop_flatpak_session_helper_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 DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_session_helper_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 doc_org_freedesktop_flatpak_session_helper_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_session_helper_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSessionHelperProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakSessionHelper *
doc_org_freedesktop_flatpak_session_helper_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.SessionHelper", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopFlatpakSessionHelperSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakSessionHelperSkeleton.
 */

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

static void
_doc_org_freedesktop_flatpak_session_helper_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)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER);
  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 *
_doc_org_freedesktop_flatpak_session_helper_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)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_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 *) &_doc_org_freedesktop_flatpak_session_helper_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
_doc_org_freedesktop_flatpak_session_helper_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)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_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 *) &_doc_org_freedesktop_flatpak_session_helper_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 _doc_org_freedesktop_flatpak_session_helper_skeleton_vtable =
{
  _doc_org_freedesktop_flatpak_session_helper_skeleton_handle_method_call,
  _doc_org_freedesktop_flatpak_session_helper_skeleton_handle_get_property,
  _doc_org_freedesktop_flatpak_session_helper_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_flatpak_session_helper_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_flatpak_session_helper_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_flatpak_session_helper_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_flatpak_session_helper_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_flatpak_session_helper_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_flatpak_session_helper_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_flatpak_session_helper_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_flatpak_session_helper_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_flatpak_session_helper_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.freedesktop.Flatpak.SessionHelper", 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 _doc_org_freedesktop_flatpak_session_helper_emit_changed (gpointer user_data);

static void
doc_org_freedesktop_flatpak_session_helper_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_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)
    _doc_org_freedesktop_flatpak_session_helper_emit_changed (skeleton);
}

static void doc_org_freedesktop_flatpak_session_helper_skeleton_iface_init (docOrgFreedesktopFlatpakSessionHelperIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakSessionHelperSkeleton, doc_org_freedesktop_flatpak_session_helper_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakSessionHelperSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER, doc_org_freedesktop_flatpak_session_helper_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakSessionHelperSkeleton, doc_org_freedesktop_flatpak_session_helper_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER, doc_org_freedesktop_flatpak_session_helper_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_session_helper_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_SKELETON (object);
  guint n;
  for (n = 0; n < 1; 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 (doc_org_freedesktop_flatpak_session_helper_skeleton_parent_class)->finalize (object);
}

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

static gboolean
_doc_org_freedesktop_flatpak_session_helper_emit_changed (gpointer user_data)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
  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.freedesktop.Flatpak.SessionHelper",
                                           &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
_doc_org_freedesktop_flatpak_session_helper_schedule_emit_changed (docOrgFreedesktopFlatpakSessionHelperSkeleton *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
doc_org_freedesktop_flatpak_session_helper_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_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, _doc_org_freedesktop_flatpak_session_helper_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _doc_org_freedesktop_flatpak_session_helper_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
doc_org_freedesktop_flatpak_session_helper_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_session_helper_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)
        _doc_org_freedesktop_flatpak_session_helper_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
doc_org_freedesktop_flatpak_session_helper_skeleton_init (docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_flatpak_session_helper_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_SKELETON, docOrgFreedesktopFlatpakSessionHelperSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 1);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
}

static guint 
doc_org_freedesktop_flatpak_session_helper_skeleton_get_version (docOrgFreedesktopFlatpakSessionHelper *object)
{
  docOrgFreedesktopFlatpakSessionHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_value_get_uint (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
doc_org_freedesktop_flatpak_session_helper_skeleton_class_init (docOrgFreedesktopFlatpakSessionHelperSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_flatpak_session_helper_skeleton_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_session_helper_skeleton_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_session_helper_skeleton_set_property;
  gobject_class->notify       = doc_org_freedesktop_flatpak_session_helper_skeleton_notify;


  doc_org_freedesktop_flatpak_session_helper_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_flatpak_session_helper_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_flatpak_session_helper_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_flatpak_session_helper_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_flatpak_session_helper_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_flatpak_session_helper_skeleton_iface_init (docOrgFreedesktopFlatpakSessionHelperIface *iface)
{
  iface->get_version = doc_org_freedesktop_flatpak_session_helper_skeleton_get_version;
}

/**
 * doc_org_freedesktop_flatpak_session_helper_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-SessionHelper.top_of_page">org.freedesktop.Flatpak.SessionHelper</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSessionHelperSkeleton): The skeleton object.
 */
docOrgFreedesktopFlatpakSessionHelper *
doc_org_freedesktop_flatpak_session_helper_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SESSION_HELPER_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.Flatpak.Development
 * ------------------------------------------------------------------------
 */

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

/* ---- Introspection data for org.freedesktop.Flatpak.Development ---- */

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_cwd_path =
{
  {
    -1,
    (gchar *) "cwd_path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_argv =
{
  {
    -1,
    (gchar *) "argv",
    (gchar *) "aay",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_fds =
{
  {
    -1,
    (gchar *) "fds",
    (gchar *) "a{uh}",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_envs =
{
  {
    -1,
    (gchar *) "envs",
    (gchar *) "a{ss}",
    NULL
  },
  FALSE
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_cwd_path.parent_struct,
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_argv.parent_struct,
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_fds.parent_struct,
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_envs.parent_struct,
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_flags.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_development_method_info_host_command_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_OUT_ARG_pid.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_development_method_info_host_command =
{
  {
    -1,
    (gchar *) "HostCommand",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_development_method_info_host_command_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_development_method_info_host_command_OUT_ARG_pointers,
    NULL
  },
  "handle-host-command",
  TRUE
};

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

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_development_method_info_host_command_signal_IN_ARG_to_process_group =
{
  {
    -1,
    (gchar *) "to_process_group",
    (gchar *) "b",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_development_method_info_host_command_signal_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_signal_IN_ARG_pid.parent_struct,
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_signal_IN_ARG_signal.parent_struct,
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_signal_IN_ARG_to_process_group.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_development_method_info_host_command_signal =
{
  {
    -1,
    (gchar *) "HostCommandSignal",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_development_method_info_host_command_signal_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-host-command-signal",
  FALSE
};

static const GDBusMethodInfo * const _doc_org_freedesktop_flatpak_development_method_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_development_method_info_host_command.parent_struct,
  &_doc_org_freedesktop_flatpak_development_method_info_host_command_signal.parent_struct,
  NULL
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_development_signal_info_host_command_exited_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_development_signal_info_host_command_exited_ARG_pid.parent_struct,
  &_doc_org_freedesktop_flatpak_development_signal_info_host_command_exited_ARG_exit_status.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_flatpak_development_signal_info_host_command_exited =
{
  {
    -1,
    (gchar *) "HostCommandExited",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_development_signal_info_host_command_exited_ARG_pointers,
    NULL
  },
  "host-command-exited"
};

static const GDBusSignalInfo * const _doc_org_freedesktop_flatpak_development_signal_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_development_signal_info_host_command_exited.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _doc_org_freedesktop_flatpak_development_property_info_version =
{
  {
    -1,
    (gchar *) "version",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "version",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _doc_org_freedesktop_flatpak_development_property_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_development_property_info_version.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_flatpak_development_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.Flatpak.Development",
    (GDBusMethodInfo **) &_doc_org_freedesktop_flatpak_development_method_info_pointers,
    (GDBusSignalInfo **) &_doc_org_freedesktop_flatpak_development_signal_info_pointers,
    (GDBusPropertyInfo **) &_doc_org_freedesktop_flatpak_development_property_info_pointers,
    NULL
  },
  "org-freedesktop-flatpak-development",
};


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

/**
 * doc_org_freedesktop_flatpak_development_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 #docOrgFreedesktopFlatpakDevelopment interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_flatpak_development_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "version");
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopFlatpakDevelopment:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-Development.top_of_page">org.freedesktop.Flatpak.Development</link>.
 */

/**
 * docOrgFreedesktopFlatpakDevelopmentIface:
 * @parent_iface: The parent interface.
 * @handle_host_command: Handler for the #docOrgFreedesktopFlatpakDevelopment::handle-host-command signal.
 * @handle_host_command_signal: Handler for the #docOrgFreedesktopFlatpakDevelopment::handle-host-command-signal signal.
 * @get_version: Getter for the #docOrgFreedesktopFlatpakDevelopment:version property.
 * @host_command_exited: Handler for the #docOrgFreedesktopFlatpakDevelopment::host-command-exited signal.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-Development.top_of_page">org.freedesktop.Flatpak.Development</link>.
 */

typedef docOrgFreedesktopFlatpakDevelopmentIface docOrgFreedesktopFlatpakDevelopmentInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopFlatpakDevelopment, doc_org_freedesktop_flatpak_development, G_TYPE_OBJECT)

static void
doc_org_freedesktop_flatpak_development_default_init (docOrgFreedesktopFlatpakDevelopmentIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopFlatpakDevelopment::handle-host-command:
   * @object: A #docOrgFreedesktopFlatpakDevelopment.
   * @invocation: A #GDBusMethodInvocation.
   * @fd_list: (nullable): A #GUnixFDList or %NULL.
   * @arg_cwd_path: Argument passed by remote caller.
   * @arg_argv: Argument passed by remote caller.
   * @arg_fds: Argument passed by remote caller.
   * @arg_envs: Argument passed by remote caller.
   * @arg_flags: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-Development.HostCommand">HostCommand()</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 doc_org_freedesktop_flatpak_development_complete_host_command() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-host-command",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakDevelopmentIface, handle_host_command),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    7,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_VARIANT, G_TYPE_VARIANT, G_TYPE_UINT);

  /**
   * docOrgFreedesktopFlatpakDevelopment::handle-host-command-signal:
   * @object: A #docOrgFreedesktopFlatpakDevelopment.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_pid: Argument passed by remote caller.
   * @arg_signal: Argument passed by remote caller.
   * @arg_to_process_group: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-Development.HostCommandSignal">HostCommandSignal()</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 doc_org_freedesktop_flatpak_development_complete_host_command_signal() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-host-command-signal",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakDevelopmentIface, handle_host_command_signal),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_BOOLEAN);

  /* GObject signals for received D-Bus signals: */
  /**
   * docOrgFreedesktopFlatpakDevelopment::host-command-exited:
   * @object: A #docOrgFreedesktopFlatpakDevelopment.
   * @arg_pid: Argument.
   * @arg_exit_status: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-Flatpak-Development.HostCommandExited">"HostCommandExited"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("host-command-exited",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakDevelopmentIface, host_command_exited),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    2, G_TYPE_UINT, G_TYPE_UINT);

  /* GObject properties for D-Bus properties: */
  /**
   * docOrgFreedesktopFlatpakDevelopment:version:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-Flatpak-Development.version">"version"</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 ("version", "version", "version", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * doc_org_freedesktop_flatpak_development_get_version: (skip)
 * @object: A #docOrgFreedesktopFlatpakDevelopment.
 *
 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-Flatpak-Development.version">"version"</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 
doc_org_freedesktop_flatpak_development_get_version (docOrgFreedesktopFlatpakDevelopment *object)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_GET_IFACE (object)->get_version (object);
}

/**
 * doc_org_freedesktop_flatpak_development_set_version: (skip)
 * @object: A #docOrgFreedesktopFlatpakDevelopment.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-freedesktop-Flatpak-Development.version">"version"</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
doc_org_freedesktop_flatpak_development_set_version (docOrgFreedesktopFlatpakDevelopment *object, guint value)
{
  g_object_set (G_OBJECT (object), "version", value, NULL);
}

/**
 * doc_org_freedesktop_flatpak_development_emit_host_command_exited:
 * @object: A #docOrgFreedesktopFlatpakDevelopment.
 * @arg_pid: Argument to pass with the signal.
 * @arg_exit_status: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-Flatpak-Development.HostCommandExited">"HostCommandExited"</link> D-Bus signal.
 */
void
doc_org_freedesktop_flatpak_development_emit_host_command_exited (
    docOrgFreedesktopFlatpakDevelopment *object,
    guint arg_pid,
    guint arg_exit_status)
{
  g_signal_emit_by_name (object, "host-command-exited", arg_pid, arg_exit_status);
}

/**
 * doc_org_freedesktop_flatpak_development_call_host_command:
 * @proxy: A #docOrgFreedesktopFlatpakDevelopmentProxy.
 * @arg_cwd_path: Argument to pass with the method invocation.
 * @arg_argv: Argument to pass with the method invocation.
 * @arg_fds: Argument to pass with the method invocation.
 * @arg_envs: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @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-freedesktop-Flatpak-Development.HostCommand">HostCommand()</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 doc_org_freedesktop_flatpak_development_call_host_command_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_development_call_host_command_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_development_call_host_command (
    docOrgFreedesktopFlatpakDevelopment *proxy,
    const gchar *arg_cwd_path,
    const gchar *const *arg_argv,
    GVariant *arg_fds,
    GVariant *arg_envs,
    guint arg_flags,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy),
    "HostCommand",
    g_variant_new ("(^ay^aay@a{uh}@a{ss}u)",
                   arg_cwd_path,
                   arg_argv,
                   arg_fds,
                   arg_envs,
                   arg_flags),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_development_call_host_command_finish:
 * @proxy: A #docOrgFreedesktopFlatpakDevelopmentProxy.
 * @out_pid: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out) (optional): Return location for a #GUnixFDList or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_development_call_host_command().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_development_call_host_command().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_development_call_host_command_finish (
    docOrgFreedesktopFlatpakDevelopment *proxy,
    guint *out_pid,
    GUnixFDList **out_fd_list,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(u)",
                 out_pid);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_development_call_host_command_sync:
 * @proxy: A #docOrgFreedesktopFlatpakDevelopmentProxy.
 * @arg_cwd_path: Argument to pass with the method invocation.
 * @arg_argv: Argument to pass with the method invocation.
 * @arg_fds: Argument to pass with the method invocation.
 * @arg_envs: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @out_pid: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Flatpak-Development.HostCommand">HostCommand()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_development_call_host_command() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_development_call_host_command_sync (
    docOrgFreedesktopFlatpakDevelopment *proxy,
    const gchar *arg_cwd_path,
    const gchar *const *arg_argv,
    GVariant *arg_fds,
    GVariant *arg_envs,
    guint arg_flags,
    GUnixFDList  *fd_list,
    guint *out_pid,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),
    "HostCommand",
    g_variant_new ("(^ay^aay@a{uh}@a{ss}u)",
                   arg_cwd_path,
                   arg_argv,
                   arg_fds,
                   arg_envs,
                   arg_flags),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    out_fd_list,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(u)",
                 out_pid);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_development_call_host_command_signal:
 * @proxy: A #docOrgFreedesktopFlatpakDevelopmentProxy.
 * @arg_pid: Argument to pass with the method invocation.
 * @arg_signal: Argument to pass with the method invocation.
 * @arg_to_process_group: 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-freedesktop-Flatpak-Development.HostCommandSignal">HostCommandSignal()</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 doc_org_freedesktop_flatpak_development_call_host_command_signal_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_development_call_host_command_signal_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_development_call_host_command_signal (
    docOrgFreedesktopFlatpakDevelopment *proxy,
    guint arg_pid,
    guint arg_signal,
    gboolean arg_to_process_group,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "HostCommandSignal",
    g_variant_new ("(uub)",
                   arg_pid,
                   arg_signal,
                   arg_to_process_group),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_development_call_host_command_signal_finish:
 * @proxy: A #docOrgFreedesktopFlatpakDevelopmentProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_development_call_host_command_signal().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_development_call_host_command_signal().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_development_call_host_command_signal_finish (
    docOrgFreedesktopFlatpakDevelopment *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;
}

/**
 * doc_org_freedesktop_flatpak_development_call_host_command_signal_sync:
 * @proxy: A #docOrgFreedesktopFlatpakDevelopmentProxy.
 * @arg_pid: Argument to pass with the method invocation.
 * @arg_signal: Argument to pass with the method invocation.
 * @arg_to_process_group: 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-freedesktop-Flatpak-Development.HostCommandSignal">HostCommandSignal()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_development_call_host_command_signal() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_development_call_host_command_signal_sync (
    docOrgFreedesktopFlatpakDevelopment *proxy,
    guint arg_pid,
    guint arg_signal,
    gboolean arg_to_process_group,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "HostCommandSignal",
    g_variant_new ("(uub)",
                   arg_pid,
                   arg_signal,
                   arg_to_process_group),
    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;
}

/**
 * doc_org_freedesktop_flatpak_development_complete_host_command:
 * @object: A #docOrgFreedesktopFlatpakDevelopment.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @pid: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-Development.HostCommand">HostCommand()</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
doc_org_freedesktop_flatpak_development_complete_host_command (
    docOrgFreedesktopFlatpakDevelopment *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    guint pid)
{
  g_dbus_method_invocation_return_value_with_unix_fd_list (invocation,
    g_variant_new ("(u)",
                   pid),
    fd_list);
}

/**
 * doc_org_freedesktop_flatpak_development_complete_host_command_signal:
 * @object: A #docOrgFreedesktopFlatpakDevelopment.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-Development.HostCommandSignal">HostCommandSignal()</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
doc_org_freedesktop_flatpak_development_complete_host_command_signal (
    docOrgFreedesktopFlatpakDevelopment *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

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

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

/**
 * docOrgFreedesktopFlatpakDevelopmentProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakDevelopmentProxy.
 */

struct _docOrgFreedesktopFlatpakDevelopmentProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_flatpak_development_proxy_iface_init (docOrgFreedesktopFlatpakDevelopmentIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakDevelopmentProxy, doc_org_freedesktop_flatpak_development_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakDevelopmentProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT, doc_org_freedesktop_flatpak_development_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakDevelopmentProxy, doc_org_freedesktop_flatpak_development_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT, doc_org_freedesktop_flatpak_development_proxy_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_development_proxy_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakDevelopmentProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_flatpak_development_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_flatpak_development_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_development_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
doc_org_freedesktop_flatpak_development_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.freedesktop.Flatpak.Development: %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
doc_org_freedesktop_flatpak_development_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_development_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.freedesktop.Flatpak.Development", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) doc_org_freedesktop_flatpak_development_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
doc_org_freedesktop_flatpak_development_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 *) &_doc_org_freedesktop_flatpak_development_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT);
  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
doc_org_freedesktop_flatpak_development_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopFlatpakDevelopmentProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_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 *) &_doc_org_freedesktop_flatpak_development_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 *) &_doc_org_freedesktop_flatpak_development_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 
doc_org_freedesktop_flatpak_development_proxy_get_version (docOrgFreedesktopFlatpakDevelopment *object)
{
  docOrgFreedesktopFlatpakDevelopmentProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "version");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
doc_org_freedesktop_flatpak_development_proxy_init (docOrgFreedesktopFlatpakDevelopmentProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_flatpak_development_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_PROXY, docOrgFreedesktopFlatpakDevelopmentProxyPrivate);
#endif

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

static void
doc_org_freedesktop_flatpak_development_proxy_class_init (docOrgFreedesktopFlatpakDevelopmentProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_flatpak_development_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_development_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_development_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_flatpak_development_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_flatpak_development_proxy_g_properties_changed;

  doc_org_freedesktop_flatpak_development_override_properties (gobject_class, 1);

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

static void
doc_org_freedesktop_flatpak_development_proxy_iface_init (docOrgFreedesktopFlatpakDevelopmentIface *iface)
{
  iface->get_version = doc_org_freedesktop_flatpak_development_proxy_get_version;
}

/**
 * doc_org_freedesktop_flatpak_development_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-freedesktop-Flatpak-Development.top_of_page">org.freedesktop.Flatpak.Development</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 doc_org_freedesktop_flatpak_development_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_development_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_development_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_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.freedesktop.Flatpak.Development", NULL);
}

/**
 * doc_org_freedesktop_flatpak_development_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_development_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_development_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakDevelopmentProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakDevelopment *
doc_org_freedesktop_flatpak_development_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 DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_development_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-freedesktop-Flatpak-Development.top_of_page">org.freedesktop.Flatpak.Development</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_development_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakDevelopmentProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakDevelopment *
doc_org_freedesktop_flatpak_development_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.Development", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_flatpak_development_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 doc_org_freedesktop_flatpak_development_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 doc_org_freedesktop_flatpak_development_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_development_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_development_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_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.freedesktop.Flatpak.Development", NULL);
}

/**
 * doc_org_freedesktop_flatpak_development_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_development_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_development_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakDevelopmentProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakDevelopment *
doc_org_freedesktop_flatpak_development_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 DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_development_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 doc_org_freedesktop_flatpak_development_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_development_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakDevelopmentProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakDevelopment *
doc_org_freedesktop_flatpak_development_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.Development", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopFlatpakDevelopmentSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakDevelopmentSkeleton.
 */

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

static void
_doc_org_freedesktop_flatpak_development_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)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT);
  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 *
_doc_org_freedesktop_flatpak_development_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)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_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 *) &_doc_org_freedesktop_flatpak_development_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
_doc_org_freedesktop_flatpak_development_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)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_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 *) &_doc_org_freedesktop_flatpak_development_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 _doc_org_freedesktop_flatpak_development_skeleton_vtable =
{
  _doc_org_freedesktop_flatpak_development_skeleton_handle_method_call,
  _doc_org_freedesktop_flatpak_development_skeleton_handle_get_property,
  _doc_org_freedesktop_flatpak_development_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_flatpak_development_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_flatpak_development_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_flatpak_development_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_flatpak_development_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_flatpak_development_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_flatpak_development_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_flatpak_development_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_flatpak_development_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_flatpak_development_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.freedesktop.Flatpak.Development", 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 _doc_org_freedesktop_flatpak_development_emit_changed (gpointer user_data);

static void
doc_org_freedesktop_flatpak_development_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_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)
    _doc_org_freedesktop_flatpak_development_emit_changed (skeleton);
}

static void
_doc_org_freedesktop_flatpak_development_on_signal_host_command_exited (
    docOrgFreedesktopFlatpakDevelopment *object,
    guint arg_pid,
    guint arg_exit_status)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(uu)",
                   arg_pid,
                   arg_exit_status));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.Flatpak.Development", "HostCommandExited",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void doc_org_freedesktop_flatpak_development_skeleton_iface_init (docOrgFreedesktopFlatpakDevelopmentIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakDevelopmentSkeleton, doc_org_freedesktop_flatpak_development_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakDevelopmentSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT, doc_org_freedesktop_flatpak_development_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakDevelopmentSkeleton, doc_org_freedesktop_flatpak_development_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT, doc_org_freedesktop_flatpak_development_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_development_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_SKELETON (object);
  guint n;
  for (n = 0; n < 1; 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 (doc_org_freedesktop_flatpak_development_skeleton_parent_class)->finalize (object);
}

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

static gboolean
_doc_org_freedesktop_flatpak_development_emit_changed (gpointer user_data)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
  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.freedesktop.Flatpak.Development",
                                           &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
_doc_org_freedesktop_flatpak_development_schedule_emit_changed (docOrgFreedesktopFlatpakDevelopmentSkeleton *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
doc_org_freedesktop_flatpak_development_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_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, _doc_org_freedesktop_flatpak_development_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _doc_org_freedesktop_flatpak_development_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
doc_org_freedesktop_flatpak_development_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_development_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)
        _doc_org_freedesktop_flatpak_development_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
doc_org_freedesktop_flatpak_development_skeleton_init (docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_flatpak_development_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_SKELETON, docOrgFreedesktopFlatpakDevelopmentSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 1);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
}

static guint 
doc_org_freedesktop_flatpak_development_skeleton_get_version (docOrgFreedesktopFlatpakDevelopment *object)
{
  docOrgFreedesktopFlatpakDevelopmentSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_value_get_uint (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
doc_org_freedesktop_flatpak_development_skeleton_class_init (docOrgFreedesktopFlatpakDevelopmentSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_flatpak_development_skeleton_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_development_skeleton_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_development_skeleton_set_property;
  gobject_class->notify       = doc_org_freedesktop_flatpak_development_skeleton_notify;


  doc_org_freedesktop_flatpak_development_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_flatpak_development_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_flatpak_development_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_flatpak_development_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_flatpak_development_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_flatpak_development_skeleton_iface_init (docOrgFreedesktopFlatpakDevelopmentIface *iface)
{
  iface->host_command_exited = _doc_org_freedesktop_flatpak_development_on_signal_host_command_exited;
  iface->get_version = doc_org_freedesktop_flatpak_development_skeleton_get_version;
}

/**
 * doc_org_freedesktop_flatpak_development_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-Development.top_of_page">org.freedesktop.Flatpak.Development</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakDevelopmentSkeleton): The skeleton object.
 */
docOrgFreedesktopFlatpakDevelopment *
doc_org_freedesktop_flatpak_development_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_DEVELOPMENT_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.Flatpak.SystemHelper
 * ------------------------------------------------------------------------
 */

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

/* ---- Introspection data for org.freedesktop.Flatpak.SystemHelper ---- */

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_repo_path =
{
  {
    -1,
    (gchar *) "repo_path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

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

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

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

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_repo_path.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_ref.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_origin.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_subpaths.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_previous_ids.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_deploy =
{
  {
    -1,
    (gchar *) "Deploy",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-deploy",
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream_IN_ARG_repo_path =
{
  {
    -1,
    (gchar *) "repo_path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

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

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream_IN_ARG_repo_path.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream_IN_ARG_origin.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream_IN_ARG_arch.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream =
{
  {
    -1,
    (gchar *) "DeployAppstream",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-deploy-appstream",
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_uninstall_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_uninstall_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_uninstall_IN_ARG_ref.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_uninstall_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_uninstall =
{
  {
    -1,
    (gchar *) "Uninstall",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_uninstall_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-uninstall",
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_IN_ARG_bundle_path =
{
  {
    -1,
    (gchar *) "bundle_path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_IN_ARG_bundle_path.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_IN_ARG_remote.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_IN_ARG_installation.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_OUT_ARG_ref.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle =
{
  {
    -1,
    (gchar *) "InstallBundle",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle_OUT_ARG_pointers,
    NULL
  },
  "handle-install-bundle",
  FALSE
};

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

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

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote_IN_ARG_gpg_key =
{
  {
    -1,
    (gchar *) "gpg_key",
    (gchar *) "ay",
    NULL
  },
  TRUE
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote_IN_ARG_remote.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote_IN_ARG_config.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote_IN_ARG_gpg_key.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote =
{
  {
    -1,
    (gchar *) "ConfigureRemote",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-configure-remote",
  FALSE
};

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

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_configure_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_IN_ARG_key.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_IN_ARG_value.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_configure =
{
  {
    -1,
    (gchar *) "Configure",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-configure",
  FALSE
};

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

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

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_summary_path =
{
  {
    -1,
    (gchar *) "summary_path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_summary_sig_path =
{
  {
    -1,
    (gchar *) "summary_sig_path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_remote.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_installation.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_summary_path.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_summary_sig_path.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_update_remote =
{
  {
    -1,
    (gchar *) "UpdateRemote",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_update_remote_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-update-remote",
  FALSE
};

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

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_remove_local_ref_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_remove_local_ref_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_remove_local_ref_IN_ARG_remote.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_remove_local_ref_IN_ARG_ref.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_remove_local_ref_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_remove_local_ref =
{
  {
    -1,
    (gchar *) "RemoveLocalRef",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_remove_local_ref_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-remove-local-ref",
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_prune_local_repo_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_prune_local_repo_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_prune_local_repo_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_prune_local_repo =
{
  {
    -1,
    (gchar *) "PruneLocalRepo",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_prune_local_repo_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-prune-local-repo",
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_run_triggers_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_run_triggers_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_run_triggers_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_run_triggers =
{
  {
    -1,
    (gchar *) "RunTriggers",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_run_triggers_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-run-triggers",
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_ensure_repo_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_ensure_repo_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_ensure_repo_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_ensure_repo =
{
  {
    -1,
    (gchar *) "EnsureRepo",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_ensure_repo_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-ensure-repo",
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_update_summary_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_summary_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_summary_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_update_summary =
{
  {
    -1,
    (gchar *) "UpdateSummary",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_update_summary_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-update-summary",
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_generate_oci_summary_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_generate_oci_summary_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_generate_oci_summary_IN_ARG_origin.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_generate_oci_summary_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_generate_oci_summary =
{
  {
    -1,
    (gchar *) "GenerateOciSummary",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_generate_oci_summary_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-generate-oci-summary",
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_cancel_pull_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_cancel_pull_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_cancel_pull_IN_ARG_installation.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_cancel_pull_IN_ARG_src_dir.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_cancel_pull =
{
  {
    -1,
    (gchar *) "CancelPull",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_cancel_pull_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-cancel-pull",
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_IN_ARG_installation.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_OUT_ARG_fd_index =
{
  {
    -1,
    (gchar *) "fd_index",
    (gchar *) "h",
    NULL
  },
  FALSE
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_OUT_ARG_fd_index.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_OUT_ARG_src_dir.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd =
{
  {
    -1,
    (gchar *) "GetRevokefsFd",
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd_OUT_ARG_pointers,
    NULL
  },
  "handle-get-revokefs-fd",
  TRUE
};

static const GDBusMethodInfo * const _doc_org_freedesktop_flatpak_system_helper_method_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_deploy_appstream.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_uninstall.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_install_bundle.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure_remote.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_configure.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_remote.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_remove_local_ref.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_prune_local_repo.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_run_triggers.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_ensure_repo.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_update_summary.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_generate_oci_summary.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_cancel_pull.parent_struct,
  &_doc_org_freedesktop_flatpak_system_helper_method_info_get_revokefs_fd.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _doc_org_freedesktop_flatpak_system_helper_property_info_version =
{
  {
    -1,
    (gchar *) "version",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "version",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _doc_org_freedesktop_flatpak_system_helper_property_info_pointers[] =
{
  &_doc_org_freedesktop_flatpak_system_helper_property_info_version.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_flatpak_system_helper_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.Flatpak.SystemHelper",
    (GDBusMethodInfo **) &_doc_org_freedesktop_flatpak_system_helper_method_info_pointers,
    NULL,
    (GDBusPropertyInfo **) &_doc_org_freedesktop_flatpak_system_helper_property_info_pointers,
    NULL
  },
  "org-freedesktop-flatpak-system-helper",
};


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

/**
 * doc_org_freedesktop_flatpak_system_helper_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 #docOrgFreedesktopFlatpakSystemHelper interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_flatpak_system_helper_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "version");
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopFlatpakSystemHelper:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-SystemHelper.top_of_page">org.freedesktop.Flatpak.SystemHelper</link>.
 */

/**
 * docOrgFreedesktopFlatpakSystemHelperIface:
 * @parent_iface: The parent interface.
 * @handle_cancel_pull: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-cancel-pull signal.
 * @handle_configure: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-configure signal.
 * @handle_configure_remote: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-configure-remote signal.
 * @handle_deploy: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-deploy signal.
 * @handle_deploy_appstream: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-deploy-appstream signal.
 * @handle_ensure_repo: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-ensure-repo signal.
 * @handle_generate_oci_summary: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-generate-oci-summary signal.
 * @handle_get_revokefs_fd: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-get-revokefs-fd signal.
 * @handle_install_bundle: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-install-bundle signal.
 * @handle_prune_local_repo: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-prune-local-repo signal.
 * @handle_remove_local_ref: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-remove-local-ref signal.
 * @handle_run_triggers: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-run-triggers signal.
 * @handle_uninstall: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-uninstall signal.
 * @handle_update_remote: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-update-remote signal.
 * @handle_update_summary: Handler for the #docOrgFreedesktopFlatpakSystemHelper::handle-update-summary signal.
 * @get_version: Getter for the #docOrgFreedesktopFlatpakSystemHelper:version property.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-SystemHelper.top_of_page">org.freedesktop.Flatpak.SystemHelper</link>.
 */

typedef docOrgFreedesktopFlatpakSystemHelperIface docOrgFreedesktopFlatpakSystemHelperInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopFlatpakSystemHelper, doc_org_freedesktop_flatpak_system_helper, G_TYPE_OBJECT)

static void
doc_org_freedesktop_flatpak_system_helper_default_init (docOrgFreedesktopFlatpakSystemHelperIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-deploy:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_repo_path: Argument passed by remote caller.
   * @arg_flags: Argument passed by remote caller.
   * @arg_ref: Argument passed by remote caller.
   * @arg_origin: Argument passed by remote caller.
   * @arg_subpaths: Argument passed by remote caller.
   * @arg_previous_ids: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.Deploy">Deploy()</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 doc_org_freedesktop_flatpak_system_helper_complete_deploy() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-deploy",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_deploy),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    8,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-deploy-appstream:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_repo_path: Argument passed by remote caller.
   * @arg_flags: Argument passed by remote caller.
   * @arg_origin: Argument passed by remote caller.
   * @arg_arch: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.DeployAppstream">DeployAppstream()</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 doc_org_freedesktop_flatpak_system_helper_complete_deploy_appstream() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-deploy-appstream",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_deploy_appstream),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-uninstall:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_ref: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.Uninstall">Uninstall()</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 doc_org_freedesktop_flatpak_system_helper_complete_uninstall() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-uninstall",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_uninstall),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-install-bundle:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_bundle_path: Argument passed by remote caller.
   * @arg_flags: Argument passed by remote caller.
   * @arg_remote: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.InstallBundle">InstallBundle()</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 doc_org_freedesktop_flatpak_system_helper_complete_install_bundle() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-install-bundle",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_install_bundle),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-configure-remote:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_remote: Argument passed by remote caller.
   * @arg_config: Argument passed by remote caller.
   * @arg_gpg_key: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.ConfigureRemote">ConfigureRemote()</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 doc_org_freedesktop_flatpak_system_helper_complete_configure_remote() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-configure-remote",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_configure_remote),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-configure:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_key: Argument passed by remote caller.
   * @arg_value: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.Configure">Configure()</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 doc_org_freedesktop_flatpak_system_helper_complete_configure() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-configure",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_configure),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-update-remote:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_remote: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   * @arg_summary_path: Argument passed by remote caller.
   * @arg_summary_sig_path: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.UpdateRemote">UpdateRemote()</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 doc_org_freedesktop_flatpak_system_helper_complete_update_remote() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-remote",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_update_remote),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-remove-local-ref:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_remote: Argument passed by remote caller.
   * @arg_ref: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.RemoveLocalRef">RemoveLocalRef()</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 doc_org_freedesktop_flatpak_system_helper_complete_remove_local_ref() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-remove-local-ref",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_remove_local_ref),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-prune-local-repo:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.PruneLocalRepo">PruneLocalRepo()</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 doc_org_freedesktop_flatpak_system_helper_complete_prune_local_repo() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-prune-local-repo",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_prune_local_repo),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-run-triggers:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.RunTriggers">RunTriggers()</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 doc_org_freedesktop_flatpak_system_helper_complete_run_triggers() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-run-triggers",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_run_triggers),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-ensure-repo:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.EnsureRepo">EnsureRepo()</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 doc_org_freedesktop_flatpak_system_helper_complete_ensure_repo() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-ensure-repo",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_ensure_repo),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-update-summary:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.UpdateSummary">UpdateSummary()</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 doc_org_freedesktop_flatpak_system_helper_complete_update_summary() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-summary",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_update_summary),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-generate-oci-summary:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_origin: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.GenerateOciSummary">GenerateOciSummary()</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 doc_org_freedesktop_flatpak_system_helper_complete_generate_oci_summary() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-generate-oci-summary",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_generate_oci_summary),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-cancel-pull:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_flags: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   * @arg_src_dir: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.CancelPull">CancelPull()</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 doc_org_freedesktop_flatpak_system_helper_complete_cancel_pull() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-cancel-pull",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_cancel_pull),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopFlatpakSystemHelper::handle-get-revokefs-fd:
   * @object: A #docOrgFreedesktopFlatpakSystemHelper.
   * @invocation: A #GDBusMethodInvocation.
   * @fd_list: (nullable): A #GUnixFDList or %NULL.
   * @arg_flags: Argument passed by remote caller.
   * @arg_installation: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.GetRevokefsFd">GetRevokefsFd()</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 doc_org_freedesktop_flatpak_system_helper_complete_get_revokefs_fd() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-revokefs-fd",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopFlatpakSystemHelperIface, handle_get_revokefs_fd),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_UINT, G_TYPE_STRING);

  /* GObject properties for D-Bus properties: */
  /**
   * docOrgFreedesktopFlatpakSystemHelper:version:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-Flatpak-SystemHelper.version">"version"</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 ("version", "version", "version", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_get_version: (skip)
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 *
 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-Flatpak-SystemHelper.version">"version"</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 
doc_org_freedesktop_flatpak_system_helper_get_version (docOrgFreedesktopFlatpakSystemHelper *object)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_GET_IFACE (object)->get_version (object);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_set_version: (skip)
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-freedesktop-Flatpak-SystemHelper.version">"version"</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
doc_org_freedesktop_flatpak_system_helper_set_version (docOrgFreedesktopFlatpakSystemHelper *object, guint value)
{
  g_object_set (G_OBJECT (object), "version", value, NULL);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_deploy:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_repo_path: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_ref: Argument to pass with the method invocation.
 * @arg_origin: Argument to pass with the method invocation.
 * @arg_subpaths: Argument to pass with the method invocation.
 * @arg_previous_ids: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.Deploy">Deploy()</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 doc_org_freedesktop_flatpak_system_helper_call_deploy_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_deploy_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_deploy (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    const gchar *arg_repo_path,
    guint arg_flags,
    const gchar *arg_ref,
    const gchar *arg_origin,
    const gchar *const *arg_subpaths,
    const gchar *const *arg_previous_ids,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Deploy",
    g_variant_new ("(^ayuss^as^ass)",
                   arg_repo_path,
                   arg_flags,
                   arg_ref,
                   arg_origin,
                   arg_subpaths,
                   arg_previous_ids,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_deploy_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_deploy().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_deploy().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_deploy_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_deploy_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_repo_path: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_ref: Argument to pass with the method invocation.
 * @arg_origin: Argument to pass with the method invocation.
 * @arg_subpaths: Argument to pass with the method invocation.
 * @arg_previous_ids: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.Deploy">Deploy()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_deploy() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_deploy_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    const gchar *arg_repo_path,
    guint arg_flags,
    const gchar *arg_ref,
    const gchar *arg_origin,
    const gchar *const *arg_subpaths,
    const gchar *const *arg_previous_ids,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Deploy",
    g_variant_new ("(^ayuss^as^ass)",
                   arg_repo_path,
                   arg_flags,
                   arg_ref,
                   arg_origin,
                   arg_subpaths,
                   arg_previous_ids,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_repo_path: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_origin: Argument to pass with the method invocation.
 * @arg_arch: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.DeployAppstream">DeployAppstream()</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 doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    const gchar *arg_repo_path,
    guint arg_flags,
    const gchar *arg_origin,
    const gchar *arg_arch,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "DeployAppstream",
    g_variant_new ("(^ayusss)",
                   arg_repo_path,
                   arg_flags,
                   arg_origin,
                   arg_arch,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_repo_path: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_origin: Argument to pass with the method invocation.
 * @arg_arch: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.DeployAppstream">DeployAppstream()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_deploy_appstream_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    const gchar *arg_repo_path,
    guint arg_flags,
    const gchar *arg_origin,
    const gchar *arg_arch,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "DeployAppstream",
    g_variant_new ("(^ayusss)",
                   arg_repo_path,
                   arg_flags,
                   arg_origin,
                   arg_arch,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_uninstall:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_ref: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.Uninstall">Uninstall()</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 doc_org_freedesktop_flatpak_system_helper_call_uninstall_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_uninstall_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_uninstall (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_ref,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Uninstall",
    g_variant_new ("(uss)",
                   arg_flags,
                   arg_ref,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_uninstall_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_uninstall().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_uninstall().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_uninstall_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_uninstall_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_ref: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.Uninstall">Uninstall()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_uninstall() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_uninstall_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_ref,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Uninstall",
    g_variant_new ("(uss)",
                   arg_flags,
                   arg_ref,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_install_bundle:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_bundle_path: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.InstallBundle">InstallBundle()</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 doc_org_freedesktop_flatpak_system_helper_call_install_bundle_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_install_bundle_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_install_bundle (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    const gchar *arg_bundle_path,
    guint arg_flags,
    const gchar *arg_remote,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "InstallBundle",
    g_variant_new ("(^ayuss)",
                   arg_bundle_path,
                   arg_flags,
                   arg_remote,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_install_bundle_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @out_ref: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_install_bundle().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_install_bundle().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_install_bundle_finish (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    gchar **out_ref,
    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_ref);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_install_bundle_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_bundle_path: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_installation: Argument to pass with the method invocation.
 * @out_ref: (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-freedesktop-Flatpak-SystemHelper.InstallBundle">InstallBundle()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_install_bundle() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_install_bundle_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    const gchar *arg_bundle_path,
    guint arg_flags,
    const gchar *arg_remote,
    const gchar *arg_installation,
    gchar **out_ref,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "InstallBundle",
    g_variant_new ("(^ayuss)",
                   arg_bundle_path,
                   arg_flags,
                   arg_remote,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(s)",
                 out_ref);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_configure_remote:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_config: Argument to pass with the method invocation.
 * @arg_gpg_key: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.ConfigureRemote">ConfigureRemote()</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 doc_org_freedesktop_flatpak_system_helper_call_configure_remote_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_configure_remote_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_configure_remote (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_remote,
    const gchar *arg_config,
    GVariant *arg_gpg_key,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "ConfigureRemote",
    g_variant_new ("(uss@ays)",
                   arg_flags,
                   arg_remote,
                   arg_config,
                   arg_gpg_key,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_configure_remote_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_configure_remote().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_configure_remote().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_configure_remote_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_configure_remote_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_config: Argument to pass with the method invocation.
 * @arg_gpg_key: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.ConfigureRemote">ConfigureRemote()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_configure_remote() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_configure_remote_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_remote,
    const gchar *arg_config,
    GVariant *arg_gpg_key,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "ConfigureRemote",
    g_variant_new ("(uss@ays)",
                   arg_flags,
                   arg_remote,
                   arg_config,
                   arg_gpg_key,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_configure:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_key: Argument to pass with the method invocation.
 * @arg_value: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.Configure">Configure()</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 doc_org_freedesktop_flatpak_system_helper_call_configure_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_configure_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_configure (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_key,
    const gchar *arg_value,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Configure",
    g_variant_new ("(usss)",
                   arg_flags,
                   arg_key,
                   arg_value,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_configure_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_configure().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_configure().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_configure_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_configure_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_key: Argument to pass with the method invocation.
 * @arg_value: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.Configure">Configure()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_configure() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_configure_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_key,
    const gchar *arg_value,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Configure",
    g_variant_new ("(usss)",
                   arg_flags,
                   arg_key,
                   arg_value,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_update_remote:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_installation: Argument to pass with the method invocation.
 * @arg_summary_path: Argument to pass with the method invocation.
 * @arg_summary_sig_path: 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-freedesktop-Flatpak-SystemHelper.UpdateRemote">UpdateRemote()</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 doc_org_freedesktop_flatpak_system_helper_call_update_remote_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_update_remote_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_update_remote (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_remote,
    const gchar *arg_installation,
    const gchar *arg_summary_path,
    const gchar *arg_summary_sig_path,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "UpdateRemote",
    g_variant_new ("(uss^ay^ay)",
                   arg_flags,
                   arg_remote,
                   arg_installation,
                   arg_summary_path,
                   arg_summary_sig_path),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_update_remote_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_update_remote().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_update_remote().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_update_remote_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_update_remote_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_installation: Argument to pass with the method invocation.
 * @arg_summary_path: Argument to pass with the method invocation.
 * @arg_summary_sig_path: 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-freedesktop-Flatpak-SystemHelper.UpdateRemote">UpdateRemote()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_update_remote() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_update_remote_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_remote,
    const gchar *arg_installation,
    const gchar *arg_summary_path,
    const gchar *arg_summary_sig_path,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "UpdateRemote",
    g_variant_new ("(uss^ay^ay)",
                   arg_flags,
                   arg_remote,
                   arg_installation,
                   arg_summary_path,
                   arg_summary_sig_path),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_ref: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.RemoveLocalRef">RemoveLocalRef()</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 doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_remote,
    const gchar *arg_ref,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "RemoveLocalRef",
    g_variant_new ("(usss)",
                   arg_flags,
                   arg_remote,
                   arg_ref,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_remote: Argument to pass with the method invocation.
 * @arg_ref: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.RemoveLocalRef">RemoveLocalRef()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_remove_local_ref_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_remote,
    const gchar *arg_ref,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "RemoveLocalRef",
    g_variant_new ("(usss)",
                   arg_flags,
                   arg_remote,
                   arg_ref,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.PruneLocalRepo">PruneLocalRepo()</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 doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "PruneLocalRepo",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.PruneLocalRepo">PruneLocalRepo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_prune_local_repo_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "PruneLocalRepo",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_run_triggers:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.RunTriggers">RunTriggers()</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 doc_org_freedesktop_flatpak_system_helper_call_run_triggers_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_run_triggers_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_run_triggers (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "RunTriggers",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_run_triggers_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_run_triggers().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_run_triggers().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_run_triggers_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_run_triggers_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.RunTriggers">RunTriggers()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_run_triggers() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_run_triggers_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "RunTriggers",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_ensure_repo:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.EnsureRepo">EnsureRepo()</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 doc_org_freedesktop_flatpak_system_helper_call_ensure_repo_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_ensure_repo_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_ensure_repo (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "EnsureRepo",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_ensure_repo_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_ensure_repo().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_ensure_repo().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_ensure_repo_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_ensure_repo_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.EnsureRepo">EnsureRepo()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_ensure_repo() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_ensure_repo_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "EnsureRepo",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_update_summary:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.UpdateSummary">UpdateSummary()</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 doc_org_freedesktop_flatpak_system_helper_call_update_summary_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_update_summary_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_update_summary (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "UpdateSummary",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_update_summary_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_update_summary().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_update_summary().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_update_summary_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_update_summary_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.UpdateSummary">UpdateSummary()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_update_summary() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_update_summary_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "UpdateSummary",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_origin: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.GenerateOciSummary">GenerateOciSummary()</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 doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_origin,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "GenerateOciSummary",
    g_variant_new ("(uss)",
                   arg_flags,
                   arg_origin,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_origin: Argument to pass with the method invocation.
 * @arg_installation: 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-freedesktop-Flatpak-SystemHelper.GenerateOciSummary">GenerateOciSummary()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_generate_oci_summary_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_origin,
    const gchar *arg_installation,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "GenerateOciSummary",
    g_variant_new ("(uss)",
                   arg_flags,
                   arg_origin,
                   arg_installation),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_cancel_pull:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: Argument to pass with the method invocation.
 * @arg_src_dir: 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-freedesktop-Flatpak-SystemHelper.CancelPull">CancelPull()</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 doc_org_freedesktop_flatpak_system_helper_call_cancel_pull_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_cancel_pull_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_cancel_pull (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    const gchar *arg_src_dir,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "CancelPull",
    g_variant_new ("(uss)",
                   arg_flags,
                   arg_installation,
                   arg_src_dir),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_cancel_pull_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_cancel_pull().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_cancel_pull().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_cancel_pull_finish (
    docOrgFreedesktopFlatpakSystemHelper *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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_cancel_pull_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: Argument to pass with the method invocation.
 * @arg_src_dir: 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-freedesktop-Flatpak-SystemHelper.CancelPull">CancelPull()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_cancel_pull() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_cancel_pull_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    const gchar *arg_src_dir,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "CancelPull",
    g_variant_new ("(uss)",
                   arg_flags,
                   arg_installation,
                   arg_src_dir),
    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;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @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-freedesktop-Flatpak-SystemHelper.GetRevokefsFd">GetRevokefsFd()</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 doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy),
    "GetRevokefsFd",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd_finish:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @out_fd_index: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_src_dir: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out) (optional): Return location for a #GUnixFDList or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd_finish (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    GVariant **out_fd_index,
    gchar **out_src_dir,
    GUnixFDList **out_fd_list,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@hs)",
                 out_fd_index,
                 out_src_dir);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd_sync:
 * @proxy: A #docOrgFreedesktopFlatpakSystemHelperProxy.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_installation: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @out_fd_index: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_src_dir: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.GetRevokefsFd">GetRevokefsFd()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_flatpak_system_helper_call_get_revokefs_fd_sync (
    docOrgFreedesktopFlatpakSystemHelper *proxy,
    guint arg_flags,
    const gchar *arg_installation,
    GUnixFDList  *fd_list,
    GVariant **out_fd_index,
    gchar **out_src_dir,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),
    "GetRevokefsFd",
    g_variant_new ("(us)",
                   arg_flags,
                   arg_installation),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    out_fd_list,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@hs)",
                 out_fd_index,
                 out_src_dir);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_deploy:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.Deploy">Deploy()</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
doc_org_freedesktop_flatpak_system_helper_complete_deploy (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_deploy_appstream:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.DeployAppstream">DeployAppstream()</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
doc_org_freedesktop_flatpak_system_helper_complete_deploy_appstream (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_uninstall:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.Uninstall">Uninstall()</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
doc_org_freedesktop_flatpak_system_helper_complete_uninstall (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_install_bundle:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @ref: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.InstallBundle">InstallBundle()</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
doc_org_freedesktop_flatpak_system_helper_complete_install_bundle (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *ref)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(s)",
                   ref));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_configure_remote:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.ConfigureRemote">ConfigureRemote()</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
doc_org_freedesktop_flatpak_system_helper_complete_configure_remote (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_configure:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.Configure">Configure()</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
doc_org_freedesktop_flatpak_system_helper_complete_configure (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_update_remote:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.UpdateRemote">UpdateRemote()</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
doc_org_freedesktop_flatpak_system_helper_complete_update_remote (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_remove_local_ref:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.RemoveLocalRef">RemoveLocalRef()</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
doc_org_freedesktop_flatpak_system_helper_complete_remove_local_ref (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_prune_local_repo:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.PruneLocalRepo">PruneLocalRepo()</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
doc_org_freedesktop_flatpak_system_helper_complete_prune_local_repo (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_run_triggers:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.RunTriggers">RunTriggers()</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
doc_org_freedesktop_flatpak_system_helper_complete_run_triggers (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_ensure_repo:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.EnsureRepo">EnsureRepo()</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
doc_org_freedesktop_flatpak_system_helper_complete_ensure_repo (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_update_summary:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.UpdateSummary">UpdateSummary()</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
doc_org_freedesktop_flatpak_system_helper_complete_update_summary (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_generate_oci_summary:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.GenerateOciSummary">GenerateOciSummary()</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
doc_org_freedesktop_flatpak_system_helper_complete_generate_oci_summary (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_cancel_pull:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.CancelPull">CancelPull()</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
doc_org_freedesktop_flatpak_system_helper_complete_cancel_pull (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_flatpak_system_helper_complete_get_revokefs_fd:
 * @object: A #docOrgFreedesktopFlatpakSystemHelper.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @fd_index: Parameter to return.
 * @src_dir: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-Flatpak-SystemHelper.GetRevokefsFd">GetRevokefsFd()</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
doc_org_freedesktop_flatpak_system_helper_complete_get_revokefs_fd (
    docOrgFreedesktopFlatpakSystemHelper *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    GVariant *fd_index,
    const gchar *src_dir)
{
  g_dbus_method_invocation_return_value_with_unix_fd_list (invocation,
    g_variant_new ("(@hs)",
                   fd_index,
                   src_dir),
    fd_list);
}

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

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

/**
 * docOrgFreedesktopFlatpakSystemHelperProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakSystemHelperProxy.
 */

struct _docOrgFreedesktopFlatpakSystemHelperProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_flatpak_system_helper_proxy_iface_init (docOrgFreedesktopFlatpakSystemHelperIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakSystemHelperProxy, doc_org_freedesktop_flatpak_system_helper_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakSystemHelperProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER, doc_org_freedesktop_flatpak_system_helper_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakSystemHelperProxy, doc_org_freedesktop_flatpak_system_helper_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER, doc_org_freedesktop_flatpak_system_helper_proxy_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_system_helper_proxy_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakSystemHelperProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_flatpak_system_helper_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_flatpak_system_helper_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_system_helper_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
doc_org_freedesktop_flatpak_system_helper_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.freedesktop.Flatpak.SystemHelper: %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
doc_org_freedesktop_flatpak_system_helper_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_system_helper_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.freedesktop.Flatpak.SystemHelper", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) doc_org_freedesktop_flatpak_system_helper_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
doc_org_freedesktop_flatpak_system_helper_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 *) &_doc_org_freedesktop_flatpak_system_helper_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER);
  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
doc_org_freedesktop_flatpak_system_helper_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopFlatpakSystemHelperProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_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 *) &_doc_org_freedesktop_flatpak_system_helper_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 *) &_doc_org_freedesktop_flatpak_system_helper_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 
doc_org_freedesktop_flatpak_system_helper_proxy_get_version (docOrgFreedesktopFlatpakSystemHelper *object)
{
  docOrgFreedesktopFlatpakSystemHelperProxy *proxy = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "version");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
doc_org_freedesktop_flatpak_system_helper_proxy_init (docOrgFreedesktopFlatpakSystemHelperProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_flatpak_system_helper_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_PROXY, docOrgFreedesktopFlatpakSystemHelperProxyPrivate);
#endif

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

static void
doc_org_freedesktop_flatpak_system_helper_proxy_class_init (docOrgFreedesktopFlatpakSystemHelperProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_flatpak_system_helper_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_system_helper_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_system_helper_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_flatpak_system_helper_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_flatpak_system_helper_proxy_g_properties_changed;

  doc_org_freedesktop_flatpak_system_helper_override_properties (gobject_class, 1);

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

static void
doc_org_freedesktop_flatpak_system_helper_proxy_iface_init (docOrgFreedesktopFlatpakSystemHelperIface *iface)
{
  iface->get_version = doc_org_freedesktop_flatpak_system_helper_proxy_get_version;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_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-freedesktop-Flatpak-SystemHelper.top_of_page">org.freedesktop.Flatpak.SystemHelper</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 doc_org_freedesktop_flatpak_system_helper_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_system_helper_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_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.freedesktop.Flatpak.SystemHelper", NULL);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSystemHelperProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakSystemHelper *
doc_org_freedesktop_flatpak_system_helper_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 DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_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-freedesktop-Flatpak-SystemHelper.top_of_page">org.freedesktop.Flatpak.SystemHelper</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSystemHelperProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakSystemHelper *
doc_org_freedesktop_flatpak_system_helper_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.SystemHelper", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_flatpak_system_helper_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 doc_org_freedesktop_flatpak_system_helper_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 doc_org_freedesktop_flatpak_system_helper_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_flatpak_system_helper_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_flatpak_system_helper_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_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.freedesktop.Flatpak.SystemHelper", NULL);
}

/**
 * doc_org_freedesktop_flatpak_system_helper_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_flatpak_system_helper_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_flatpak_system_helper_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSystemHelperProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakSystemHelper *
doc_org_freedesktop_flatpak_system_helper_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 DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_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 doc_org_freedesktop_flatpak_system_helper_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_flatpak_system_helper_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSystemHelperProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopFlatpakSystemHelper *
doc_org_freedesktop_flatpak_system_helper_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 (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.Flatpak.SystemHelper", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopFlatpakSystemHelperSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopFlatpakSystemHelperSkeleton.
 */

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

static void
_doc_org_freedesktop_flatpak_system_helper_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)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_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], DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER);
  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, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER);
  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 *
_doc_org_freedesktop_flatpak_system_helper_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)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_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 *) &_doc_org_freedesktop_flatpak_system_helper_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
_doc_org_freedesktop_flatpak_system_helper_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)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_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 *) &_doc_org_freedesktop_flatpak_system_helper_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 _doc_org_freedesktop_flatpak_system_helper_skeleton_vtable =
{
  _doc_org_freedesktop_flatpak_system_helper_skeleton_handle_method_call,
  _doc_org_freedesktop_flatpak_system_helper_skeleton_handle_get_property,
  _doc_org_freedesktop_flatpak_system_helper_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_flatpak_system_helper_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_flatpak_system_helper_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_flatpak_system_helper_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_flatpak_system_helper_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_flatpak_system_helper_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_flatpak_system_helper_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_flatpak_system_helper_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_flatpak_system_helper_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_flatpak_system_helper_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.freedesktop.Flatpak.SystemHelper", 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 _doc_org_freedesktop_flatpak_system_helper_emit_changed (gpointer user_data);

static void
doc_org_freedesktop_flatpak_system_helper_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_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)
    _doc_org_freedesktop_flatpak_system_helper_emit_changed (skeleton);
}

static void doc_org_freedesktop_flatpak_system_helper_skeleton_iface_init (docOrgFreedesktopFlatpakSystemHelperIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakSystemHelperSkeleton, doc_org_freedesktop_flatpak_system_helper_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopFlatpakSystemHelperSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER, doc_org_freedesktop_flatpak_system_helper_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopFlatpakSystemHelperSkeleton, doc_org_freedesktop_flatpak_system_helper_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER, doc_org_freedesktop_flatpak_system_helper_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_flatpak_system_helper_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_SKELETON (object);
  guint n;
  for (n = 0; n < 1; 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 (doc_org_freedesktop_flatpak_system_helper_skeleton_parent_class)->finalize (object);
}

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

static gboolean
_doc_org_freedesktop_flatpak_system_helper_emit_changed (gpointer user_data)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
  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.freedesktop.Flatpak.SystemHelper",
                                           &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
_doc_org_freedesktop_flatpak_system_helper_schedule_emit_changed (docOrgFreedesktopFlatpakSystemHelperSkeleton *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
doc_org_freedesktop_flatpak_system_helper_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_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, _doc_org_freedesktop_flatpak_system_helper_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _doc_org_freedesktop_flatpak_system_helper_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
doc_org_freedesktop_flatpak_system_helper_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_flatpak_system_helper_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)
        _doc_org_freedesktop_flatpak_system_helper_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
doc_org_freedesktop_flatpak_system_helper_skeleton_init (docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_flatpak_system_helper_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_SKELETON, docOrgFreedesktopFlatpakSystemHelperSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 1);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
}

static guint 
doc_org_freedesktop_flatpak_system_helper_skeleton_get_version (docOrgFreedesktopFlatpakSystemHelper *object)
{
  docOrgFreedesktopFlatpakSystemHelperSkeleton *skeleton = DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_value_get_uint (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
doc_org_freedesktop_flatpak_system_helper_skeleton_class_init (docOrgFreedesktopFlatpakSystemHelperSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_flatpak_system_helper_skeleton_finalize;
  gobject_class->get_property = doc_org_freedesktop_flatpak_system_helper_skeleton_get_property;
  gobject_class->set_property = doc_org_freedesktop_flatpak_system_helper_skeleton_set_property;
  gobject_class->notify       = doc_org_freedesktop_flatpak_system_helper_skeleton_notify;


  doc_org_freedesktop_flatpak_system_helper_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_flatpak_system_helper_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_flatpak_system_helper_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_flatpak_system_helper_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_flatpak_system_helper_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_flatpak_system_helper_skeleton_iface_init (docOrgFreedesktopFlatpakSystemHelperIface *iface)
{
  iface->get_version = doc_org_freedesktop_flatpak_system_helper_skeleton_get_version;
}

/**
 * doc_org_freedesktop_flatpak_system_helper_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-Flatpak-SystemHelper.top_of_page">org.freedesktop.Flatpak.SystemHelper</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopFlatpakSystemHelperSkeleton): The skeleton object.
 */
docOrgFreedesktopFlatpakSystemHelper *
doc_org_freedesktop_flatpak_system_helper_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_FLATPAK_SYSTEM_HELPER_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.impl.portal.PermissionStore
 * ------------------------------------------------------------------------
 */

/**
 * SECTION:docOrgFreedesktopImplPortalPermissionStore
 * @title: docOrgFreedesktopImplPortalPermissionStore
 * @short_description: Generated C code for the org.freedesktop.impl.portal.PermissionStore D-Bus interface
 *
 * This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-impl-portal-PermissionStore.top_of_page">org.freedesktop.impl.portal.PermissionStore</link> D-Bus interface in C.
 */

/* ---- Introspection data for org.freedesktop.impl.portal.PermissionStore ---- */

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_IN_ARG_table.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_IN_ARG_id.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_OUT_ARG_permissions =
{
  {
    -1,
    (gchar *) "permissions",
    (gchar *) "a{sas}",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_OUT_ARG_data =
{
  {
    -1,
    (gchar *) "data",
    (gchar *) "v",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_OUT_ARG_permissions.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_OUT_ARG_data.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_lookup =
{
  {
    -1,
    (gchar *) "Lookup",
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_lookup_OUT_ARG_pointers,
    NULL
  },
  "handle-lookup",
  FALSE
};

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_create =
{
  {
    -1,
    (gchar *) "create",
    (gchar *) "b",
    NULL
  },
  FALSE
};

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_app_permissions =
{
  {
    -1,
    (gchar *) "app_permissions",
    (gchar *) "a{sas}",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_data =
{
  {
    -1,
    (gchar *) "data",
    (gchar *) "v",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_table.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_create.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_id.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_app_permissions.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_data.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set =
{
  {
    -1,
    (gchar *) "Set",
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-set",
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_delete_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_delete_IN_ARG_table.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_delete_IN_ARG_id.parent_struct,
  NULL
};

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

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set_value_IN_ARG_create =
{
  {
    -1,
    (gchar *) "create",
    (gchar *) "b",
    NULL
  },
  FALSE
};

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set_value_IN_ARG_data =
{
  {
    -1,
    (gchar *) "data",
    (gchar *) "v",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_set_value_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_value_IN_ARG_table.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_value_IN_ARG_create.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_value_IN_ARG_id.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_value_IN_ARG_data.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set_value =
{
  {
    -1,
    (gchar *) "SetValue",
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_value_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-set-value",
  FALSE
};

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission_IN_ARG_create =
{
  {
    -1,
    (gchar *) "create",
    (gchar *) "b",
    NULL
  },
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission_IN_ARG_table.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission_IN_ARG_create.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission_IN_ARG_id.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission_IN_ARG_app.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission_IN_ARG_permissions.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission =
{
  {
    -1,
    (gchar *) "SetPermission",
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-set-permission",
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_delete_permission_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_delete_permission_IN_ARG_table.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_delete_permission_IN_ARG_id.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_delete_permission_IN_ARG_app.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_delete_permission =
{
  {
    -1,
    (gchar *) "DeletePermission",
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_delete_permission_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-delete-permission",
  FALSE
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_list_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_list_IN_ARG_table.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_list_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_list_OUT_ARG_ids.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_impl_portal_permission_store_method_info_list =
{
  {
    -1,
    (gchar *) "List",
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_list_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_list_OUT_ARG_pointers,
    NULL
  },
  "handle-list",
  FALSE
};

static const GDBusMethodInfo * const _doc_org_freedesktop_impl_portal_permission_store_method_info_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_lookup.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_delete.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_value.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_set_permission.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_delete_permission.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_method_info_list.parent_struct,
  NULL
};

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

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_deleted =
{
  {
    -1,
    (gchar *) "deleted",
    (gchar *) "b",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_data =
{
  {
    -1,
    (gchar *) "data",
    (gchar *) "v",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_permissions =
{
  {
    -1,
    (gchar *) "permissions",
    (gchar *) "a{sas}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_table.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_id.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_deleted.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_data.parent_struct,
  &_doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_permissions.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_impl_portal_permission_store_signal_info_changed =
{
  {
    -1,
    (gchar *) "Changed",
    (GDBusArgInfo **) &_doc_org_freedesktop_impl_portal_permission_store_signal_info_changed_ARG_pointers,
    NULL
  },
  "changed"
};

static const GDBusSignalInfo * const _doc_org_freedesktop_impl_portal_permission_store_signal_info_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_signal_info_changed.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _doc_org_freedesktop_impl_portal_permission_store_property_info_version =
{
  {
    -1,
    (gchar *) "version",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "version",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _doc_org_freedesktop_impl_portal_permission_store_property_info_pointers[] =
{
  &_doc_org_freedesktop_impl_portal_permission_store_property_info_version.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_impl_portal_permission_store_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.impl.portal.PermissionStore",
    (GDBusMethodInfo **) &_doc_org_freedesktop_impl_portal_permission_store_method_info_pointers,
    (GDBusSignalInfo **) &_doc_org_freedesktop_impl_portal_permission_store_signal_info_pointers,
    (GDBusPropertyInfo **) &_doc_org_freedesktop_impl_portal_permission_store_property_info_pointers,
    NULL
  },
  "org-freedesktop-impl-portal-permission-store",
};


/**
 * doc_org_freedesktop_impl_portal_permission_store_interface_info:
 *
 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-impl-portal-PermissionStore.top_of_page">org.freedesktop.impl.portal.PermissionStore</link> D-Bus interface.
 *
 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
 */
GDBusInterfaceInfo *
doc_org_freedesktop_impl_portal_permission_store_interface_info (void)
{
  return (GDBusInterfaceInfo *) &_doc_org_freedesktop_impl_portal_permission_store_interface_info.parent_struct;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_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 #docOrgFreedesktopImplPortalPermissionStore interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_impl_portal_permission_store_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "version");
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopImplPortalPermissionStore:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-impl-portal-PermissionStore.top_of_page">org.freedesktop.impl.portal.PermissionStore</link>.
 */

/**
 * docOrgFreedesktopImplPortalPermissionStoreIface:
 * @parent_iface: The parent interface.
 * @handle_delete: Handler for the #docOrgFreedesktopImplPortalPermissionStore::handle-delete signal.
 * @handle_delete_permission: Handler for the #docOrgFreedesktopImplPortalPermissionStore::handle-delete-permission signal.
 * @handle_list: Handler for the #docOrgFreedesktopImplPortalPermissionStore::handle-list signal.
 * @handle_lookup: Handler for the #docOrgFreedesktopImplPortalPermissionStore::handle-lookup signal.
 * @handle_set: Handler for the #docOrgFreedesktopImplPortalPermissionStore::handle-set signal.
 * @handle_set_permission: Handler for the #docOrgFreedesktopImplPortalPermissionStore::handle-set-permission signal.
 * @handle_set_value: Handler for the #docOrgFreedesktopImplPortalPermissionStore::handle-set-value signal.
 * @get_version: Getter for the #docOrgFreedesktopImplPortalPermissionStore:version property.
 * @changed: Handler for the #docOrgFreedesktopImplPortalPermissionStore::changed signal.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-impl-portal-PermissionStore.top_of_page">org.freedesktop.impl.portal.PermissionStore</link>.
 */

typedef docOrgFreedesktopImplPortalPermissionStoreIface docOrgFreedesktopImplPortalPermissionStoreInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopImplPortalPermissionStore, doc_org_freedesktop_impl_portal_permission_store, G_TYPE_OBJECT)

static void
doc_org_freedesktop_impl_portal_permission_store_default_init (docOrgFreedesktopImplPortalPermissionStoreIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopImplPortalPermissionStore::handle-lookup:
   * @object: A #docOrgFreedesktopImplPortalPermissionStore.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_table: Argument passed by remote caller.
   * @arg_id: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.Lookup">Lookup()</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 doc_org_freedesktop_impl_portal_permission_store_complete_lookup() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-lookup",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopImplPortalPermissionStoreIface, handle_lookup),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopImplPortalPermissionStore::handle-set:
   * @object: A #docOrgFreedesktopImplPortalPermissionStore.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_table: Argument passed by remote caller.
   * @arg_create: Argument passed by remote caller.
   * @arg_id: Argument passed by remote caller.
   * @arg_app_permissions: Argument passed by remote caller.
   * @arg_data: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.Set">Set()</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 doc_org_freedesktop_impl_portal_permission_store_complete_set() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-set",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopImplPortalPermissionStoreIface, handle_set),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_VARIANT);

  /**
   * docOrgFreedesktopImplPortalPermissionStore::handle-delete:
   * @object: A #docOrgFreedesktopImplPortalPermissionStore.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_table: Argument passed by remote caller.
   * @arg_id: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.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 doc_org_freedesktop_impl_portal_permission_store_complete_delete() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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 (docOrgFreedesktopImplPortalPermissionStoreIface, handle_delete),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopImplPortalPermissionStore::handle-set-value:
   * @object: A #docOrgFreedesktopImplPortalPermissionStore.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_table: Argument passed by remote caller.
   * @arg_create: Argument passed by remote caller.
   * @arg_id: Argument passed by remote caller.
   * @arg_data: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.SetValue">SetValue()</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 doc_org_freedesktop_impl_portal_permission_store_complete_set_value() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-set-value",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopImplPortalPermissionStoreIface, handle_set_value),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_VARIANT);

  /**
   * docOrgFreedesktopImplPortalPermissionStore::handle-set-permission:
   * @object: A #docOrgFreedesktopImplPortalPermissionStore.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_table: Argument passed by remote caller.
   * @arg_create: Argument passed by remote caller.
   * @arg_id: Argument passed by remote caller.
   * @arg_app: Argument passed by remote caller.
   * @arg_permissions: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.SetPermission">SetPermission()</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 doc_org_freedesktop_impl_portal_permission_store_complete_set_permission() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-set-permission",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopImplPortalPermissionStoreIface, handle_set_permission),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);

  /**
   * docOrgFreedesktopImplPortalPermissionStore::handle-delete-permission:
   * @object: A #docOrgFreedesktopImplPortalPermissionStore.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_table: Argument passed by remote caller.
   * @arg_id: Argument passed by remote caller.
   * @arg_app: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.DeletePermission">DeletePermission()</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 doc_org_freedesktop_impl_portal_permission_store_complete_delete_permission() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-permission",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopImplPortalPermissionStoreIface, handle_delete_permission),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);

  /**
   * docOrgFreedesktopImplPortalPermissionStore::handle-list:
   * @object: A #docOrgFreedesktopImplPortalPermissionStore.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_table: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.List">List()</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 doc_org_freedesktop_impl_portal_permission_store_complete_list() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopImplPortalPermissionStoreIface, handle_list),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    2,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);

  /* GObject signals for received D-Bus signals: */
  /**
   * docOrgFreedesktopImplPortalPermissionStore::changed:
   * @object: A #docOrgFreedesktopImplPortalPermissionStore.
   * @arg_table: Argument.
   * @arg_id: Argument.
   * @arg_deleted: Argument.
   * @arg_data: Argument.
   * @arg_permissions: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-impl-portal-PermissionStore.Changed">"Changed"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("changed",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopImplPortalPermissionStoreIface, changed),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    5, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_VARIANT, G_TYPE_VARIANT);

  /* GObject properties for D-Bus properties: */
  /**
   * docOrgFreedesktopImplPortalPermissionStore:version:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-impl-portal-PermissionStore.version">"version"</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 ("version", "version", "version", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_get_version: (skip)
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 *
 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-impl-portal-PermissionStore.version">"version"</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 
doc_org_freedesktop_impl_portal_permission_store_get_version (docOrgFreedesktopImplPortalPermissionStore *object)
{
  return DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_GET_IFACE (object)->get_version (object);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_set_version: (skip)
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-freedesktop-impl-portal-PermissionStore.version">"version"</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
doc_org_freedesktop_impl_portal_permission_store_set_version (docOrgFreedesktopImplPortalPermissionStore *object, guint value)
{
  g_object_set (G_OBJECT (object), "version", value, NULL);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_emit_changed:
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @arg_table: Argument to pass with the signal.
 * @arg_id: Argument to pass with the signal.
 * @arg_deleted: Argument to pass with the signal.
 * @arg_data: Argument to pass with the signal.
 * @arg_permissions: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-impl-portal-PermissionStore.Changed">"Changed"</link> D-Bus signal.
 */
void
doc_org_freedesktop_impl_portal_permission_store_emit_changed (
    docOrgFreedesktopImplPortalPermissionStore *object,
    const gchar *arg_table,
    const gchar *arg_id,
    gboolean arg_deleted,
    GVariant *arg_data,
    GVariant *arg_permissions)
{
  g_signal_emit_by_name (object, "changed", arg_table, arg_id, arg_deleted, arg_data, arg_permissions);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_lookup:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_id: 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-freedesktop-impl-portal-PermissionStore.Lookup">Lookup()</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 doc_org_freedesktop_impl_portal_permission_store_call_lookup_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_lookup_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_impl_portal_permission_store_call_lookup (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    const gchar *arg_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Lookup",
    g_variant_new ("(ss)",
                   arg_table,
                   arg_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_lookup_finish:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @out_permissions: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_data: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_call_lookup().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_call_lookup().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_lookup_finish (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    GVariant **out_permissions,
    GVariant **out_data,
    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{sas}@v)",
                 out_permissions,
                 out_data);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_lookup_sync:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @out_permissions: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_data: (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-freedesktop-impl-portal-PermissionStore.Lookup">Lookup()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_lookup() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_lookup_sync (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    const gchar *arg_id,
    GVariant **out_permissions,
    GVariant **out_data,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Lookup",
    g_variant_new ("(ss)",
                   arg_table,
                   arg_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@a{sas}@v)",
                 out_permissions,
                 out_data);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_create: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @arg_app_permissions: Argument to pass with the method invocation.
 * @arg_data: 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-freedesktop-impl-portal-PermissionStore.Set">Set()</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 doc_org_freedesktop_impl_portal_permission_store_call_set_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_set_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_impl_portal_permission_store_call_set (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    gboolean arg_create,
    const gchar *arg_id,
    GVariant *arg_app_permissions,
    GVariant *arg_data,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Set",
    g_variant_new ("(sbs@a{sas}@v)",
                   arg_table,
                   arg_create,
                   arg_id,
                   arg_app_permissions,
                   arg_data),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set_finish:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_call_set().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_call_set().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_set_finish (
    docOrgFreedesktopImplPortalPermissionStore *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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set_sync:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_create: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @arg_app_permissions: Argument to pass with the method invocation.
 * @arg_data: 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-freedesktop-impl-portal-PermissionStore.Set">Set()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_set() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_set_sync (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    gboolean arg_create,
    const gchar *arg_id,
    GVariant *arg_app_permissions,
    GVariant *arg_data,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Set",
    g_variant_new ("(sbs@a{sas}@v)",
                   arg_table,
                   arg_create,
                   arg_id,
                   arg_app_permissions,
                   arg_data),
    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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_delete:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_id: 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-freedesktop-impl-portal-PermissionStore.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 doc_org_freedesktop_impl_portal_permission_store_call_delete_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_delete_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_impl_portal_permission_store_call_delete (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    const gchar *arg_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Delete",
    g_variant_new ("(ss)",
                   arg_table,
                   arg_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_delete_finish:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_call_delete().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_call_delete().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_delete_finish (
    docOrgFreedesktopImplPortalPermissionStore *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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_delete_sync:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_id: 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-freedesktop-impl-portal-PermissionStore.Delete">Delete()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_delete() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_delete_sync (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    const gchar *arg_id,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Delete",
    g_variant_new ("(ss)",
                   arg_table,
                   arg_id),
    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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set_value:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_create: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @arg_data: 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-freedesktop-impl-portal-PermissionStore.SetValue">SetValue()</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 doc_org_freedesktop_impl_portal_permission_store_call_set_value_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_set_value_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_impl_portal_permission_store_call_set_value (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    gboolean arg_create,
    const gchar *arg_id,
    GVariant *arg_data,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SetValue",
    g_variant_new ("(sbs@v)",
                   arg_table,
                   arg_create,
                   arg_id,
                   arg_data),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set_value_finish:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_call_set_value().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_call_set_value().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_set_value_finish (
    docOrgFreedesktopImplPortalPermissionStore *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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set_value_sync:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_create: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @arg_data: 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-freedesktop-impl-portal-PermissionStore.SetValue">SetValue()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_set_value() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_set_value_sync (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    gboolean arg_create,
    const gchar *arg_id,
    GVariant *arg_data,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "SetValue",
    g_variant_new ("(sbs@v)",
                   arg_table,
                   arg_create,
                   arg_id,
                   arg_data),
    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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set_permission:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_create: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @arg_app: Argument to pass with the method invocation.
 * @arg_permissions: 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-freedesktop-impl-portal-PermissionStore.SetPermission">SetPermission()</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 doc_org_freedesktop_impl_portal_permission_store_call_set_permission_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_set_permission_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_impl_portal_permission_store_call_set_permission (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    gboolean arg_create,
    const gchar *arg_id,
    const gchar *arg_app,
    const gchar *const *arg_permissions,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SetPermission",
    g_variant_new ("(sbss^as)",
                   arg_table,
                   arg_create,
                   arg_id,
                   arg_app,
                   arg_permissions),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set_permission_finish:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_call_set_permission().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_call_set_permission().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_set_permission_finish (
    docOrgFreedesktopImplPortalPermissionStore *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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_set_permission_sync:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_create: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @arg_app: Argument to pass with the method invocation.
 * @arg_permissions: 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-freedesktop-impl-portal-PermissionStore.SetPermission">SetPermission()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_set_permission() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_set_permission_sync (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    gboolean arg_create,
    const gchar *arg_id,
    const gchar *arg_app,
    const gchar *const *arg_permissions,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "SetPermission",
    g_variant_new ("(sbss^as)",
                   arg_table,
                   arg_create,
                   arg_id,
                   arg_app,
                   arg_permissions),
    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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_delete_permission:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @arg_app: 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-freedesktop-impl-portal-PermissionStore.DeletePermission">DeletePermission()</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 doc_org_freedesktop_impl_portal_permission_store_call_delete_permission_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_delete_permission_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_impl_portal_permission_store_call_delete_permission (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    const gchar *arg_id,
    const gchar *arg_app,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "DeletePermission",
    g_variant_new ("(sss)",
                   arg_table,
                   arg_id,
                   arg_app),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_delete_permission_finish:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_call_delete_permission().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_call_delete_permission().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_delete_permission_finish (
    docOrgFreedesktopImplPortalPermissionStore *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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_delete_permission_sync:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @arg_id: Argument to pass with the method invocation.
 * @arg_app: 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-freedesktop-impl-portal-PermissionStore.DeletePermission">DeletePermission()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_delete_permission() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_delete_permission_sync (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    const gchar *arg_id,
    const gchar *arg_app,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "DeletePermission",
    g_variant_new ("(sss)",
                   arg_table,
                   arg_id,
                   arg_app),
    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;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_list:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: 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-freedesktop-impl-portal-PermissionStore.List">List()</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 doc_org_freedesktop_impl_portal_permission_store_call_list_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_list_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_impl_portal_permission_store_call_list (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "List",
    g_variant_new ("(s)",
                   arg_table),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_list_finish:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @out_ids: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_call_list().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_call_list().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_list_finish (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    gchar ***out_ids,
    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,
                 "(^as)",
                 out_ids);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_call_list_sync:
 * @proxy: A #docOrgFreedesktopImplPortalPermissionStoreProxy.
 * @arg_table: Argument to pass with the method invocation.
 * @out_ids: (out) (optional) (array zero-terminated=1): 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-freedesktop-impl-portal-PermissionStore.List">List()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_call_list() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_impl_portal_permission_store_call_list_sync (
    docOrgFreedesktopImplPortalPermissionStore *proxy,
    const gchar *arg_table,
    gchar ***out_ids,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "List",
    g_variant_new ("(s)",
                   arg_table),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(^as)",
                 out_ids);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_complete_lookup:
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @permissions: Parameter to return.
 * @data: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.Lookup">Lookup()</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
doc_org_freedesktop_impl_portal_permission_store_complete_lookup (
    docOrgFreedesktopImplPortalPermissionStore *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *permissions,
    GVariant *data)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@a{sas}@v)",
                   permissions,
                   data));
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_complete_set:
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.Set">Set()</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
doc_org_freedesktop_impl_portal_permission_store_complete_set (
    docOrgFreedesktopImplPortalPermissionStore *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_complete_delete:
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.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
doc_org_freedesktop_impl_portal_permission_store_complete_delete (
    docOrgFreedesktopImplPortalPermissionStore *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_complete_set_value:
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.SetValue">SetValue()</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
doc_org_freedesktop_impl_portal_permission_store_complete_set_value (
    docOrgFreedesktopImplPortalPermissionStore *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_complete_set_permission:
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.SetPermission">SetPermission()</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
doc_org_freedesktop_impl_portal_permission_store_complete_set_permission (
    docOrgFreedesktopImplPortalPermissionStore *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_complete_delete_permission:
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.DeletePermission">DeletePermission()</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
doc_org_freedesktop_impl_portal_permission_store_complete_delete_permission (
    docOrgFreedesktopImplPortalPermissionStore *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_complete_list:
 * @object: A #docOrgFreedesktopImplPortalPermissionStore.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @ids: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-impl-portal-PermissionStore.List">List()</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
doc_org_freedesktop_impl_portal_permission_store_complete_list (
    docOrgFreedesktopImplPortalPermissionStore *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *const *ids)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(^as)",
                   ids));
}

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

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

/**
 * docOrgFreedesktopImplPortalPermissionStoreProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopImplPortalPermissionStoreProxy.
 */

struct _docOrgFreedesktopImplPortalPermissionStoreProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_impl_portal_permission_store_proxy_iface_init (docOrgFreedesktopImplPortalPermissionStoreIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopImplPortalPermissionStoreProxy, doc_org_freedesktop_impl_portal_permission_store_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopImplPortalPermissionStoreProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE, doc_org_freedesktop_impl_portal_permission_store_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopImplPortalPermissionStoreProxy, doc_org_freedesktop_impl_portal_permission_store_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE, doc_org_freedesktop_impl_portal_permission_store_proxy_iface_init))

#endif
static void
doc_org_freedesktop_impl_portal_permission_store_proxy_finalize (GObject *object)
{
  docOrgFreedesktopImplPortalPermissionStoreProxy *proxy = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_impl_portal_permission_store_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_impl_portal_permission_store_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_impl_portal_permission_store_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
doc_org_freedesktop_impl_portal_permission_store_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.freedesktop.impl.portal.PermissionStore: %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
doc_org_freedesktop_impl_portal_permission_store_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_impl_portal_permission_store_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.freedesktop.impl.portal.PermissionStore", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) doc_org_freedesktop_impl_portal_permission_store_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
doc_org_freedesktop_impl_portal_permission_store_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 *) &_doc_org_freedesktop_impl_portal_permission_store_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], DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE);
  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, DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE);
  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
doc_org_freedesktop_impl_portal_permission_store_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopImplPortalPermissionStoreProxy *proxy = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_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 *) &_doc_org_freedesktop_impl_portal_permission_store_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 *) &_doc_org_freedesktop_impl_portal_permission_store_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 
doc_org_freedesktop_impl_portal_permission_store_proxy_get_version (docOrgFreedesktopImplPortalPermissionStore *object)
{
  docOrgFreedesktopImplPortalPermissionStoreProxy *proxy = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "version");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
doc_org_freedesktop_impl_portal_permission_store_proxy_init (docOrgFreedesktopImplPortalPermissionStoreProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_impl_portal_permission_store_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_PROXY, docOrgFreedesktopImplPortalPermissionStoreProxyPrivate);
#endif

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

static void
doc_org_freedesktop_impl_portal_permission_store_proxy_class_init (docOrgFreedesktopImplPortalPermissionStoreProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_impl_portal_permission_store_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_impl_portal_permission_store_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_impl_portal_permission_store_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_impl_portal_permission_store_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_impl_portal_permission_store_proxy_g_properties_changed;

  doc_org_freedesktop_impl_portal_permission_store_override_properties (gobject_class, 1);

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

static void
doc_org_freedesktop_impl_portal_permission_store_proxy_iface_init (docOrgFreedesktopImplPortalPermissionStoreIface *iface)
{
  iface->get_version = doc_org_freedesktop_impl_portal_permission_store_proxy_get_version;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_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-freedesktop-impl-portal-PermissionStore.top_of_page">org.freedesktop.impl.portal.PermissionStore</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 doc_org_freedesktop_impl_portal_permission_store_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_impl_portal_permission_store_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 (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_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.freedesktop.impl.portal.PermissionStore", NULL);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopImplPortalPermissionStoreProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopImplPortalPermissionStore *
doc_org_freedesktop_impl_portal_permission_store_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 DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_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-freedesktop-impl-portal-PermissionStore.top_of_page">org.freedesktop.impl.portal.PermissionStore</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopImplPortalPermissionStoreProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopImplPortalPermissionStore *
doc_org_freedesktop_impl_portal_permission_store_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.impl.portal.PermissionStore", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_impl_portal_permission_store_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 doc_org_freedesktop_impl_portal_permission_store_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 doc_org_freedesktop_impl_portal_permission_store_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_impl_portal_permission_store_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 (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_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.freedesktop.impl.portal.PermissionStore", NULL);
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_impl_portal_permission_store_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_impl_portal_permission_store_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopImplPortalPermissionStoreProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopImplPortalPermissionStore *
doc_org_freedesktop_impl_portal_permission_store_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 DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_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 doc_org_freedesktop_impl_portal_permission_store_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_impl_portal_permission_store_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopImplPortalPermissionStoreProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopImplPortalPermissionStore *
doc_org_freedesktop_impl_portal_permission_store_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 (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.impl.portal.PermissionStore", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopImplPortalPermissionStoreSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopImplPortalPermissionStoreSkeleton.
 */

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

static void
_doc_org_freedesktop_impl_portal_permission_store_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)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_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], DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE);
  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, DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE);
  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 *
_doc_org_freedesktop_impl_portal_permission_store_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)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_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 *) &_doc_org_freedesktop_impl_portal_permission_store_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
_doc_org_freedesktop_impl_portal_permission_store_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)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_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 *) &_doc_org_freedesktop_impl_portal_permission_store_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 _doc_org_freedesktop_impl_portal_permission_store_skeleton_vtable =
{
  _doc_org_freedesktop_impl_portal_permission_store_skeleton_handle_method_call,
  _doc_org_freedesktop_impl_portal_permission_store_skeleton_handle_get_property,
  _doc_org_freedesktop_impl_portal_permission_store_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_impl_portal_permission_store_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_impl_portal_permission_store_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_impl_portal_permission_store_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_impl_portal_permission_store_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_impl_portal_permission_store_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_impl_portal_permission_store_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_impl_portal_permission_store_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_impl_portal_permission_store_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_impl_portal_permission_store_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.freedesktop.impl.portal.PermissionStore", 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 _doc_org_freedesktop_impl_portal_permission_store_emit_changed (gpointer user_data);

static void
doc_org_freedesktop_impl_portal_permission_store_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_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)
    _doc_org_freedesktop_impl_portal_permission_store_emit_changed (skeleton);
}

static void
_doc_org_freedesktop_impl_portal_permission_store_on_signal_changed (
    docOrgFreedesktopImplPortalPermissionStore *object,
    const gchar *arg_table,
    const gchar *arg_id,
    gboolean arg_deleted,
    GVariant *arg_data,
    GVariant *arg_permissions)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(ssb@v@a{sas})",
                   arg_table,
                   arg_id,
                   arg_deleted,
                   arg_data,
                   arg_permissions));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.impl.portal.PermissionStore", "Changed",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void doc_org_freedesktop_impl_portal_permission_store_skeleton_iface_init (docOrgFreedesktopImplPortalPermissionStoreIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopImplPortalPermissionStoreSkeleton, doc_org_freedesktop_impl_portal_permission_store_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopImplPortalPermissionStoreSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE, doc_org_freedesktop_impl_portal_permission_store_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopImplPortalPermissionStoreSkeleton, doc_org_freedesktop_impl_portal_permission_store_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE, doc_org_freedesktop_impl_portal_permission_store_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_impl_portal_permission_store_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_SKELETON (object);
  guint n;
  for (n = 0; n < 1; 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 (doc_org_freedesktop_impl_portal_permission_store_skeleton_parent_class)->finalize (object);
}

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

static gboolean
_doc_org_freedesktop_impl_portal_permission_store_emit_changed (gpointer user_data)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
  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.freedesktop.impl.portal.PermissionStore",
                                           &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
_doc_org_freedesktop_impl_portal_permission_store_schedule_emit_changed (docOrgFreedesktopImplPortalPermissionStoreSkeleton *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
doc_org_freedesktop_impl_portal_permission_store_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_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, _doc_org_freedesktop_impl_portal_permission_store_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _doc_org_freedesktop_impl_portal_permission_store_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
doc_org_freedesktop_impl_portal_permission_store_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_impl_portal_permission_store_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)
        _doc_org_freedesktop_impl_portal_permission_store_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
doc_org_freedesktop_impl_portal_permission_store_skeleton_init (docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_impl_portal_permission_store_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_SKELETON, docOrgFreedesktopImplPortalPermissionStoreSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 1);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
}

static guint 
doc_org_freedesktop_impl_portal_permission_store_skeleton_get_version (docOrgFreedesktopImplPortalPermissionStore *object)
{
  docOrgFreedesktopImplPortalPermissionStoreSkeleton *skeleton = DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_value_get_uint (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
doc_org_freedesktop_impl_portal_permission_store_skeleton_class_init (docOrgFreedesktopImplPortalPermissionStoreSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_impl_portal_permission_store_skeleton_finalize;
  gobject_class->get_property = doc_org_freedesktop_impl_portal_permission_store_skeleton_get_property;
  gobject_class->set_property = doc_org_freedesktop_impl_portal_permission_store_skeleton_set_property;
  gobject_class->notify       = doc_org_freedesktop_impl_portal_permission_store_skeleton_notify;


  doc_org_freedesktop_impl_portal_permission_store_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_impl_portal_permission_store_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_impl_portal_permission_store_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_impl_portal_permission_store_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_impl_portal_permission_store_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_impl_portal_permission_store_skeleton_iface_init (docOrgFreedesktopImplPortalPermissionStoreIface *iface)
{
  iface->changed = _doc_org_freedesktop_impl_portal_permission_store_on_signal_changed;
  iface->get_version = doc_org_freedesktop_impl_portal_permission_store_skeleton_get_version;
}

/**
 * doc_org_freedesktop_impl_portal_permission_store_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-impl-portal-PermissionStore.top_of_page">org.freedesktop.impl.portal.PermissionStore</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopImplPortalPermissionStoreSkeleton): The skeleton object.
 */
docOrgFreedesktopImplPortalPermissionStore *
doc_org_freedesktop_impl_portal_permission_store_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_IMPL_PORTAL_PERMISSION_STORE_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.portal.Documents
 * ------------------------------------------------------------------------
 */

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

/* ---- Introspection data for org.freedesktop.portal.Documents ---- */

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_get_mount_point_OUT_ARG_path =
{
  {
    -1,
    (gchar *) "path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_get_mount_point_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_get_mount_point_OUT_ARG_path.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_get_mount_point =
{
  {
    -1,
    (gchar *) "GetMountPoint",
    NULL,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_get_mount_point_OUT_ARG_pointers,
    NULL
  },
  "handle-get-mount-point",
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_IN_ARG_o_path_fd =
{
  {
    -1,
    (gchar *) "o_path_fd",
    (gchar *) "h",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_IN_ARG_reuse_existing =
{
  {
    -1,
    (gchar *) "reuse_existing",
    (gchar *) "b",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_IN_ARG_persistent =
{
  {
    -1,
    (gchar *) "persistent",
    (gchar *) "b",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_add_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_add_IN_ARG_o_path_fd.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_IN_ARG_reuse_existing.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_IN_ARG_persistent.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_add_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_add_OUT_ARG_doc_id.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_add =
{
  {
    -1,
    (gchar *) "Add",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_add_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_add_OUT_ARG_pointers,
    NULL
  },
  "handle-add",
  TRUE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_o_path_parent_fd =
{
  {
    -1,
    (gchar *) "o_path_parent_fd",
    (gchar *) "h",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_filename =
{
  {
    -1,
    (gchar *) "filename",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_reuse_existing =
{
  {
    -1,
    (gchar *) "reuse_existing",
    (gchar *) "b",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_persistent =
{
  {
    -1,
    (gchar *) "persistent",
    (gchar *) "b",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_o_path_parent_fd.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_filename.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_reuse_existing.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_persistent.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_add_named_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_add_named_OUT_ARG_doc_id.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_add_named =
{
  {
    -1,
    (gchar *) "AddNamed",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_add_named_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_add_named_OUT_ARG_pointers,
    NULL
  },
  "handle-add-named",
  TRUE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_full_IN_ARG_o_path_fds =
{
  {
    -1,
    (gchar *) "o_path_fds",
    (gchar *) "ah",
    NULL
  },
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_add_full_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_add_full_IN_ARG_o_path_fds.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_full_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_full_IN_ARG_app_id.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_full_IN_ARG_permissions.parent_struct,
  NULL
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_add_full_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_add_full_OUT_ARG_doc_ids.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_full_OUT_ARG_extra_out.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_add_full =
{
  {
    -1,
    (gchar *) "AddFull",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_add_full_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_add_full_OUT_ARG_pointers,
    NULL
  },
  "handle-add-full",
  TRUE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_o_path_fd =
{
  {
    -1,
    (gchar *) "o_path_fd",
    (gchar *) "h",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_filename =
{
  {
    -1,
    (gchar *) "filename",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_o_path_fd.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_filename.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_app_id.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_permissions.parent_struct,
  NULL
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_add_named_full_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_add_named_full_OUT_ARG_doc_id.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_full_OUT_ARG_extra_out.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_add_named_full =
{
  {
    -1,
    (gchar *) "AddNamedFull",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_add_named_full_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_add_named_full_OUT_ARG_pointers,
    NULL
  },
  "handle-add-named-full",
  TRUE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_grant_permissions_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_grant_permissions_IN_ARG_doc_id.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_grant_permissions_IN_ARG_app_id.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_grant_permissions_IN_ARG_permissions.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_grant_permissions =
{
  {
    -1,
    (gchar *) "GrantPermissions",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_grant_permissions_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-grant-permissions",
  FALSE
};

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

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_revoke_permissions_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_revoke_permissions_IN_ARG_doc_id.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_revoke_permissions_IN_ARG_app_id.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_revoke_permissions_IN_ARG_permissions.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_revoke_permissions =
{
  {
    -1,
    (gchar *) "RevokePermissions",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_revoke_permissions_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-revoke-permissions",
  FALSE
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_delete_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_delete_IN_ARG_doc_id.parent_struct,
  NULL
};

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_lookup_IN_ARG_filename =
{
  {
    -1,
    (gchar *) "filename",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_lookup_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_lookup_IN_ARG_filename.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_lookup_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_lookup_OUT_ARG_doc_id.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_lookup =
{
  {
    -1,
    (gchar *) "Lookup",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_lookup_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_lookup_OUT_ARG_pointers,
    NULL
  },
  "handle-lookup",
  FALSE
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_info_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_info_IN_ARG_doc_id.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_info_OUT_ARG_path =
{
  {
    -1,
    (gchar *) "path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_info_OUT_ARG_apps =
{
  {
    -1,
    (gchar *) "apps",
    (gchar *) "a{sas}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_info_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_info_OUT_ARG_path.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_info_OUT_ARG_apps.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_info =
{
  {
    -1,
    (gchar *) "Info",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_info_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_info_OUT_ARG_pointers,
    NULL
  },
  "handle-info",
  FALSE
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_list_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_list_IN_ARG_app_id.parent_struct,
  NULL
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_documents_method_info_list_OUT_ARG_docs =
{
  {
    -1,
    (gchar *) "docs",
    (gchar *) "a{say}",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_portal_documents_method_info_list_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_list_OUT_ARG_docs.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_documents_method_info_list =
{
  {
    -1,
    (gchar *) "List",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_list_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_documents_method_info_list_OUT_ARG_pointers,
    NULL
  },
  "handle-list",
  FALSE
};

static const GDBusMethodInfo * const _doc_org_freedesktop_portal_documents_method_info_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_method_info_get_mount_point.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_full.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_add_named_full.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_grant_permissions.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_revoke_permissions.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_delete.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_lookup.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_info.parent_struct,
  &_doc_org_freedesktop_portal_documents_method_info_list.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _doc_org_freedesktop_portal_documents_property_info_version =
{
  {
    -1,
    (gchar *) "version",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "version",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _doc_org_freedesktop_portal_documents_property_info_pointers[] =
{
  &_doc_org_freedesktop_portal_documents_property_info_version.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_portal_documents_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.portal.Documents",
    (GDBusMethodInfo **) &_doc_org_freedesktop_portal_documents_method_info_pointers,
    NULL,
    (GDBusPropertyInfo **) &_doc_org_freedesktop_portal_documents_property_info_pointers,
    NULL
  },
  "org-freedesktop-portal-documents",
};


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

/**
 * doc_org_freedesktop_portal_documents_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 #docOrgFreedesktopPortalDocuments interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_portal_documents_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "version");
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopPortalDocuments:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Documents.top_of_page">org.freedesktop.portal.Documents</link>.
 */

/**
 * docOrgFreedesktopPortalDocumentsIface:
 * @parent_iface: The parent interface.
 * @handle_add: Handler for the #docOrgFreedesktopPortalDocuments::handle-add signal.
 * @handle_add_full: Handler for the #docOrgFreedesktopPortalDocuments::handle-add-full signal.
 * @handle_add_named: Handler for the #docOrgFreedesktopPortalDocuments::handle-add-named signal.
 * @handle_add_named_full: Handler for the #docOrgFreedesktopPortalDocuments::handle-add-named-full signal.
 * @handle_delete: Handler for the #docOrgFreedesktopPortalDocuments::handle-delete signal.
 * @handle_get_mount_point: Handler for the #docOrgFreedesktopPortalDocuments::handle-get-mount-point signal.
 * @handle_grant_permissions: Handler for the #docOrgFreedesktopPortalDocuments::handle-grant-permissions signal.
 * @handle_info: Handler for the #docOrgFreedesktopPortalDocuments::handle-info signal.
 * @handle_list: Handler for the #docOrgFreedesktopPortalDocuments::handle-list signal.
 * @handle_lookup: Handler for the #docOrgFreedesktopPortalDocuments::handle-lookup signal.
 * @handle_revoke_permissions: Handler for the #docOrgFreedesktopPortalDocuments::handle-revoke-permissions signal.
 * @get_version: Getter for the #docOrgFreedesktopPortalDocuments:version property.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Documents.top_of_page">org.freedesktop.portal.Documents</link>.
 */

typedef docOrgFreedesktopPortalDocumentsIface docOrgFreedesktopPortalDocumentsInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopPortalDocuments, doc_org_freedesktop_portal_documents, G_TYPE_OBJECT)

static void
doc_org_freedesktop_portal_documents_default_init (docOrgFreedesktopPortalDocumentsIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopPortalDocuments::handle-get-mount-point:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.GetMountPoint">GetMountPoint()</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 doc_org_freedesktop_portal_documents_complete_get_mount_point() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-mount-point",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_get_mount_point),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    1,
    G_TYPE_DBUS_METHOD_INVOCATION);

  /**
   * docOrgFreedesktopPortalDocuments::handle-add:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @fd_list: (nullable): A #GUnixFDList or %NULL.
   * @arg_o_path_fd: Argument passed by remote caller.
   * @arg_reuse_existing: Argument passed by remote caller.
   * @arg_persistent: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.Add">Add()</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 doc_org_freedesktop_portal_documents_complete_add() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-add",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_add),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    5,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_VARIANT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);

  /**
   * docOrgFreedesktopPortalDocuments::handle-add-named:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @fd_list: (nullable): A #GUnixFDList or %NULL.
   * @arg_o_path_parent_fd: Argument passed by remote caller.
   * @arg_filename: Argument passed by remote caller.
   * @arg_reuse_existing: Argument passed by remote caller.
   * @arg_persistent: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddNamed">AddNamed()</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 doc_org_freedesktop_portal_documents_complete_add_named() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-add-named",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_add_named),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);

  /**
   * docOrgFreedesktopPortalDocuments::handle-add-full:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @fd_list: (nullable): A #GUnixFDList or %NULL.
   * @arg_o_path_fds: Argument passed by remote caller.
   * @arg_flags: Argument passed by remote caller.
   * @arg_app_id: Argument passed by remote caller.
   * @arg_permissions: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddFull">AddFull()</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 doc_org_freedesktop_portal_documents_complete_add_full() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-add-full",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_add_full),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    6,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_VARIANT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRV);

  /**
   * docOrgFreedesktopPortalDocuments::handle-add-named-full:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @fd_list: (nullable): A #GUnixFDList or %NULL.
   * @arg_o_path_fd: Argument passed by remote caller.
   * @arg_filename: Argument passed by remote caller.
   * @arg_flags: Argument passed by remote caller.
   * @arg_app_id: Argument passed by remote caller.
   * @arg_permissions: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddNamedFull">AddNamedFull()</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 doc_org_freedesktop_portal_documents_complete_add_named_full() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-add-named-full",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_add_named_full),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    7,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRV);

  /**
   * docOrgFreedesktopPortalDocuments::handle-grant-permissions:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_doc_id: Argument passed by remote caller.
   * @arg_app_id: Argument passed by remote caller.
   * @arg_permissions: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.GrantPermissions">GrantPermissions()</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 doc_org_freedesktop_portal_documents_complete_grant_permissions() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-grant-permissions",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_grant_permissions),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);

  /**
   * docOrgFreedesktopPortalDocuments::handle-revoke-permissions:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_doc_id: Argument passed by remote caller.
   * @arg_app_id: Argument passed by remote caller.
   * @arg_permissions: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.RevokePermissions">RevokePermissions()</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 doc_org_freedesktop_portal_documents_complete_revoke_permissions() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-revoke-permissions",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_revoke_permissions),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRV);

  /**
   * docOrgFreedesktopPortalDocuments::handle-delete:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_doc_id: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.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 doc_org_freedesktop_portal_documents_complete_delete() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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 (docOrgFreedesktopPortalDocumentsIface, handle_delete),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    2,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);

  /**
   * docOrgFreedesktopPortalDocuments::handle-lookup:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_filename: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.Lookup">Lookup()</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 doc_org_freedesktop_portal_documents_complete_lookup() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-lookup",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_lookup),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    2,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);

  /**
   * docOrgFreedesktopPortalDocuments::handle-info:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_doc_id: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.Info">Info()</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 doc_org_freedesktop_portal_documents_complete_info() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-info",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_info),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    2,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);

  /**
   * docOrgFreedesktopPortalDocuments::handle-list:
   * @object: A #docOrgFreedesktopPortalDocuments.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_app_id: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Documents.List">List()</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 doc_org_freedesktop_portal_documents_complete_list() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalDocumentsIface, handle_list),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    2,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);

  /* GObject properties for D-Bus properties: */
  /**
   * docOrgFreedesktopPortalDocuments:version:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-portal-Documents.version">"version"</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 ("version", "version", "version", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * doc_org_freedesktop_portal_documents_get_version: (skip)
 * @object: A #docOrgFreedesktopPortalDocuments.
 *
 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-portal-Documents.version">"version"</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 
doc_org_freedesktop_portal_documents_get_version (docOrgFreedesktopPortalDocuments *object)
{
  return DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_GET_IFACE (object)->get_version (object);
}

/**
 * doc_org_freedesktop_portal_documents_set_version: (skip)
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-freedesktop-portal-Documents.version">"version"</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
doc_org_freedesktop_portal_documents_set_version (docOrgFreedesktopPortalDocuments *object, guint value)
{
  g_object_set (G_OBJECT (object), "version", value, NULL);
}

/**
 * doc_org_freedesktop_portal_documents_call_get_mount_point:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @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-freedesktop-portal-Documents.GetMountPoint">GetMountPoint()</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 doc_org_freedesktop_portal_documents_call_get_mount_point_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_get_mount_point_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_get_mount_point (
    docOrgFreedesktopPortalDocuments *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "GetMountPoint",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_get_mount_point_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @out_path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_get_mount_point().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_get_mount_point().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_get_mount_point_finish (
    docOrgFreedesktopPortalDocuments *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,
                 "(^ay)",
                 out_path);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_get_mount_point_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @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-freedesktop-portal-Documents.GetMountPoint">GetMountPoint()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_get_mount_point() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_get_mount_point_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    gchar **out_path,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "GetMountPoint",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(^ay)",
                 out_path);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_add:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_o_path_fd: Argument to pass with the method invocation.
 * @arg_reuse_existing: Argument to pass with the method invocation.
 * @arg_persistent: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @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-freedesktop-portal-Documents.Add">Add()</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 doc_org_freedesktop_portal_documents_call_add_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_add_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_add (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant *arg_o_path_fd,
    gboolean arg_reuse_existing,
    gboolean arg_persistent,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy),
    "Add",
    g_variant_new ("(@hbb)",
                   arg_o_path_fd,
                   arg_reuse_existing,
                   arg_persistent),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    cancellable,
    callback,
    user_data);
}

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

/**
 * doc_org_freedesktop_portal_documents_call_add_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_o_path_fd: Argument to pass with the method invocation.
 * @arg_reuse_existing: Argument to pass with the method invocation.
 * @arg_persistent: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @out_doc_id: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-portal-Documents.Add">Add()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_add() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_add_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant *arg_o_path_fd,
    gboolean arg_reuse_existing,
    gboolean arg_persistent,
    GUnixFDList  *fd_list,
    gchar **out_doc_id,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),
    "Add",
    g_variant_new ("(@hbb)",
                   arg_o_path_fd,
                   arg_reuse_existing,
                   arg_persistent),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    out_fd_list,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(s)",
                 out_doc_id);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_add_named:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_o_path_parent_fd: Argument to pass with the method invocation.
 * @arg_filename: Argument to pass with the method invocation.
 * @arg_reuse_existing: Argument to pass with the method invocation.
 * @arg_persistent: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @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-freedesktop-portal-Documents.AddNamed">AddNamed()</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 doc_org_freedesktop_portal_documents_call_add_named_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_add_named_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_add_named (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant *arg_o_path_parent_fd,
    const gchar *arg_filename,
    gboolean arg_reuse_existing,
    gboolean arg_persistent,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy),
    "AddNamed",
    g_variant_new ("(@h^aybb)",
                   arg_o_path_parent_fd,
                   arg_filename,
                   arg_reuse_existing,
                   arg_persistent),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    cancellable,
    callback,
    user_data);
}

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

/**
 * doc_org_freedesktop_portal_documents_call_add_named_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_o_path_parent_fd: Argument to pass with the method invocation.
 * @arg_filename: Argument to pass with the method invocation.
 * @arg_reuse_existing: Argument to pass with the method invocation.
 * @arg_persistent: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @out_doc_id: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddNamed">AddNamed()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_add_named() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_add_named_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant *arg_o_path_parent_fd,
    const gchar *arg_filename,
    gboolean arg_reuse_existing,
    gboolean arg_persistent,
    GUnixFDList  *fd_list,
    gchar **out_doc_id,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),
    "AddNamed",
    g_variant_new ("(@h^aybb)",
                   arg_o_path_parent_fd,
                   arg_filename,
                   arg_reuse_existing,
                   arg_persistent),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    out_fd_list,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(s)",
                 out_doc_id);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_add_full:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_o_path_fds: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_app_id: Argument to pass with the method invocation.
 * @arg_permissions: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @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-freedesktop-portal-Documents.AddFull">AddFull()</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 doc_org_freedesktop_portal_documents_call_add_full_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_add_full_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_add_full (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant *arg_o_path_fds,
    guint arg_flags,
    const gchar *arg_app_id,
    const gchar *const *arg_permissions,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy),
    "AddFull",
    g_variant_new ("(@ahus^as)",
                   arg_o_path_fds,
                   arg_flags,
                   arg_app_id,
                   arg_permissions),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_add_full_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @out_doc_ids: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
 * @out_extra_out: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out) (optional): Return location for a #GUnixFDList or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_add_full().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_add_full().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_add_full_finish (
    docOrgFreedesktopPortalDocuments *proxy,
    gchar ***out_doc_ids,
    GVariant **out_extra_out,
    GUnixFDList **out_fd_list,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(^as@a{sv})",
                 out_doc_ids,
                 out_extra_out);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_add_full_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_o_path_fds: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_app_id: Argument to pass with the method invocation.
 * @arg_permissions: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @out_doc_ids: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
 * @out_extra_out: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddFull">AddFull()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_add_full() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_add_full_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant *arg_o_path_fds,
    guint arg_flags,
    const gchar *arg_app_id,
    const gchar *const *arg_permissions,
    GUnixFDList  *fd_list,
    gchar ***out_doc_ids,
    GVariant **out_extra_out,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),
    "AddFull",
    g_variant_new ("(@ahus^as)",
                   arg_o_path_fds,
                   arg_flags,
                   arg_app_id,
                   arg_permissions),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    out_fd_list,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(^as@a{sv})",
                 out_doc_ids,
                 out_extra_out);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_add_named_full:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_o_path_fd: Argument to pass with the method invocation.
 * @arg_filename: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_app_id: Argument to pass with the method invocation.
 * @arg_permissions: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @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-freedesktop-portal-Documents.AddNamedFull">AddNamedFull()</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 doc_org_freedesktop_portal_documents_call_add_named_full_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_add_named_full_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_add_named_full (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant *arg_o_path_fd,
    const gchar *arg_filename,
    guint arg_flags,
    const gchar *arg_app_id,
    const gchar *const *arg_permissions,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy),
    "AddNamedFull",
    g_variant_new ("(@h^ayus^as)",
                   arg_o_path_fd,
                   arg_filename,
                   arg_flags,
                   arg_app_id,
                   arg_permissions),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_add_named_full_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @out_doc_id: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_extra_out: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out) (optional): Return location for a #GUnixFDList or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_add_named_full().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_add_named_full().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_add_named_full_finish (
    docOrgFreedesktopPortalDocuments *proxy,
    gchar **out_doc_id,
    GVariant **out_extra_out,
    GUnixFDList **out_fd_list,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(s@a{sv})",
                 out_doc_id,
                 out_extra_out);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_add_named_full_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_o_path_fd: Argument to pass with the method invocation.
 * @arg_filename: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_app_id: Argument to pass with the method invocation.
 * @arg_permissions: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @out_doc_id: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_extra_out: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddNamedFull">AddNamedFull()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_add_named_full() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_add_named_full_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant *arg_o_path_fd,
    const gchar *arg_filename,
    guint arg_flags,
    const gchar *arg_app_id,
    const gchar *const *arg_permissions,
    GUnixFDList  *fd_list,
    gchar **out_doc_id,
    GVariant **out_extra_out,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),
    "AddNamedFull",
    g_variant_new ("(@h^ayus^as)",
                   arg_o_path_fd,
                   arg_filename,
                   arg_flags,
                   arg_app_id,
                   arg_permissions),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    out_fd_list,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(s@a{sv})",
                 out_doc_id,
                 out_extra_out);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_grant_permissions:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_doc_id: Argument to pass with the method invocation.
 * @arg_app_id: Argument to pass with the method invocation.
 * @arg_permissions: 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-freedesktop-portal-Documents.GrantPermissions">GrantPermissions()</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 doc_org_freedesktop_portal_documents_call_grant_permissions_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_grant_permissions_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_grant_permissions (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_doc_id,
    const gchar *arg_app_id,
    const gchar *const *arg_permissions,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "GrantPermissions",
    g_variant_new ("(ss^as)",
                   arg_doc_id,
                   arg_app_id,
                   arg_permissions),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_grant_permissions_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_grant_permissions().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_grant_permissions().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_grant_permissions_finish (
    docOrgFreedesktopPortalDocuments *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;
}

/**
 * doc_org_freedesktop_portal_documents_call_grant_permissions_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_doc_id: Argument to pass with the method invocation.
 * @arg_app_id: Argument to pass with the method invocation.
 * @arg_permissions: 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-freedesktop-portal-Documents.GrantPermissions">GrantPermissions()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_grant_permissions() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_grant_permissions_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_doc_id,
    const gchar *arg_app_id,
    const gchar *const *arg_permissions,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "GrantPermissions",
    g_variant_new ("(ss^as)",
                   arg_doc_id,
                   arg_app_id,
                   arg_permissions),
    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;
}

/**
 * doc_org_freedesktop_portal_documents_call_revoke_permissions:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_doc_id: Argument to pass with the method invocation.
 * @arg_app_id: Argument to pass with the method invocation.
 * @arg_permissions: 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-freedesktop-portal-Documents.RevokePermissions">RevokePermissions()</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 doc_org_freedesktop_portal_documents_call_revoke_permissions_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_revoke_permissions_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_revoke_permissions (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_doc_id,
    const gchar *arg_app_id,
    const gchar *const *arg_permissions,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "RevokePermissions",
    g_variant_new ("(ss^as)",
                   arg_doc_id,
                   arg_app_id,
                   arg_permissions),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_revoke_permissions_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_revoke_permissions().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_revoke_permissions().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_revoke_permissions_finish (
    docOrgFreedesktopPortalDocuments *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;
}

/**
 * doc_org_freedesktop_portal_documents_call_revoke_permissions_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_doc_id: Argument to pass with the method invocation.
 * @arg_app_id: Argument to pass with the method invocation.
 * @arg_permissions: 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-freedesktop-portal-Documents.RevokePermissions">RevokePermissions()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_revoke_permissions() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_revoke_permissions_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_doc_id,
    const gchar *arg_app_id,
    const gchar *const *arg_permissions,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "RevokePermissions",
    g_variant_new ("(ss^as)",
                   arg_doc_id,
                   arg_app_id,
                   arg_permissions),
    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;
}

/**
 * doc_org_freedesktop_portal_documents_call_delete:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_doc_id: 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-freedesktop-portal-Documents.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 doc_org_freedesktop_portal_documents_call_delete_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_delete_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_delete (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_doc_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Delete",
    g_variant_new ("(s)",
                   arg_doc_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_delete_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_delete().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_delete().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_delete_finish (
    docOrgFreedesktopPortalDocuments *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;
}

/**
 * doc_org_freedesktop_portal_documents_call_delete_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_doc_id: 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-freedesktop-portal-Documents.Delete">Delete()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_delete() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_delete_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_doc_id,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Delete",
    g_variant_new ("(s)",
                   arg_doc_id),
    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;
}

/**
 * doc_org_freedesktop_portal_documents_call_lookup:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_filename: 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-freedesktop-portal-Documents.Lookup">Lookup()</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 doc_org_freedesktop_portal_documents_call_lookup_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_lookup_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_lookup (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_filename,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Lookup",
    g_variant_new ("(^ay)",
                   arg_filename),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_lookup_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @out_doc_id: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_lookup().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_lookup().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_lookup_finish (
    docOrgFreedesktopPortalDocuments *proxy,
    gchar **out_doc_id,
    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_doc_id);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_lookup_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_filename: Argument to pass with the method invocation.
 * @out_doc_id: (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-freedesktop-portal-Documents.Lookup">Lookup()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_lookup() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_lookup_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_filename,
    gchar **out_doc_id,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Lookup",
    g_variant_new ("(^ay)",
                   arg_filename),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(s)",
                 out_doc_id);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_info:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_doc_id: 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-freedesktop-portal-Documents.Info">Info()</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 doc_org_freedesktop_portal_documents_call_info_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_info_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_info (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_doc_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Info",
    g_variant_new ("(s)",
                   arg_doc_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_info_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @out_path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_apps: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_info().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_info().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_info_finish (
    docOrgFreedesktopPortalDocuments *proxy,
    gchar **out_path,
    GVariant **out_apps,
    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,
                 "(^ay@a{sas})",
                 out_path,
                 out_apps);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_info_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_doc_id: Argument to pass with the method invocation.
 * @out_path: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_apps: (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-freedesktop-portal-Documents.Info">Info()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_info() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_info_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_doc_id,
    gchar **out_path,
    GVariant **out_apps,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Info",
    g_variant_new ("(s)",
                   arg_doc_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(^ay@a{sas})",
                 out_path,
                 out_apps);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_list:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_app_id: 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-freedesktop-portal-Documents.List">List()</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 doc_org_freedesktop_portal_documents_call_list_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_call_list_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_documents_call_list (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_app_id,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "List",
    g_variant_new ("(s)",
                   arg_app_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_documents_call_list_finish:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @out_docs: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_call_list().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_call_list().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_list_finish (
    docOrgFreedesktopPortalDocuments *proxy,
    GVariant **out_docs,
    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{say})",
                 out_docs);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_call_list_sync:
 * @proxy: A #docOrgFreedesktopPortalDocumentsProxy.
 * @arg_app_id: Argument to pass with the method invocation.
 * @out_docs: (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-freedesktop-portal-Documents.List">List()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_call_list() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_documents_call_list_sync (
    docOrgFreedesktopPortalDocuments *proxy,
    const gchar *arg_app_id,
    GVariant **out_docs,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "List",
    g_variant_new ("(s)",
                   arg_app_id),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(@a{say})",
                 out_docs);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_documents_complete_get_mount_point:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @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-freedesktop-portal-Documents.GetMountPoint">GetMountPoint()</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
doc_org_freedesktop_portal_documents_complete_get_mount_point (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *path)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(^ay)",
                   path));
}

/**
 * doc_org_freedesktop_portal_documents_complete_add:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @doc_id: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.Add">Add()</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
doc_org_freedesktop_portal_documents_complete_add (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    const gchar *doc_id)
{
  g_dbus_method_invocation_return_value_with_unix_fd_list (invocation,
    g_variant_new ("(s)",
                   doc_id),
    fd_list);
}

/**
 * doc_org_freedesktop_portal_documents_complete_add_named:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @doc_id: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddNamed">AddNamed()</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
doc_org_freedesktop_portal_documents_complete_add_named (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    const gchar *doc_id)
{
  g_dbus_method_invocation_return_value_with_unix_fd_list (invocation,
    g_variant_new ("(s)",
                   doc_id),
    fd_list);
}

/**
 * doc_org_freedesktop_portal_documents_complete_add_full:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @doc_ids: Parameter to return.
 * @extra_out: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddFull">AddFull()</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
doc_org_freedesktop_portal_documents_complete_add_full (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    const gchar *const *doc_ids,
    GVariant *extra_out)
{
  g_dbus_method_invocation_return_value_with_unix_fd_list (invocation,
    g_variant_new ("(^as@a{sv})",
                   doc_ids,
                   extra_out),
    fd_list);
}

/**
 * doc_org_freedesktop_portal_documents_complete_add_named_full:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @doc_id: Parameter to return.
 * @extra_out: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.AddNamedFull">AddNamedFull()</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
doc_org_freedesktop_portal_documents_complete_add_named_full (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    const gchar *doc_id,
    GVariant *extra_out)
{
  g_dbus_method_invocation_return_value_with_unix_fd_list (invocation,
    g_variant_new ("(s@a{sv})",
                   doc_id,
                   extra_out),
    fd_list);
}

/**
 * doc_org_freedesktop_portal_documents_complete_grant_permissions:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.GrantPermissions">GrantPermissions()</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
doc_org_freedesktop_portal_documents_complete_grant_permissions (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_portal_documents_complete_revoke_permissions:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.RevokePermissions">RevokePermissions()</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
doc_org_freedesktop_portal_documents_complete_revoke_permissions (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_portal_documents_complete_delete:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.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
doc_org_freedesktop_portal_documents_complete_delete (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_portal_documents_complete_lookup:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @doc_id: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.Lookup">Lookup()</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
doc_org_freedesktop_portal_documents_complete_lookup (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *doc_id)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(s)",
                   doc_id));
}

/**
 * doc_org_freedesktop_portal_documents_complete_info:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @path: Parameter to return.
 * @apps: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.Info">Info()</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
doc_org_freedesktop_portal_documents_complete_info (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *path,
    GVariant *apps)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(^ay@a{sas})",
                   path,
                   apps));
}

/**
 * doc_org_freedesktop_portal_documents_complete_list:
 * @object: A #docOrgFreedesktopPortalDocuments.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @docs: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Documents.List">List()</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
doc_org_freedesktop_portal_documents_complete_list (
    docOrgFreedesktopPortalDocuments *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GVariant *docs)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(@a{say})",
                   docs));
}

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

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

/**
 * docOrgFreedesktopPortalDocumentsProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopPortalDocumentsProxy.
 */

struct _docOrgFreedesktopPortalDocumentsProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_portal_documents_proxy_iface_init (docOrgFreedesktopPortalDocumentsIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalDocumentsProxy, doc_org_freedesktop_portal_documents_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopPortalDocumentsProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS, doc_org_freedesktop_portal_documents_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalDocumentsProxy, doc_org_freedesktop_portal_documents_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS, doc_org_freedesktop_portal_documents_proxy_iface_init))

#endif
static void
doc_org_freedesktop_portal_documents_proxy_finalize (GObject *object)
{
  docOrgFreedesktopPortalDocumentsProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_portal_documents_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_portal_documents_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_portal_documents_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
doc_org_freedesktop_portal_documents_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.freedesktop.portal.Documents: %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
doc_org_freedesktop_portal_documents_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 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_portal_documents_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.freedesktop.portal.Documents", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) doc_org_freedesktop_portal_documents_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
doc_org_freedesktop_portal_documents_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 *) &_doc_org_freedesktop_portal_documents_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], DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS);
  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, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS);
  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
doc_org_freedesktop_portal_documents_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopPortalDocumentsProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_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 *) &_doc_org_freedesktop_portal_documents_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 *) &_doc_org_freedesktop_portal_documents_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 
doc_org_freedesktop_portal_documents_proxy_get_version (docOrgFreedesktopPortalDocuments *object)
{
  docOrgFreedesktopPortalDocumentsProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "version");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
doc_org_freedesktop_portal_documents_proxy_init (docOrgFreedesktopPortalDocumentsProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_portal_documents_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_PROXY, docOrgFreedesktopPortalDocumentsProxyPrivate);
#endif

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

static void
doc_org_freedesktop_portal_documents_proxy_class_init (docOrgFreedesktopPortalDocumentsProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_portal_documents_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_portal_documents_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_portal_documents_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_portal_documents_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_portal_documents_proxy_g_properties_changed;

  doc_org_freedesktop_portal_documents_override_properties (gobject_class, 1);

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

static void
doc_org_freedesktop_portal_documents_proxy_iface_init (docOrgFreedesktopPortalDocumentsIface *iface)
{
  iface->get_version = doc_org_freedesktop_portal_documents_proxy_get_version;
}

/**
 * doc_org_freedesktop_portal_documents_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-freedesktop-portal-Documents.top_of_page">org.freedesktop.portal.Documents</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 doc_org_freedesktop_portal_documents_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_portal_documents_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_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.freedesktop.portal.Documents", NULL);
}

/**
 * doc_org_freedesktop_portal_documents_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalDocumentsProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalDocuments *
doc_org_freedesktop_portal_documents_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 DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_portal_documents_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-freedesktop-portal-Documents.top_of_page">org.freedesktop.portal.Documents</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalDocumentsProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalDocuments *
doc_org_freedesktop_portal_documents_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.portal.Documents", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_portal_documents_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 doc_org_freedesktop_portal_documents_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 doc_org_freedesktop_portal_documents_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_documents_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_portal_documents_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_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.freedesktop.portal.Documents", NULL);
}

/**
 * doc_org_freedesktop_portal_documents_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_documents_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_portal_documents_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalDocumentsProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalDocuments *
doc_org_freedesktop_portal_documents_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 DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_portal_documents_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 doc_org_freedesktop_portal_documents_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_documents_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalDocumentsProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalDocuments *
doc_org_freedesktop_portal_documents_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.portal.Documents", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopPortalDocumentsSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopPortalDocumentsSkeleton.
 */

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

static void
_doc_org_freedesktop_portal_documents_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)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_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], DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS);
  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, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS);
  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 *
_doc_org_freedesktop_portal_documents_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)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_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 *) &_doc_org_freedesktop_portal_documents_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
_doc_org_freedesktop_portal_documents_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)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_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 *) &_doc_org_freedesktop_portal_documents_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 _doc_org_freedesktop_portal_documents_skeleton_vtable =
{
  _doc_org_freedesktop_portal_documents_skeleton_handle_method_call,
  _doc_org_freedesktop_portal_documents_skeleton_handle_get_property,
  _doc_org_freedesktop_portal_documents_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_portal_documents_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_portal_documents_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_portal_documents_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_portal_documents_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_portal_documents_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_portal_documents_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_portal_documents_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_portal_documents_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_portal_documents_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.freedesktop.portal.Documents", 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 _doc_org_freedesktop_portal_documents_emit_changed (gpointer user_data);

static void
doc_org_freedesktop_portal_documents_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_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)
    _doc_org_freedesktop_portal_documents_emit_changed (skeleton);
}

static void doc_org_freedesktop_portal_documents_skeleton_iface_init (docOrgFreedesktopPortalDocumentsIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalDocumentsSkeleton, doc_org_freedesktop_portal_documents_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopPortalDocumentsSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS, doc_org_freedesktop_portal_documents_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalDocumentsSkeleton, doc_org_freedesktop_portal_documents_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS, doc_org_freedesktop_portal_documents_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_portal_documents_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_SKELETON (object);
  guint n;
  for (n = 0; n < 1; 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 (doc_org_freedesktop_portal_documents_skeleton_parent_class)->finalize (object);
}

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

static gboolean
_doc_org_freedesktop_portal_documents_emit_changed (gpointer user_data)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
  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.freedesktop.portal.Documents",
                                           &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
_doc_org_freedesktop_portal_documents_schedule_emit_changed (docOrgFreedesktopPortalDocumentsSkeleton *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
doc_org_freedesktop_portal_documents_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_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, _doc_org_freedesktop_portal_documents_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _doc_org_freedesktop_portal_documents_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
doc_org_freedesktop_portal_documents_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 1);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_portal_documents_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)
        _doc_org_freedesktop_portal_documents_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
doc_org_freedesktop_portal_documents_skeleton_init (docOrgFreedesktopPortalDocumentsSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_portal_documents_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_SKELETON, docOrgFreedesktopPortalDocumentsSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 1);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
}

static guint 
doc_org_freedesktop_portal_documents_skeleton_get_version (docOrgFreedesktopPortalDocuments *object)
{
  docOrgFreedesktopPortalDocumentsSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_value_get_uint (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
doc_org_freedesktop_portal_documents_skeleton_class_init (docOrgFreedesktopPortalDocumentsSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_portal_documents_skeleton_finalize;
  gobject_class->get_property = doc_org_freedesktop_portal_documents_skeleton_get_property;
  gobject_class->set_property = doc_org_freedesktop_portal_documents_skeleton_set_property;
  gobject_class->notify       = doc_org_freedesktop_portal_documents_skeleton_notify;


  doc_org_freedesktop_portal_documents_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_portal_documents_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_portal_documents_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_portal_documents_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_portal_documents_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_portal_documents_skeleton_iface_init (docOrgFreedesktopPortalDocumentsIface *iface)
{
  iface->get_version = doc_org_freedesktop_portal_documents_skeleton_get_version;
}

/**
 * doc_org_freedesktop_portal_documents_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Documents.top_of_page">org.freedesktop.portal.Documents</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalDocumentsSkeleton): The skeleton object.
 */
docOrgFreedesktopPortalDocuments *
doc_org_freedesktop_portal_documents_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_PORTAL_DOCUMENTS (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_DOCUMENTS_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.portal.Flatpak
 * ------------------------------------------------------------------------
 */

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

/* ---- Introspection data for org.freedesktop.portal.Flatpak ---- */

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_cwd_path =
{
  {
    -1,
    (gchar *) "cwd_path",
    (gchar *) "ay",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_argv =
{
  {
    -1,
    (gchar *) "argv",
    (gchar *) "aay",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_fds =
{
  {
    -1,
    (gchar *) "fds",
    (gchar *) "a{uh}",
    NULL
  },
  FALSE
};

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_envs =
{
  {
    -1,
    (gchar *) "envs",
    (gchar *) "a{ss}",
    NULL
  },
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_cwd_path.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_argv.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_fds.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_envs.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_flags.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_options.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_method_info_spawn_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_OUT_ARG_pid.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_flatpak_method_info_spawn =
{
  {
    -1,
    (gchar *) "Spawn",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_method_info_spawn_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_method_info_spawn_OUT_ARG_pointers,
    NULL
  },
  "handle-spawn",
  TRUE
};

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

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

static const _ExtendedGDBusArgInfo _doc_org_freedesktop_portal_flatpak_method_info_spawn_signal_IN_ARG_to_process_group =
{
  {
    -1,
    (gchar *) "to_process_group",
    (gchar *) "b",
    NULL
  },
  FALSE
};

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_method_info_spawn_signal_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_signal_IN_ARG_pid.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_signal_IN_ARG_signal.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_signal_IN_ARG_to_process_group.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_flatpak_method_info_spawn_signal =
{
  {
    -1,
    (gchar *) "SpawnSignal",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_method_info_spawn_signal_IN_ARG_pointers,
    NULL,
    NULL
  },
  "handle-spawn-signal",
  FALSE
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_method_info_create_update_monitor_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_method_info_create_update_monitor_IN_ARG_options.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_method_info_create_update_monitor_OUT_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_method_info_create_update_monitor_OUT_ARG_handle.parent_struct,
  NULL
};

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_flatpak_method_info_create_update_monitor =
{
  {
    -1,
    (gchar *) "CreateUpdateMonitor",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_method_info_create_update_monitor_IN_ARG_pointers,
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_method_info_create_update_monitor_OUT_ARG_pointers,
    NULL
  },
  "handle-create-update-monitor",
  FALSE
};

static const GDBusMethodInfo * const _doc_org_freedesktop_portal_flatpak_method_info_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_spawn_signal.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_method_info_create_update_monitor.parent_struct,
  NULL
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_signal_info_spawn_started_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_signal_info_spawn_started_ARG_pid.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_signal_info_spawn_started_ARG_relpid.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_portal_flatpak_signal_info_spawn_started =
{
  {
    -1,
    (gchar *) "SpawnStarted",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_signal_info_spawn_started_ARG_pointers,
    NULL
  },
  "spawn-started"
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_signal_info_spawn_exited_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_signal_info_spawn_exited_ARG_pid.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_signal_info_spawn_exited_ARG_exit_status.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_portal_flatpak_signal_info_spawn_exited =
{
  {
    -1,
    (gchar *) "SpawnExited",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_signal_info_spawn_exited_ARG_pointers,
    NULL
  },
  "spawn-exited"
};

static const GDBusSignalInfo * const _doc_org_freedesktop_portal_flatpak_signal_info_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_signal_info_spawn_started.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_signal_info_spawn_exited.parent_struct,
  NULL
};

static const _ExtendedGDBusPropertyInfo _doc_org_freedesktop_portal_flatpak_property_info_version =
{
  {
    -1,
    (gchar *) "version",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "version",
  FALSE,
  TRUE
};

static const _ExtendedGDBusPropertyInfo _doc_org_freedesktop_portal_flatpak_property_info_supports =
{
  {
    -1,
    (gchar *) "supports",
    (gchar *) "u",
    G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
    NULL
  },
  "supports",
  FALSE,
  TRUE
};

static const GDBusPropertyInfo * const _doc_org_freedesktop_portal_flatpak_property_info_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_property_info_version.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_property_info_supports.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_portal_flatpak_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.portal.Flatpak",
    (GDBusMethodInfo **) &_doc_org_freedesktop_portal_flatpak_method_info_pointers,
    (GDBusSignalInfo **) &_doc_org_freedesktop_portal_flatpak_signal_info_pointers,
    (GDBusPropertyInfo **) &_doc_org_freedesktop_portal_flatpak_property_info_pointers,
    NULL
  },
  "org-freedesktop-portal-flatpak",
};


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

/**
 * doc_org_freedesktop_portal_flatpak_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 #docOrgFreedesktopPortalFlatpak interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_portal_flatpak_override_properties (GObjectClass *klass, guint property_id_begin)
{
  g_object_class_override_property (klass, property_id_begin++, "version");
  g_object_class_override_property (klass, property_id_begin++, "supports");
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopPortalFlatpak:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Flatpak.top_of_page">org.freedesktop.portal.Flatpak</link>.
 */

/**
 * docOrgFreedesktopPortalFlatpakIface:
 * @parent_iface: The parent interface.
 * @handle_create_update_monitor: Handler for the #docOrgFreedesktopPortalFlatpak::handle-create-update-monitor signal.
 * @handle_spawn: Handler for the #docOrgFreedesktopPortalFlatpak::handle-spawn signal.
 * @handle_spawn_signal: Handler for the #docOrgFreedesktopPortalFlatpak::handle-spawn-signal signal.
 * @get_supports: Getter for the #docOrgFreedesktopPortalFlatpak:supports property.
 * @get_version: Getter for the #docOrgFreedesktopPortalFlatpak:version property.
 * @spawn_exited: Handler for the #docOrgFreedesktopPortalFlatpak::spawn-exited signal.
 * @spawn_started: Handler for the #docOrgFreedesktopPortalFlatpak::spawn-started signal.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Flatpak.top_of_page">org.freedesktop.portal.Flatpak</link>.
 */

typedef docOrgFreedesktopPortalFlatpakIface docOrgFreedesktopPortalFlatpakInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopPortalFlatpak, doc_org_freedesktop_portal_flatpak, G_TYPE_OBJECT)

static void
doc_org_freedesktop_portal_flatpak_default_init (docOrgFreedesktopPortalFlatpakIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopPortalFlatpak::handle-spawn:
   * @object: A #docOrgFreedesktopPortalFlatpak.
   * @invocation: A #GDBusMethodInvocation.
   * @fd_list: (nullable): A #GUnixFDList or %NULL.
   * @arg_cwd_path: Argument passed by remote caller.
   * @arg_argv: Argument passed by remote caller.
   * @arg_fds: Argument passed by remote caller.
   * @arg_envs: Argument passed by remote caller.
   * @arg_flags: Argument passed by remote caller.
   * @arg_options: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak.Spawn">Spawn()</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 doc_org_freedesktop_portal_flatpak_complete_spawn() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-spawn",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalFlatpakIface, handle_spawn),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    8,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_VARIANT, G_TYPE_VARIANT, G_TYPE_UINT, G_TYPE_VARIANT);

  /**
   * docOrgFreedesktopPortalFlatpak::handle-spawn-signal:
   * @object: A #docOrgFreedesktopPortalFlatpak.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_pid: Argument passed by remote caller.
   * @arg_signal: Argument passed by remote caller.
   * @arg_to_process_group: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak.SpawnSignal">SpawnSignal()</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 doc_org_freedesktop_portal_flatpak_complete_spawn_signal() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-spawn-signal",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalFlatpakIface, handle_spawn_signal),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    4,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_BOOLEAN);

  /**
   * docOrgFreedesktopPortalFlatpak::handle-create-update-monitor:
   * @object: A #docOrgFreedesktopPortalFlatpak.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_options: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak.CreateUpdateMonitor">CreateUpdateMonitor()</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 doc_org_freedesktop_portal_flatpak_complete_create_update_monitor() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-update-monitor",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalFlatpakIface, handle_create_update_monitor),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    2,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT);

  /* GObject signals for received D-Bus signals: */
  /**
   * docOrgFreedesktopPortalFlatpak::spawn-started:
   * @object: A #docOrgFreedesktopPortalFlatpak.
   * @arg_pid: Argument.
   * @arg_relpid: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-portal-Flatpak.SpawnStarted">"SpawnStarted"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("spawn-started",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalFlatpakIface, spawn_started),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    2, G_TYPE_UINT, G_TYPE_UINT);

  /**
   * docOrgFreedesktopPortalFlatpak::spawn-exited:
   * @object: A #docOrgFreedesktopPortalFlatpak.
   * @arg_pid: Argument.
   * @arg_exit_status: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-portal-Flatpak.SpawnExited">"SpawnExited"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("spawn-exited",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalFlatpakIface, spawn_exited),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    2, G_TYPE_UINT, G_TYPE_UINT);

  /* GObject properties for D-Bus properties: */
  /**
   * docOrgFreedesktopPortalFlatpak:version:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-portal-Flatpak.version">"version"</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 ("version", "version", "version", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
  /**
   * docOrgFreedesktopPortalFlatpak:supports:
   *
   * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-portal-Flatpak.supports">"supports"</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 ("supports", "supports", "supports", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

/**
 * doc_org_freedesktop_portal_flatpak_get_version: (skip)
 * @object: A #docOrgFreedesktopPortalFlatpak.
 *
 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-portal-Flatpak.version">"version"</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 
doc_org_freedesktop_portal_flatpak_get_version (docOrgFreedesktopPortalFlatpak *object)
{
  return DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_GET_IFACE (object)->get_version (object);
}

/**
 * doc_org_freedesktop_portal_flatpak_set_version: (skip)
 * @object: A #docOrgFreedesktopPortalFlatpak.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-freedesktop-portal-Flatpak.version">"version"</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
doc_org_freedesktop_portal_flatpak_set_version (docOrgFreedesktopPortalFlatpak *object, guint value)
{
  g_object_set (G_OBJECT (object), "version", value, NULL);
}

/**
 * doc_org_freedesktop_portal_flatpak_get_supports: (skip)
 * @object: A #docOrgFreedesktopPortalFlatpak.
 *
 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-portal-Flatpak.supports">"supports"</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 
doc_org_freedesktop_portal_flatpak_get_supports (docOrgFreedesktopPortalFlatpak *object)
{
  return DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_GET_IFACE (object)->get_supports (object);
}

/**
 * doc_org_freedesktop_portal_flatpak_set_supports: (skip)
 * @object: A #docOrgFreedesktopPortalFlatpak.
 * @value: The value to set.
 *
 * Sets the <link linkend="gdbus-property-org-freedesktop-portal-Flatpak.supports">"supports"</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
doc_org_freedesktop_portal_flatpak_set_supports (docOrgFreedesktopPortalFlatpak *object, guint value)
{
  g_object_set (G_OBJECT (object), "supports", value, NULL);
}

/**
 * doc_org_freedesktop_portal_flatpak_emit_spawn_started:
 * @object: A #docOrgFreedesktopPortalFlatpak.
 * @arg_pid: Argument to pass with the signal.
 * @arg_relpid: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-portal-Flatpak.SpawnStarted">"SpawnStarted"</link> D-Bus signal.
 */
void
doc_org_freedesktop_portal_flatpak_emit_spawn_started (
    docOrgFreedesktopPortalFlatpak *object,
    guint arg_pid,
    guint arg_relpid)
{
  g_signal_emit_by_name (object, "spawn-started", arg_pid, arg_relpid);
}

/**
 * doc_org_freedesktop_portal_flatpak_emit_spawn_exited:
 * @object: A #docOrgFreedesktopPortalFlatpak.
 * @arg_pid: Argument to pass with the signal.
 * @arg_exit_status: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-portal-Flatpak.SpawnExited">"SpawnExited"</link> D-Bus signal.
 */
void
doc_org_freedesktop_portal_flatpak_emit_spawn_exited (
    docOrgFreedesktopPortalFlatpak *object,
    guint arg_pid,
    guint arg_exit_status)
{
  g_signal_emit_by_name (object, "spawn-exited", arg_pid, arg_exit_status);
}

/**
 * doc_org_freedesktop_portal_flatpak_call_spawn:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @arg_cwd_path: Argument to pass with the method invocation.
 * @arg_argv: Argument to pass with the method invocation.
 * @arg_fds: Argument to pass with the method invocation.
 * @arg_envs: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_options: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @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-freedesktop-portal-Flatpak.Spawn">Spawn()</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 doc_org_freedesktop_portal_flatpak_call_spawn_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_call_spawn_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_flatpak_call_spawn (
    docOrgFreedesktopPortalFlatpak *proxy,
    const gchar *arg_cwd_path,
    const gchar *const *arg_argv,
    GVariant *arg_fds,
    GVariant *arg_envs,
    guint arg_flags,
    GVariant *arg_options,
    GUnixFDList *fd_list,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy),
    "Spawn",
    g_variant_new ("(^ay^aay@a{uh}@a{ss}u@a{sv})",
                   arg_cwd_path,
                   arg_argv,
                   arg_fds,
                   arg_envs,
                   arg_flags,
                   arg_options),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_flatpak_call_spawn_finish:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @out_pid: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out) (optional): Return location for a #GUnixFDList or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_call_spawn().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_call_spawn().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_call_spawn_finish (
    docOrgFreedesktopPortalFlatpak *proxy,
    guint *out_pid,
    GUnixFDList **out_fd_list,
    GAsyncResult *res,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(u)",
                 out_pid);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_flatpak_call_spawn_sync:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @arg_cwd_path: Argument to pass with the method invocation.
 * @arg_argv: Argument to pass with the method invocation.
 * @arg_fds: Argument to pass with the method invocation.
 * @arg_envs: Argument to pass with the method invocation.
 * @arg_flags: Argument to pass with the method invocation.
 * @arg_options: Argument to pass with the method invocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @out_pid: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak.Spawn">Spawn()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_call_spawn() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_call_spawn_sync (
    docOrgFreedesktopPortalFlatpak *proxy,
    const gchar *arg_cwd_path,
    const gchar *const *arg_argv,
    GVariant *arg_fds,
    GVariant *arg_envs,
    guint arg_flags,
    GVariant *arg_options,
    GUnixFDList  *fd_list,
    guint *out_pid,
    GUnixFDList **out_fd_list,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),
    "Spawn",
    g_variant_new ("(^ay^aay@a{uh}@a{ss}u@a{sv})",
                   arg_cwd_path,
                   arg_argv,
                   arg_fds,
                   arg_envs,
                   arg_flags,
                   arg_options),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    fd_list,
    out_fd_list,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(u)",
                 out_pid);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_flatpak_call_spawn_signal:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @arg_pid: Argument to pass with the method invocation.
 * @arg_signal: Argument to pass with the method invocation.
 * @arg_to_process_group: 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-freedesktop-portal-Flatpak.SpawnSignal">SpawnSignal()</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 doc_org_freedesktop_portal_flatpak_call_spawn_signal_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_call_spawn_signal_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_flatpak_call_spawn_signal (
    docOrgFreedesktopPortalFlatpak *proxy,
    guint arg_pid,
    guint arg_signal,
    gboolean arg_to_process_group,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "SpawnSignal",
    g_variant_new ("(uub)",
                   arg_pid,
                   arg_signal,
                   arg_to_process_group),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_flatpak_call_spawn_signal_finish:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_call_spawn_signal().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_call_spawn_signal().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_call_spawn_signal_finish (
    docOrgFreedesktopPortalFlatpak *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;
}

/**
 * doc_org_freedesktop_portal_flatpak_call_spawn_signal_sync:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @arg_pid: Argument to pass with the method invocation.
 * @arg_signal: Argument to pass with the method invocation.
 * @arg_to_process_group: 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-freedesktop-portal-Flatpak.SpawnSignal">SpawnSignal()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_call_spawn_signal() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_call_spawn_signal_sync (
    docOrgFreedesktopPortalFlatpak *proxy,
    guint arg_pid,
    guint arg_signal,
    gboolean arg_to_process_group,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "SpawnSignal",
    g_variant_new ("(uub)",
                   arg_pid,
                   arg_signal,
                   arg_to_process_group),
    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;
}

/**
 * doc_org_freedesktop_portal_flatpak_call_create_update_monitor:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @arg_options: 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-freedesktop-portal-Flatpak.CreateUpdateMonitor">CreateUpdateMonitor()</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 doc_org_freedesktop_portal_flatpak_call_create_update_monitor_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_call_create_update_monitor_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_flatpak_call_create_update_monitor (
    docOrgFreedesktopPortalFlatpak *proxy,
    GVariant *arg_options,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "CreateUpdateMonitor",
    g_variant_new ("(@a{sv})",
                   arg_options),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_flatpak_call_create_update_monitor_finish:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @out_handle: (out) (optional): Return location for return parameter or %NULL to ignore.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_call_create_update_monitor().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_call_create_update_monitor().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_call_create_update_monitor_finish (
    docOrgFreedesktopPortalFlatpak *proxy,
    gchar **out_handle,
    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_handle);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_flatpak_call_create_update_monitor_sync:
 * @proxy: A #docOrgFreedesktopPortalFlatpakProxy.
 * @arg_options: Argument to pass with the method invocation.
 * @out_handle: (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-freedesktop-portal-Flatpak.CreateUpdateMonitor">CreateUpdateMonitor()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_call_create_update_monitor() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_call_create_update_monitor_sync (
    docOrgFreedesktopPortalFlatpak *proxy,
    GVariant *arg_options,
    gchar **out_handle,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "CreateUpdateMonitor",
    g_variant_new ("(@a{sv})",
                   arg_options),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    error);
  if (_ret == NULL)
    goto _out;
  g_variant_get (_ret,
                 "(o)",
                 out_handle);
  g_variant_unref (_ret);
_out:
  return _ret != NULL;
}

/**
 * doc_org_freedesktop_portal_flatpak_complete_spawn:
 * @object: A #docOrgFreedesktopPortalFlatpak.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @fd_list: (nullable): A #GUnixFDList or %NULL.
 * @pid: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak.Spawn">Spawn()</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
doc_org_freedesktop_portal_flatpak_complete_spawn (
    docOrgFreedesktopPortalFlatpak *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    GUnixFDList *fd_list,
    guint pid)
{
  g_dbus_method_invocation_return_value_with_unix_fd_list (invocation,
    g_variant_new ("(u)",
                   pid),
    fd_list);
}

/**
 * doc_org_freedesktop_portal_flatpak_complete_spawn_signal:
 * @object: A #docOrgFreedesktopPortalFlatpak.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak.SpawnSignal">SpawnSignal()</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
doc_org_freedesktop_portal_flatpak_complete_spawn_signal (
    docOrgFreedesktopPortalFlatpak *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_portal_flatpak_complete_create_update_monitor:
 * @object: A #docOrgFreedesktopPortalFlatpak.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 * @handle: Parameter to return.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak.CreateUpdateMonitor">CreateUpdateMonitor()</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
doc_org_freedesktop_portal_flatpak_complete_create_update_monitor (
    docOrgFreedesktopPortalFlatpak *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation,
    const gchar *handle)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("(o)",
                   handle));
}

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

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

/**
 * docOrgFreedesktopPortalFlatpakProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopPortalFlatpakProxy.
 */

struct _docOrgFreedesktopPortalFlatpakProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_portal_flatpak_proxy_iface_init (docOrgFreedesktopPortalFlatpakIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalFlatpakProxy, doc_org_freedesktop_portal_flatpak_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopPortalFlatpakProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK, doc_org_freedesktop_portal_flatpak_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalFlatpakProxy, doc_org_freedesktop_portal_flatpak_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK, doc_org_freedesktop_portal_flatpak_proxy_iface_init))

#endif
static void
doc_org_freedesktop_portal_flatpak_proxy_finalize (GObject *object)
{
  docOrgFreedesktopPortalFlatpakProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_portal_flatpak_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_portal_flatpak_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 < 2);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_portal_flatpak_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
doc_org_freedesktop_portal_flatpak_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.freedesktop.portal.Flatpak: %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
doc_org_freedesktop_portal_flatpak_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 < 2);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_portal_flatpak_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.freedesktop.portal.Flatpak", info->parent_struct.name, variant),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    NULL, (GAsyncReadyCallback) doc_org_freedesktop_portal_flatpak_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
  g_variant_unref (variant);
}

static void
doc_org_freedesktop_portal_flatpak_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 *) &_doc_org_freedesktop_portal_flatpak_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], DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK);
  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, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK);
  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
doc_org_freedesktop_portal_flatpak_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopPortalFlatpakProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_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 *) &_doc_org_freedesktop_portal_flatpak_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 *) &_doc_org_freedesktop_portal_flatpak_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 
doc_org_freedesktop_portal_flatpak_proxy_get_version (docOrgFreedesktopPortalFlatpak *object)
{
  docOrgFreedesktopPortalFlatpakProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "version");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static guint 
doc_org_freedesktop_portal_flatpak_proxy_get_supports (docOrgFreedesktopPortalFlatpak *object)
{
  docOrgFreedesktopPortalFlatpakProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_PROXY (object);
  GVariant *variant;
  guint value = 0;
  variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "supports");
  if (variant != NULL)
    {
      value = g_variant_get_uint32 (variant);
      g_variant_unref (variant);
    }
  return value;
}

static void
doc_org_freedesktop_portal_flatpak_proxy_init (docOrgFreedesktopPortalFlatpakProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_portal_flatpak_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_PROXY, docOrgFreedesktopPortalFlatpakProxyPrivate);
#endif

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

static void
doc_org_freedesktop_portal_flatpak_proxy_class_init (docOrgFreedesktopPortalFlatpakProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_portal_flatpak_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_portal_flatpak_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_portal_flatpak_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_portal_flatpak_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_portal_flatpak_proxy_g_properties_changed;

  doc_org_freedesktop_portal_flatpak_override_properties (gobject_class, 1);

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

static void
doc_org_freedesktop_portal_flatpak_proxy_iface_init (docOrgFreedesktopPortalFlatpakIface *iface)
{
  iface->get_version = doc_org_freedesktop_portal_flatpak_proxy_get_version;
  iface->get_supports = doc_org_freedesktop_portal_flatpak_proxy_get_supports;
}

/**
 * doc_org_freedesktop_portal_flatpak_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-freedesktop-portal-Flatpak.top_of_page">org.freedesktop.portal.Flatpak</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 doc_org_freedesktop_portal_flatpak_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_portal_flatpak_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_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.freedesktop.portal.Flatpak", NULL);
}

/**
 * doc_org_freedesktop_portal_flatpak_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalFlatpak *
doc_org_freedesktop_portal_flatpak_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 DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_portal_flatpak_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-freedesktop-portal-Flatpak.top_of_page">org.freedesktop.portal.Flatpak</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalFlatpak *
doc_org_freedesktop_portal_flatpak_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.portal.Flatpak", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_portal_flatpak_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 doc_org_freedesktop_portal_flatpak_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 doc_org_freedesktop_portal_flatpak_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_portal_flatpak_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_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.freedesktop.portal.Flatpak", NULL);
}

/**
 * doc_org_freedesktop_portal_flatpak_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalFlatpak *
doc_org_freedesktop_portal_flatpak_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 DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_portal_flatpak_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 doc_org_freedesktop_portal_flatpak_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalFlatpak *
doc_org_freedesktop_portal_flatpak_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.portal.Flatpak", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopPortalFlatpakSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopPortalFlatpakSkeleton.
 */

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

static void
_doc_org_freedesktop_portal_flatpak_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)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_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], DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK);
  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, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK);
  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 *
_doc_org_freedesktop_portal_flatpak_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)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_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 *) &_doc_org_freedesktop_portal_flatpak_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
_doc_org_freedesktop_portal_flatpak_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)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_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 *) &_doc_org_freedesktop_portal_flatpak_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 _doc_org_freedesktop_portal_flatpak_skeleton_vtable =
{
  _doc_org_freedesktop_portal_flatpak_skeleton_handle_method_call,
  _doc_org_freedesktop_portal_flatpak_skeleton_handle_get_property,
  _doc_org_freedesktop_portal_flatpak_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_portal_flatpak_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_portal_flatpak_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_portal_flatpak_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_portal_flatpak_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_portal_flatpak_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_portal_flatpak_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_portal_flatpak_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_portal_flatpak_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_portal_flatpak_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.freedesktop.portal.Flatpak", 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 _doc_org_freedesktop_portal_flatpak_emit_changed (gpointer user_data);

static void
doc_org_freedesktop_portal_flatpak_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_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)
    _doc_org_freedesktop_portal_flatpak_emit_changed (skeleton);
}

static void
_doc_org_freedesktop_portal_flatpak_on_signal_spawn_started (
    docOrgFreedesktopPortalFlatpak *object,
    guint arg_pid,
    guint arg_relpid)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(uu)",
                   arg_pid,
                   arg_relpid));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.portal.Flatpak", "SpawnStarted",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void
_doc_org_freedesktop_portal_flatpak_on_signal_spawn_exited (
    docOrgFreedesktopPortalFlatpak *object,
    guint arg_pid,
    guint arg_exit_status)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(uu)",
                   arg_pid,
                   arg_exit_status));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.portal.Flatpak", "SpawnExited",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void doc_org_freedesktop_portal_flatpak_skeleton_iface_init (docOrgFreedesktopPortalFlatpakIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalFlatpakSkeleton, doc_org_freedesktop_portal_flatpak_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopPortalFlatpakSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK, doc_org_freedesktop_portal_flatpak_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalFlatpakSkeleton, doc_org_freedesktop_portal_flatpak_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK, doc_org_freedesktop_portal_flatpak_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_portal_flatpak_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON (object);
  guint n;
  for (n = 0; n < 2; 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 (doc_org_freedesktop_portal_flatpak_skeleton_parent_class)->finalize (object);
}

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

static gboolean
_doc_org_freedesktop_portal_flatpak_emit_changed (gpointer user_data)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON (user_data);
  GList *l;
  GVariantBuilder builder;
  GVariantBuilder invalidated_builder;
  guint num_changes;

  g_mutex_lock (&skeleton->priv->lock);
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
  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.freedesktop.portal.Flatpak",
                                           &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
_doc_org_freedesktop_portal_flatpak_schedule_emit_changed (docOrgFreedesktopPortalFlatpakSkeleton *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
doc_org_freedesktop_portal_flatpak_skeleton_notify (GObject      *object,
  GParamSpec *pspec G_GNUC_UNUSED)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_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, _doc_org_freedesktop_portal_flatpak_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
      g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _doc_org_freedesktop_portal_flatpak_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
doc_org_freedesktop_portal_flatpak_skeleton_set_property (GObject      *object,
  guint         prop_id,
  const GValue *value,
  GParamSpec   *pspec)
{
  const _ExtendedGDBusPropertyInfo *info;
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON (object);
  g_assert (prop_id != 0 && prop_id - 1 < 2);
  info = (const _ExtendedGDBusPropertyInfo *) _doc_org_freedesktop_portal_flatpak_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)
        _doc_org_freedesktop_portal_flatpak_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
doc_org_freedesktop_portal_flatpak_skeleton_init (docOrgFreedesktopPortalFlatpakSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_portal_flatpak_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON, docOrgFreedesktopPortalFlatpakSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
  skeleton->priv->properties = g_new0 (GValue, 2);
  g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
  g_value_init (&skeleton->priv->properties[1], G_TYPE_UINT);
}

static guint 
doc_org_freedesktop_portal_flatpak_skeleton_get_version (docOrgFreedesktopPortalFlatpak *object)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_value_get_uint (&(skeleton->priv->properties[0]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static guint 
doc_org_freedesktop_portal_flatpak_skeleton_get_supports (docOrgFreedesktopPortalFlatpak *object)
{
  docOrgFreedesktopPortalFlatpakSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON (object);
  guint value;
  g_mutex_lock (&skeleton->priv->lock);
  value = g_value_get_uint (&(skeleton->priv->properties[1]));
  g_mutex_unlock (&skeleton->priv->lock);
  return value;
}

static void
doc_org_freedesktop_portal_flatpak_skeleton_class_init (docOrgFreedesktopPortalFlatpakSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_portal_flatpak_skeleton_finalize;
  gobject_class->get_property = doc_org_freedesktop_portal_flatpak_skeleton_get_property;
  gobject_class->set_property = doc_org_freedesktop_portal_flatpak_skeleton_set_property;
  gobject_class->notify       = doc_org_freedesktop_portal_flatpak_skeleton_notify;


  doc_org_freedesktop_portal_flatpak_override_properties (gobject_class, 1);

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_portal_flatpak_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_portal_flatpak_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_portal_flatpak_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_portal_flatpak_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_portal_flatpak_skeleton_iface_init (docOrgFreedesktopPortalFlatpakIface *iface)
{
  iface->spawn_started = _doc_org_freedesktop_portal_flatpak_on_signal_spawn_started;
  iface->spawn_exited = _doc_org_freedesktop_portal_flatpak_on_signal_spawn_exited;
  iface->get_version = doc_org_freedesktop_portal_flatpak_skeleton_get_version;
  iface->get_supports = doc_org_freedesktop_portal_flatpak_skeleton_get_supports;
}

/**
 * doc_org_freedesktop_portal_flatpak_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Flatpak.top_of_page">org.freedesktop.portal.Flatpak</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakSkeleton): The skeleton object.
 */
docOrgFreedesktopPortalFlatpak *
doc_org_freedesktop_portal_flatpak_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_SKELETON, NULL));
}

/* ------------------------------------------------------------------------
 * Code for interface org.freedesktop.portal.Flatpak.UpdateMonitor
 * ------------------------------------------------------------------------
 */

/**
 * SECTION:docOrgFreedesktopPortalFlatpakUpdateMonitor
 * @title: docOrgFreedesktopPortalFlatpakUpdateMonitor
 * @short_description: Generated C code for the org.freedesktop.portal.Flatpak.UpdateMonitor D-Bus interface
 *
 * This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-portal-Flatpak-UpdateMonitor.top_of_page">org.freedesktop.portal.Flatpak.UpdateMonitor</link> D-Bus interface in C.
 */

/* ---- Introspection data for org.freedesktop.portal.Flatpak.UpdateMonitor ---- */

static const _ExtendedGDBusMethodInfo _doc_org_freedesktop_portal_flatpak_update_monitor_method_info_close =
{
  {
    -1,
    (gchar *) "Close",
    NULL,
    NULL,
    NULL
  },
  "handle-close",
  FALSE
};

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

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_update_monitor_method_info_update_IN_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_update_monitor_method_info_update_IN_ARG_parent_window.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_update_monitor_method_info_update_IN_ARG_options.parent_struct,
  NULL
};

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

static const GDBusMethodInfo * const _doc_org_freedesktop_portal_flatpak_update_monitor_method_info_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_update_monitor_method_info_close.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_update_monitor_method_info_update.parent_struct,
  NULL
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_update_available_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_update_available_ARG_update_info.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_update_available =
{
  {
    -1,
    (gchar *) "UpdateAvailable",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_update_available_ARG_pointers,
    NULL
  },
  "update-available"
};

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

static const GDBusArgInfo * const _doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_progress_ARG_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_progress_ARG_info.parent_struct,
  NULL
};

static const _ExtendedGDBusSignalInfo _doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_progress =
{
  {
    -1,
    (gchar *) "Progress",
    (GDBusArgInfo **) &_doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_progress_ARG_pointers,
    NULL
  },
  "progress"
};

static const GDBusSignalInfo * const _doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_pointers[] =
{
  &_doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_update_available.parent_struct,
  &_doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_progress.parent_struct,
  NULL
};

static const _ExtendedGDBusInterfaceInfo _doc_org_freedesktop_portal_flatpak_update_monitor_interface_info =
{
  {
    -1,
    (gchar *) "org.freedesktop.portal.Flatpak.UpdateMonitor",
    (GDBusMethodInfo **) &_doc_org_freedesktop_portal_flatpak_update_monitor_method_info_pointers,
    (GDBusSignalInfo **) &_doc_org_freedesktop_portal_flatpak_update_monitor_signal_info_pointers,
    NULL,
    NULL
  },
  "org-freedesktop-portal-flatpak-update-monitor",
};


/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_interface_info:
 *
 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-portal-Flatpak-UpdateMonitor.top_of_page">org.freedesktop.portal.Flatpak.UpdateMonitor</link> D-Bus interface.
 *
 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
 */
GDBusInterfaceInfo *
doc_org_freedesktop_portal_flatpak_update_monitor_interface_info (void)
{
  return (GDBusInterfaceInfo *) &_doc_org_freedesktop_portal_flatpak_update_monitor_interface_info.parent_struct;
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_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 #docOrgFreedesktopPortalFlatpakUpdateMonitor interface for a concrete class.
 * The properties are overridden in the order they are defined.
 *
 * Returns: The last property id.
 */
guint
doc_org_freedesktop_portal_flatpak_update_monitor_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin)
{
  return property_id_begin - 1;
}



/**
 * docOrgFreedesktopPortalFlatpakUpdateMonitor:
 *
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Flatpak-UpdateMonitor.top_of_page">org.freedesktop.portal.Flatpak.UpdateMonitor</link>.
 */

/**
 * docOrgFreedesktopPortalFlatpakUpdateMonitorIface:
 * @parent_iface: The parent interface.
 * @handle_close: Handler for the #docOrgFreedesktopPortalFlatpakUpdateMonitor::handle-close signal.
 * @handle_update: Handler for the #docOrgFreedesktopPortalFlatpakUpdateMonitor::handle-update signal.
 * @progress: Handler for the #docOrgFreedesktopPortalFlatpakUpdateMonitor::progress signal.
 * @update_available: Handler for the #docOrgFreedesktopPortalFlatpakUpdateMonitor::update-available signal.
 *
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Flatpak-UpdateMonitor.top_of_page">org.freedesktop.portal.Flatpak.UpdateMonitor</link>.
 */

typedef docOrgFreedesktopPortalFlatpakUpdateMonitorIface docOrgFreedesktopPortalFlatpakUpdateMonitorInterface;
G_DEFINE_INTERFACE (docOrgFreedesktopPortalFlatpakUpdateMonitor, doc_org_freedesktop_portal_flatpak_update_monitor, G_TYPE_OBJECT)

static void
doc_org_freedesktop_portal_flatpak_update_monitor_default_init (docOrgFreedesktopPortalFlatpakUpdateMonitorIface *iface)
{
  /* GObject signals for incoming D-Bus method calls: */
  /**
   * docOrgFreedesktopPortalFlatpakUpdateMonitor::handle-close:
   * @object: A #docOrgFreedesktopPortalFlatpakUpdateMonitor.
   * @invocation: A #GDBusMethodInvocation.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak-UpdateMonitor.Close">Close()</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 doc_org_freedesktop_portal_flatpak_update_monitor_complete_close() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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-close",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalFlatpakUpdateMonitorIface, handle_close),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    1,
    G_TYPE_DBUS_METHOD_INVOCATION);

  /**
   * docOrgFreedesktopPortalFlatpakUpdateMonitor::handle-update:
   * @object: A #docOrgFreedesktopPortalFlatpakUpdateMonitor.
   * @invocation: A #GDBusMethodInvocation.
   * @arg_parent_window: Argument passed by remote caller.
   * @arg_options: Argument passed by remote caller.
   *
   * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak-UpdateMonitor.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 doc_org_freedesktop_portal_flatpak_update_monitor_complete_update() or e.g. g_dbus_method_invocation_return_error() on it) and no order 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 (docOrgFreedesktopPortalFlatpakUpdateMonitorIface, handle_update),
    g_signal_accumulator_true_handled,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_BOOLEAN,
    3,
    G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_VARIANT);

  /* GObject signals for received D-Bus signals: */
  /**
   * docOrgFreedesktopPortalFlatpakUpdateMonitor::update-available:
   * @object: A #docOrgFreedesktopPortalFlatpakUpdateMonitor.
   * @arg_update_info: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-portal-Flatpak-UpdateMonitor.UpdateAvailable">"UpdateAvailable"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("update-available",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalFlatpakUpdateMonitorIface, update_available),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    1, G_TYPE_VARIANT);

  /**
   * docOrgFreedesktopPortalFlatpakUpdateMonitor::progress:
   * @object: A #docOrgFreedesktopPortalFlatpakUpdateMonitor.
   * @arg_info: Argument.
   *
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-portal-Flatpak-UpdateMonitor.Progress">"Progress"</link> is received.
   *
   * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
   */
  g_signal_new ("progress",
    G_TYPE_FROM_INTERFACE (iface),
    G_SIGNAL_RUN_LAST,
    G_STRUCT_OFFSET (docOrgFreedesktopPortalFlatpakUpdateMonitorIface, progress),
    NULL,
    NULL,
    g_cclosure_marshal_generic,
    G_TYPE_NONE,
    1, G_TYPE_VARIANT);

}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_emit_update_available:
 * @object: A #docOrgFreedesktopPortalFlatpakUpdateMonitor.
 * @arg_update_info: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-portal-Flatpak-UpdateMonitor.UpdateAvailable">"UpdateAvailable"</link> D-Bus signal.
 */
void
doc_org_freedesktop_portal_flatpak_update_monitor_emit_update_available (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *object,
    GVariant *arg_update_info)
{
  g_signal_emit_by_name (object, "update-available", arg_update_info);
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_emit_progress:
 * @object: A #docOrgFreedesktopPortalFlatpakUpdateMonitor.
 * @arg_info: Argument to pass with the signal.
 *
 * Emits the <link linkend="gdbus-signal-org-freedesktop-portal-Flatpak-UpdateMonitor.Progress">"Progress"</link> D-Bus signal.
 */
void
doc_org_freedesktop_portal_flatpak_update_monitor_emit_progress (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *object,
    GVariant *arg_info)
{
  g_signal_emit_by_name (object, "progress", arg_info);
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_call_close:
 * @proxy: A #docOrgFreedesktopPortalFlatpakUpdateMonitorProxy.
 * @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-freedesktop-portal-Flatpak-UpdateMonitor.Close">Close()</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 doc_org_freedesktop_portal_flatpak_update_monitor_call_close_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_update_monitor_call_close_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_flatpak_update_monitor_call_close (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *proxy,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Close",
    g_variant_new ("()"),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_call_close_finish:
 * @proxy: A #docOrgFreedesktopPortalFlatpakUpdateMonitorProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_update_monitor_call_close().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_update_monitor_call_close().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_update_monitor_call_close_finish (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *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;
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_call_close_sync:
 * @proxy: A #docOrgFreedesktopPortalFlatpakUpdateMonitorProxy.
 * @cancellable: (nullable): A #GCancellable or %NULL.
 * @error: Return location for error or %NULL.
 *
 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak-UpdateMonitor.Close">Close()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_update_monitor_call_close() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_update_monitor_call_close_sync (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *proxy,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Close",
    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;
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_call_update:
 * @proxy: A #docOrgFreedesktopPortalFlatpakUpdateMonitorProxy.
 * @arg_parent_window: Argument to pass with the method invocation.
 * @arg_options: 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-freedesktop-portal-Flatpak-UpdateMonitor.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 doc_org_freedesktop_portal_flatpak_update_monitor_call_update_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_update_monitor_call_update_sync() for the synchronous, blocking version of this method.
 */
void
doc_org_freedesktop_portal_flatpak_update_monitor_call_update (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *proxy,
    const gchar *arg_parent_window,
    GVariant *arg_options,
    GCancellable *cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  g_dbus_proxy_call (G_DBUS_PROXY (proxy),
    "Update",
    g_variant_new ("(s@a{sv})",
                   arg_parent_window,
                   arg_options),
    G_DBUS_CALL_FLAGS_NONE,
    -1,
    cancellable,
    callback,
    user_data);
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_call_update_finish:
 * @proxy: A #docOrgFreedesktopPortalFlatpakUpdateMonitorProxy.
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_update_monitor_call_update().
 * @error: Return location for error or %NULL.
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_update_monitor_call_update().
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_update_monitor_call_update_finish (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *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;
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_call_update_sync:
 * @proxy: A #docOrgFreedesktopPortalFlatpakUpdateMonitorProxy.
 * @arg_parent_window: Argument to pass with the method invocation.
 * @arg_options: 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-freedesktop-portal-Flatpak-UpdateMonitor.Update">Update()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_update_monitor_call_update() for the asynchronous version of this method.
 *
 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
 */
gboolean
doc_org_freedesktop_portal_flatpak_update_monitor_call_update_sync (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *proxy,
    const gchar *arg_parent_window,
    GVariant *arg_options,
    GCancellable *cancellable,
    GError **error)
{
  GVariant *_ret;
  _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
    "Update",
    g_variant_new ("(s@a{sv})",
                   arg_parent_window,
                   arg_options),
    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;
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_complete_close:
 * @object: A #docOrgFreedesktopPortalFlatpakUpdateMonitor.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak-UpdateMonitor.Close">Close()</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
doc_org_freedesktop_portal_flatpak_update_monitor_complete_close (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_complete_update:
 * @object: A #docOrgFreedesktopPortalFlatpakUpdateMonitor.
 * @invocation: (transfer full): A #GDBusMethodInvocation.
 *
 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-portal-Flatpak-UpdateMonitor.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
doc_org_freedesktop_portal_flatpak_update_monitor_complete_update (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *object G_GNUC_UNUSED,
    GDBusMethodInvocation *invocation)
{
  g_dbus_method_invocation_return_value (invocation,
    g_variant_new ("()"));
}

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

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

/**
 * docOrgFreedesktopPortalFlatpakUpdateMonitorProxyClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopPortalFlatpakUpdateMonitorProxy.
 */

struct _docOrgFreedesktopPortalFlatpakUpdateMonitorProxyPrivate
{
  GData *qdata;
};

static void doc_org_freedesktop_portal_flatpak_update_monitor_proxy_iface_init (docOrgFreedesktopPortalFlatpakUpdateMonitorIface *iface);

#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalFlatpakUpdateMonitorProxy, doc_org_freedesktop_portal_flatpak_update_monitor_proxy, G_TYPE_DBUS_PROXY,
                         G_ADD_PRIVATE (docOrgFreedesktopPortalFlatpakUpdateMonitorProxy)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR, doc_org_freedesktop_portal_flatpak_update_monitor_proxy_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalFlatpakUpdateMonitorProxy, doc_org_freedesktop_portal_flatpak_update_monitor_proxy, G_TYPE_DBUS_PROXY,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR, doc_org_freedesktop_portal_flatpak_update_monitor_proxy_iface_init))

#endif
static void
doc_org_freedesktop_portal_flatpak_update_monitor_proxy_finalize (GObject *object)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_PROXY (object);
  g_datalist_clear (&proxy->priv->qdata);
  G_OBJECT_CLASS (doc_org_freedesktop_portal_flatpak_update_monitor_proxy_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_portal_flatpak_update_monitor_proxy_get_property (GObject      *object G_GNUC_UNUSED,
  guint         prop_id G_GNUC_UNUSED,
  GValue       *value G_GNUC_UNUSED,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
}

static void
doc_org_freedesktop_portal_flatpak_update_monitor_proxy_set_property (GObject      *object G_GNUC_UNUSED,
  guint         prop_id G_GNUC_UNUSED,
  const GValue *value G_GNUC_UNUSED,
  GParamSpec   *pspec G_GNUC_UNUSED)
{
}

static void
doc_org_freedesktop_portal_flatpak_update_monitor_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 *) &_doc_org_freedesktop_portal_flatpak_update_monitor_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], DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR);
  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, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR);
  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
doc_org_freedesktop_portal_flatpak_update_monitor_proxy_g_properties_changed (GDBusProxy *_proxy,
  GVariant *changed_properties,
  const gchar *const *invalidated_properties)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorProxy *proxy = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_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 *) &_doc_org_freedesktop_portal_flatpak_update_monitor_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 *) &_doc_org_freedesktop_portal_flatpak_update_monitor_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 void
doc_org_freedesktop_portal_flatpak_update_monitor_proxy_init (docOrgFreedesktopPortalFlatpakUpdateMonitorProxy *proxy)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  proxy->priv = doc_org_freedesktop_portal_flatpak_update_monitor_proxy_get_instance_private (proxy);
#else
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_PROXY, docOrgFreedesktopPortalFlatpakUpdateMonitorProxyPrivate);
#endif

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

static void
doc_org_freedesktop_portal_flatpak_update_monitor_proxy_class_init (docOrgFreedesktopPortalFlatpakUpdateMonitorProxyClass *klass)
{
  GObjectClass *gobject_class;
  GDBusProxyClass *proxy_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize     = doc_org_freedesktop_portal_flatpak_update_monitor_proxy_finalize;
  gobject_class->get_property = doc_org_freedesktop_portal_flatpak_update_monitor_proxy_get_property;
  gobject_class->set_property = doc_org_freedesktop_portal_flatpak_update_monitor_proxy_set_property;

  proxy_class = G_DBUS_PROXY_CLASS (klass);
  proxy_class->g_signal = doc_org_freedesktop_portal_flatpak_update_monitor_proxy_g_signal;
  proxy_class->g_properties_changed = doc_org_freedesktop_portal_flatpak_update_monitor_proxy_g_properties_changed;

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

static void
doc_org_freedesktop_portal_flatpak_update_monitor_proxy_iface_init (docOrgFreedesktopPortalFlatpakUpdateMonitorIface *iface G_GNUC_UNUSED)
{
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_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-freedesktop-portal-Flatpak-UpdateMonitor.top_of_page">org.freedesktop.portal.Flatpak.UpdateMonitor</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 doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_portal_flatpak_update_monitor_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_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.freedesktop.portal.Flatpak.UpdateMonitor", NULL);
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new().
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakUpdateMonitorProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalFlatpakUpdateMonitor *
doc_org_freedesktop_portal_flatpak_update_monitor_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 DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_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-freedesktop-portal-Flatpak-UpdateMonitor.top_of_page">org.freedesktop.portal.Flatpak.UpdateMonitor</link>. See g_dbus_proxy_new_sync() for more details.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakUpdateMonitorProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalFlatpakUpdateMonitor *
doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_sync (
    GDBusConnection     *connection,
    GDBusProxyFlags      flags,
    const gchar         *name,
    const gchar         *object_path,
    GCancellable        *cancellable,
    GError             **error)
{
  GInitable *ret;
  ret = g_initable_new (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.portal.Flatpak.UpdateMonitor", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR (ret);
  else
    return NULL;
}


/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_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 doc_org_freedesktop_portal_flatpak_update_monitor_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 doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_for_bus_finish() to get the result of the operation.
 *
 * See doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
 */
void
doc_org_freedesktop_portal_flatpak_update_monitor_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_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.freedesktop.portal.Flatpak.UpdateMonitor", NULL);
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_for_bus_finish:
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_for_bus().
 * @error: Return location for error or %NULL
 *
 * Finishes an operation started with doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_for_bus().
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakUpdateMonitorProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalFlatpakUpdateMonitor *
doc_org_freedesktop_portal_flatpak_update_monitor_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 DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR (ret);
  else
    return NULL;
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_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 doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
 *
 * The calling thread is blocked until a reply is received.
 *
 * See doc_org_freedesktop_portal_flatpak_update_monitor_proxy_new_for_bus() for the asynchronous version of this constructor.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakUpdateMonitorProxy): The constructed proxy object or %NULL if @error is set.
 */
docOrgFreedesktopPortalFlatpakUpdateMonitor *
doc_org_freedesktop_portal_flatpak_update_monitor_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 (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.portal.Flatpak.UpdateMonitor", NULL);
  if (ret != NULL)
    return DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR (ret);
  else
    return NULL;
}


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

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

/**
 * docOrgFreedesktopPortalFlatpakUpdateMonitorSkeletonClass:
 * @parent_class: The parent class.
 *
 * Class structure for #docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton.
 */

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

static void
_doc_org_freedesktop_portal_flatpak_update_monitor_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)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_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], DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR);
  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, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR);
  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 *
_doc_org_freedesktop_portal_flatpak_update_monitor_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)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_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 *) &_doc_org_freedesktop_portal_flatpak_update_monitor_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
_doc_org_freedesktop_portal_flatpak_update_monitor_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)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_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 *) &_doc_org_freedesktop_portal_flatpak_update_monitor_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 _doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_vtable =
{
  _doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_handle_method_call,
  _doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_handle_get_property,
  _doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_handle_set_property,
  {NULL}
};

static GDBusInterfaceInfo *
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return doc_org_freedesktop_portal_flatpak_update_monitor_interface_info ();
}

static GDBusInterfaceVTable *
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
{
  return (GDBusInterfaceVTable *) &_doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_vtable;
}

static GVariant *
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_SKELETON (_skeleton);

  GVariantBuilder builder;
  guint n;
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
  if (_doc_org_freedesktop_portal_flatpak_update_monitor_interface_info.parent_struct.properties == NULL)
    goto out;
  for (n = 0; _doc_org_freedesktop_portal_flatpak_update_monitor_interface_info.parent_struct.properties[n] != NULL; n++)
    {
      GDBusPropertyInfo *info = _doc_org_freedesktop_portal_flatpak_update_monitor_interface_info.parent_struct.properties[n];
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
        {
          GVariant *value;
          value = _doc_org_freedesktop_portal_flatpak_update_monitor_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.freedesktop.portal.Flatpak.UpdateMonitor", 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 void
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED)
{
}

static void
_doc_org_freedesktop_portal_flatpak_update_monitor_on_signal_update_available (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *object,
    GVariant *arg_update_info)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})",
                   arg_update_info));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.portal.Flatpak.UpdateMonitor", "UpdateAvailable",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void
_doc_org_freedesktop_portal_flatpak_update_monitor_on_signal_progress (
    docOrgFreedesktopPortalFlatpakUpdateMonitor *object,
    GVariant *arg_info)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_SKELETON (object);

  GList      *connections, *l;
  GVariant   *signal_variant;
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));

  signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})",
                   arg_info));
  for (l = connections; l != NULL; l = l->next)
    {
      GDBusConnection *connection = l->data;
      g_dbus_connection_emit_signal (connection,
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.portal.Flatpak.UpdateMonitor", "Progress",
        signal_variant, NULL);
    }
  g_variant_unref (signal_variant);
  g_list_free_full (connections, g_object_unref);
}

static void doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_iface_init (docOrgFreedesktopPortalFlatpakUpdateMonitorIface *iface);
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton, doc_org_freedesktop_portal_flatpak_update_monitor_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_ADD_PRIVATE (docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton)
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR, doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_iface_init))

#else
G_DEFINE_TYPE_WITH_CODE (docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton, doc_org_freedesktop_portal_flatpak_update_monitor_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
                         G_IMPLEMENT_INTERFACE (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR, doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_iface_init))

#endif
static void
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_finalize (GObject *object)
{
  docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton *skeleton = DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_SKELETON (object);
  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 (doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_parent_class)->finalize (object);
}

static void
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_init (docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton *skeleton)
{
#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
  skeleton->priv = doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_get_instance_private (skeleton);
#else
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_SKELETON, docOrgFreedesktopPortalFlatpakUpdateMonitorSkeletonPrivate);
#endif

  g_mutex_init (&skeleton->priv->lock);
  skeleton->priv->context = g_main_context_ref_thread_default ();
}

static void
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_class_init (docOrgFreedesktopPortalFlatpakUpdateMonitorSkeletonClass *klass)
{
  GObjectClass *gobject_class;
  GDBusInterfaceSkeletonClass *skeleton_class;

  gobject_class = G_OBJECT_CLASS (klass);
  gobject_class->finalize = doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_finalize;

  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
  skeleton_class->get_info = doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_dbus_interface_get_info;
  skeleton_class->get_properties = doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_dbus_interface_get_properties;
  skeleton_class->flush = doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_dbus_interface_flush;
  skeleton_class->get_vtable = doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_dbus_interface_get_vtable;

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

static void
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_iface_init (docOrgFreedesktopPortalFlatpakUpdateMonitorIface *iface)
{
  iface->update_available = _doc_org_freedesktop_portal_flatpak_update_monitor_on_signal_update_available;
  iface->progress = _doc_org_freedesktop_portal_flatpak_update_monitor_on_signal_progress;
}

/**
 * doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_new:
 *
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-portal-Flatpak-UpdateMonitor.top_of_page">org.freedesktop.portal.Flatpak.UpdateMonitor</link>.
 *
 * Returns: (transfer full) (type docOrgFreedesktopPortalFlatpakUpdateMonitorSkeleton): The skeleton object.
 */
docOrgFreedesktopPortalFlatpakUpdateMonitor *
doc_org_freedesktop_portal_flatpak_update_monitor_skeleton_new (void)
{
  return DOC_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR (g_object_new (DOC_TYPE_ORG_FREEDESKTOP_PORTAL_FLATPAK_UPDATE_MONITOR_SKELETON, NULL));
}

