diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-10-16 14:11:42 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-10-16 14:12:19 +0200 |
commit | f54a00e158207fb2e13380af48b4b4abcf767f8d (patch) | |
tree | ec277f31746927ced3b7acee58b31da76c9e00a1 | |
parent | e329d7d0878b1d6fb75a6e6e93d206393d1bb6a8 (diff) | |
download | dt-utils-f54a00e158207fb2e13380af48b4b4abcf767f8d.tar.gz dt-utils-f54a00e158207fb2e13380af48b4b4abcf767f8d.tar.xz |
barebox-state: make state_get() state_get_var() non static
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | src/barebox-state.c | 5 | ||||
-rw-r--r-- | src/barebox-state.h | 7 |
3 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 005b59f..9e45325 100644 --- a/Makefile.am +++ b/Makefile.am @@ -54,6 +54,7 @@ barebox_state_SOURCES = \ src/barebox-state.c \ \ src/asm/unaligned.h \ + src/barebox-state.h \ src/base64.h \ src/crypto/internal.h \ src/crypto/sha.h \ diff --git a/src/barebox-state.c b/src/barebox-state.c index 8995628..bc1010e 100644 --- a/src/barebox-state.c +++ b/src/barebox-state.c @@ -32,6 +32,7 @@ #include <linux/fs.h> #include <mtd/mtd-abi.h> +#include <barebox-state.h> #include <common.h> #include <digest.h> #include <dt.h> @@ -1898,7 +1899,7 @@ static char *__state_string_get(struct state_variable *var) return str; } -static char *state_get_var(struct state *state, const char *var) +char *state_get_var(struct state *state, const char *var) { struct state_variable *sv; struct variable_type *vtype; @@ -1941,7 +1942,7 @@ static int state_set_var(struct state *state, const char *var, const char *val) } -static struct state *state_get(const char *name) +struct state *state_get(const char *name) { struct device_node *root, *node, *partition_node; char *path; diff --git a/src/barebox-state.h b/src/barebox-state.h new file mode 100644 index 0000000..08d5b6e --- /dev/null +++ b/src/barebox-state.h @@ -0,0 +1,7 @@ +#ifndef __BAREBOX_STATE__ +#define __BAREBOX_STATE__ + +struct state *state_get(const char *name); +char *state_get_var(struct state *state, const char *var); + +#endif /* __BAREBOX_STATE__ */ |