diff options
author | Daniel Schultz <d.schultz@phytec.de> | 2017-11-03 11:48:28 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-11-07 07:47:10 +0100 |
commit | 09f15cdb3817902897544296cc90d1eeff4a9487 (patch) | |
tree | b328cabb4d0af3f9c5739371a7093023f1c99d66 /include/state.h | |
parent | dc74265d2ac074a18609d51bad1fdbd2bbcdd608 (diff) | |
download | barebox-09f15cdb3817902897544296cc90d1eeff4a9487.tar.gz barebox-09f15cdb3817902897544296cc90d1eeff4a9487.tar.xz |
common: state: Add function to read state MAC
This API function allows to receive a copy of a MAC address from
variables in a state.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/state.h')
-rw-r--r-- | include/state.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/state.h b/include/state.h index 63164f92e5..f1882ae026 100644 --- a/include/state.h +++ b/include/state.h @@ -23,4 +23,6 @@ int state_load(struct state *state); int state_save(struct state *state); void state_info(void); +int state_read_mac(struct state *state, const char *name, u8 *buf); + #endif /* __STATE_H */ |