summaryrefslogtreecommitdiffstats
path: root/src/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/json.h b/src/json.h
index d3838cf..421f88d 100644
--- a/src/json.h
+++ b/src/json.h
@@ -2,6 +2,7 @@
#define _OG_JSON_H
#include <jansson.h>
+#include <stdint.h>
#include "schedule.h"
int og_json_parse_string(const json_t *element, const char **str);
@@ -146,4 +147,22 @@ struct og_cache_image {
void og_cache_image_free(struct list_head *cache_list);
int og_json_parse_cache(json_t *element, struct list_head *cache_list);
+
+#define OG_PARAM_EFI_ENTRIES (1UL << 0)
+#define OG_PARAM_EFI_ORDER (1UL << 1)
+#define OG_PARAM_EFI_NAME (1UL << 2)
+#define OG_PARAM_EFI_DESCRIPTION (1UL << 3)
+#define OG_PARAM_EFI_ACTIVE (1UL << 4)
+
+struct og_boot_entry {
+ const char *description;
+ const char *name;
+ bool active;
+ uint64_t order;
+ struct list_head list;
+};
+
+void og_boot_entry_free(struct list_head *boot_entry_list);
+int og_json_parse_efi(json_t *element, struct list_head *boot_entry_list);
+
#endif