summaryrefslogtreecommitdiffabout
path: root/include/napkin/st
Side-by-side diff
Diffstat (limited to 'include/napkin/st') (more/less context) (ignore whitespace changes)
-rw-r--r--include/napkin/st/decode.h15
-rw-r--r--include/napkin/st/download.h20
2 files changed, 35 insertions, 0 deletions
diff --git a/include/napkin/st/decode.h b/include/napkin/st/decode.h
new file mode 100644
index 0000000..e1f1d07
--- a/dev/null
+++ b/include/napkin/st/decode.h
@@ -0,0 +1,15 @@
+#ifndef __NAPKIN_ST_DECODE_H
+#define __NAPKIN_ST_DECODE_H
+
+#include <napkin/types.h>
+
+namespace napkin {
+ namespace sleeptracker {
+
+ hypnodata_t& decode(hypnodata_t& rv,const void *data,size_t data_length);
+ hypnodata_ptr_t decode(const void *data,size_t data_length);
+
+ }
+}
+
+#endif /* __NAPKIN_ST_DECODE_H */
diff --git a/include/napkin/st/download.h b/include/napkin/st/download.h
new file mode 100644
index 0000000..92d1d9d
--- a/dev/null
+++ b/include/napkin/st/download.h
@@ -0,0 +1,20 @@
+#ifndef __NAPKIN_ST_DOWNLOAD_H
+#define __NAPKIN_ST_DOWNLOAD_H
+
+#include <napkin/types.h>
+
+namespace napkin {
+ namespace sleeptracker {
+
+ int download_initiate(const char *port=0);
+ size_t download_finish(int fd,void *buffer,size_t buffer_size);
+
+ size_t download(
+ void *buffer,size_t buffer_size,
+ const char *port=0);
+ hypnodata_ptr_t download(const char *port=0);
+
+ }
+}
+
+#endif /* __NAPKIN_ST_DOWNLOAD_H */