mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-31 02:51:22 -05:00
common: Don't depend on generated D-Bus code in utils module
Each of these is only needed in one place, so move them there. This is another step towards the utils module being the lowest-level. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include <gio/gio.h>
|
||||
#include "libglnx.h"
|
||||
|
||||
#include "flatpak-dbus-generated.h"
|
||||
#include "flatpak-run-dbus-private.h"
|
||||
#include "flatpak-run-private.h"
|
||||
#include "flatpak-run-sockets-private.h"
|
||||
@@ -66,6 +67,12 @@
|
||||
|
||||
#define DEFAULT_SHELL "/bin/sh"
|
||||
|
||||
typedef FlatpakSessionHelper AutoFlatpakSessionHelper;
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AutoFlatpakSessionHelper, g_object_unref)
|
||||
|
||||
typedef XdpDbusDocuments AutoXdpDbusDocuments;
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AutoXdpDbusDocuments, g_object_unref)
|
||||
|
||||
static int
|
||||
flatpak_extension_compare_by_path (gconstpointer _a,
|
||||
gconstpointer _b)
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
#include "libglnx.h"
|
||||
#include <gio/gio.h>
|
||||
#include <gio/gunixfdlist.h>
|
||||
#include "flatpak-dbus-generated.h"
|
||||
#include "flatpak-document-dbus-generated.h"
|
||||
#include "flatpak-error.h"
|
||||
#include "flatpak-glib-backports-private.h"
|
||||
#include "flatpak-variant-private.h"
|
||||
@@ -556,14 +554,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlatpakRepoTransaction, flatpak_repo_transaction_
|
||||
|
||||
#define AUTOLOCK(name) G_GNUC_UNUSED __attribute__((cleanup (flatpak_auto_unlock_helper))) GMutex * G_PASTE (auto_unlock, __LINE__) = flatpak_auto_lock_helper (&G_LOCK_NAME (name))
|
||||
|
||||
/* This uses a weird Auto prefix to avoid conflicts with later added autogenerated autoptr support, per:
|
||||
* https://git.gnome.org/browse/glib/commit/?id=1c6cd5f0a3104aa9b62c7f1d3086181f63e71b59
|
||||
*/
|
||||
typedef FlatpakSessionHelper AutoFlatpakSessionHelper;
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AutoFlatpakSessionHelper, g_object_unref)
|
||||
typedef XdpDbusDocuments AutoXdpDbusDocuments;
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AutoXdpDbusDocuments, g_object_unref)
|
||||
|
||||
typedef struct FlatpakXml FlatpakXml;
|
||||
|
||||
struct FlatpakXml
|
||||
|
||||
Reference in New Issue
Block a user