diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-12-11 15:40:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-01-07 08:46:09 +0100 |
commit | f98b02365ff32646475b1c39e3affd9502d27280 (patch) | |
tree | 30e0656f324896068ab684b2702d068237f12ce5 /include/sntp.h | |
parent | e25911524369db851d3d2f1d2f048e6d85a221b6 (diff) | |
download | barebox-f98b02365ff32646475b1c39e3affd9502d27280.tar.gz barebox-f98b02365ff32646475b1c39e3affd9502d27280.tar.xz |
net: Add SNTP support
This adds support for retrieving the time via Simple Network Time
Protocol (SNTP). No fancy features are supported, only plainly getting
the current time.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/sntp.h')
-rw-r--r-- | include/sntp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sntp.h b/include/sntp.h new file mode 100644 index 0000000000..bfcfcfa8c8 --- /dev/null +++ b/include/sntp.h @@ -0,0 +1,8 @@ +#ifndef __SNTP_H +#define __SNTP_H + +#include <types.h> + +s64 sntp(const char *server); + +#endif /* __SNTP_H */ |