summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-14 21:54:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-16 08:40:37 +0200
commit774580c2bde4c8b126eed0a80d00cb22cbfb3193 (patch)
tree7f0fdbc28707c5211391c06ad6bca4632067d0c4 /include/common.h
parent775ba3c093be186d345ab7132116fd0ed3e53ba2 (diff)
downloadbarebox-774580c2bde4c8b126eed0a80d00cb22cbfb3193.tar.gz
barebox-774580c2bde4c8b126eed0a80d00cb22cbfb3193.tar.xz
Make hostname available to C Code
The boards often have a sane default for the hostname. Provide a C function for setting/getting it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 7d05d8ba3b..7173efb10b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -236,6 +236,8 @@ static inline void barebox_banner(void) {}
const char *barebox_get_model(void);
void barebox_set_model(const char *);
+const char *barebox_get_hostname(void);
+void barebox_set_hostname(const char *);
#define IOMEM(addr) ((void __force __iomem *)(addr))