]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-config/storage.h
lib: Add pb-config module
[petitboot] / lib / pb-config / storage.h
diff --git a/lib/pb-config/storage.h b/lib/pb-config/storage.h
new file mode 100644 (file)
index 0000000..a1d5269
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef STORAGE_H
+#define STORAGE_H
+
+#include <stdbool.h>
+
+struct config;
+
+struct config_storage {
+       int     (*load)(struct config_storage *st, struct config *config);
+};
+
+struct config_storage *create_powerpc_nvram_storage(void *ctx);
+struct config_storage *create_test_storage(void *ctx);
+struct config_storage *create_null_storage(void *ctx);
+
+#endif /* STORAGE_H */
+