summaryrefslogtreecommitdiffstats
path: root/lib/pb-config/storage.h
blob: 5b4af56a0793d78abe8e96e1a12a72cb290acc0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef STORAGE_H
#define STORAGE_H

#include <stdbool.h>

struct config;

struct config_storage {
	int	(*load)(struct config_storage *st, struct config *config);
	int	(*save)(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 */

OpenPOWER on IntegriCloud