summaryrefslogtreecommitdiff
path: root/src/shared/image-policy.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-04-12 22:38:01 +0900
committerLennart Poettering <lennart@poettering.net>2023-04-13 11:17:28 +0200
commit06e78680e3c36589b785f90ecda64d124905a3f7 (patch)
tree4e30e25ea6b5d15e3156ec783cfef15744df9b27 /src/shared/image-policy.h
parent771805eb44ec42228d9d85f4d35962ff8459bb77 (diff)
downloadsystemd-06e78680e3c36589b785f90ecda64d124905a3f7.tar.gz
image-policy: introduce parse_image_policy_argument() helper
Addresses https://github.com/systemd/systemd/pull/25608/commits/84be0c710d9d562f6d2cf986cc2a8ff4c98a138b#r1060130312, https://github.com/systemd/systemd/pull/25608/commits/84be0c710d9d562f6d2cf986cc2a8ff4c98a138b#r1067927293, and https://github.com/systemd/systemd/pull/25608/commits/84be0c710d9d562f6d2cf986cc2a8ff4c98a138b#r1067926416. Follow-up for 84be0c710d9d562f6d2cf986cc2a8ff4c98a138b.
Diffstat (limited to 'src/shared/image-policy.h')
-rw-r--r--src/shared/image-policy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/image-policy.h b/src/shared/image-policy.h
index 848b24c147..1b3d068c72 100644
--- a/src/shared/image-policy.h
+++ b/src/shared/image-policy.h
@@ -3,6 +3,7 @@
typedef struct ImagePolicy ImagePolicy;
+#include "conf-parser.h"
#include "dissect-image.h"
#include "errno-list.h"
@@ -96,3 +97,6 @@ static inline ImagePolicy* image_policy_free(ImagePolicy *p) {
}
DEFINE_TRIVIAL_CLEANUP_FUNC(ImagePolicy*, image_policy_free);
+
+CONFIG_PARSER_PROTOTYPE(config_parse_image_policy);
+int parse_image_policy_argument(const char *s, ImagePolicy **policy);