From 55b27b1393a3880b79dfe108b6f13f1a2fa1888b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 26 Aug 2020 20:25:15 +0100 Subject: [PATCH] context: Expose flatpak_context_parse_filesystem for testing Signed-off-by: Simon McVittie Conflict:NA Reference:https://github.com/flatpak/flatpak/commit/55b27b1393a3880b79dfe108b6f13f1a2fa1888b --- common/flatpak-context-private.h | 5 +++++ common/flatpak-context.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/flatpak-context-private.h b/common/flatpak-context-private.h index f47079b..d84f4e0 100644 --- a/common/flatpak-context-private.h +++ b/common/flatpak-context-private.h @@ -79,6 +79,11 @@ extern const char *flatpak_context_devices[]; extern const char *flatpak_context_features[]; extern const char *flatpak_context_shares[]; +gboolean flatpak_context_parse_filesystem (const char *filesystem_and_mode, + char **filesystem_out, + FlatpakFilesystemMode *mode_out, + GError **error); + FlatpakContext *flatpak_context_new (void); void flatpak_context_free (FlatpakContext *context); void flatpak_context_merge (FlatpakContext *context, diff --git a/common/flatpak-context.c b/common/flatpak-context.c index 0d53b13..3b2bcfe 100644 --- a/common/flatpak-context.c +++ b/common/flatpak-context.c @@ -752,7 +752,7 @@ parse_filesystem_flags (const char *filesystem, return g_string_free (g_steal_pointer (&s), FALSE); } -static gboolean +gboolean flatpak_context_parse_filesystem (const char *filesystem_and_mode, char **filesystem_out, FlatpakFilesystemMode *mode_out, -- 2.27.0