summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2020-08-26 20:25:15 +0100
committerAlexander Larsson <alexander.larsson@gmail.com>2020-08-27 17:48:50 +0200
commit55b27b1393a3880b79dfe108b6f13f1a2fa1888b (patch)
tree46020be9d8698213b89a76c501e1c40f7f3b0fd7
parent115d82e6ff28375de9f5287a6d1f9fe64ce2555d (diff)
downloadflatpak-55b27b1393a3880b79dfe108b6f13f1a2fa1888b.tar.gz
context: Expose flatpak_context_parse_filesystem for testing
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--common/flatpak-context-private.h5
-rw-r--r--common/flatpak-context.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/common/flatpak-context-private.h b/common/flatpak-context-private.h
index 48995b49..45879ac0 100644
--- a/common/flatpak-context-private.h
+++ b/common/flatpak-context-private.h
@@ -82,6 +82,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 c4f4f5f4..32fb07b5 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,