diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2007-05-18 13:45:03 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2007-05-18 13:45:03 +0000 |
| commit | 9bd0fc6cdc2b7853667fdf18bf2cbd0e2168f233 (patch) | |
| tree | 42f76555238042e031e2d5c729240610a7b970ae /misc/subr.h | |
| parent | c8ab530c957a0cd8cc8654f25c4e82610394467c (diff) | |
| download | btpd-9bd0fc6cdc2b7853667fdf18bf2cbd0e2168f233.tar.gz btpd-9bd0fc6cdc2b7853667fdf18bf2cbd0e2168f233.zip | |
o Rename net_(write|read)32 to (enc|dec)_be32. Add similar functions for 64
bits as well. Implement them in libmisc instead of in btpd. o Change resume file format and related APIs. The resume files are now memory mapped.
Diffstat (limited to 'misc/subr.h')
| -rw-r--r-- | misc/subr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/subr.h b/misc/subr.h index e9eb088..d0bf831 100644 --- a/misc/subr.h +++ b/misc/subr.h @@ -9,6 +9,11 @@ #define SHAHEXSIZE 41 +uint32_t dec_be32(const void *buf); +uint64_t dec_be64(const void *buf); +void enc_be32(void *buf, uint32_t num); +void enc_be64(void *buf, uint64_t num); + int set_nonblocking(int fd); int set_blocking(int fd); |