]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-config/storage-null.c
lib: Add pb-config module
[petitboot] / lib / pb-config / storage-null.c
diff --git a/lib/pb-config/storage-null.c b/lib/pb-config/storage-null.c
new file mode 100644 (file)
index 0000000..b9fe6ed
--- /dev/null
@@ -0,0 +1,19 @@
+
+#include <stdlib.h>
+
+#include "storage.h"
+
+static int load(struct config_storage *st __attribute__((unused)),
+               struct config *config __attribute__((unused)))
+{
+       return 0;
+}
+
+static struct config_storage st = {
+       .load  = load,
+};
+
+struct config_storage *create_null_storage(void *ctx __attribute__((unused)))
+{
+       return &st;
+}