author | Michael Krelin <hacker@klever.net> | 2008-04-05 11:17:33 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-04-05 11:17:33 (UTC) |
commit | 04fb190243442e83349f129b523ab747e58100bf (patch) (side-by-side diff) | |
tree | ddc28357fbe78b07fd3a5e0aa8088130bf305829 /include/napkin/st | |
download | napkin-0.0.zip napkin-0.0.tar.gz napkin-0.0.tar.bz2 |
Initial commit into public repository0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | include/napkin/st/decode.h | 15 | ||||
-rw-r--r-- | include/napkin/st/download.h | 20 |
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 */ |