diff --git a/Makefile.am b/Makefile.am index 005b59f..9e45325 100644 --- a/Makefile.am +++ b/Makefile.am @@ -54,6 +54,7 @@ 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 #include +#include #include #include #include @@ -1898,7 +1899,7 @@ 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 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__ */