summaryrefslogtreecommitdiffstats
path: root/src/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
index e37f1b2..d3838cf 100644
--- a/src/json.h
+++ b/src/json.h
@@ -132,4 +132,18 @@ struct og_procedure {
int og_json_parse_procedure(json_t *element, struct og_procedure *proc);
+#define OG_PARAM_IMG_NAME (1UL << 0)
+#define OG_PARAM_IMG_SIZE (1UL << 1)
+#define OG_PARAM_IMG_CHECKSUM (1UL << 2)
+
+struct og_cache_image {
+ const char *name;
+ uint64_t size;
+ const char *checksum;
+ struct list_head list;
+};
+
+void og_cache_image_free(struct list_head *cache_list);
+int og_json_parse_cache(json_t *element, struct list_head *cache_list);
+
#endif