diff options
Diffstat (limited to 'serialise.h')
| -rw-r--r-- | serialise.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/serialise.h b/serialise.h index 251c772..a88f3de 100644 --- a/serialise.h +++ b/serialise.h @@ -7,8 +7,15 @@ #define SERIALISE_H #include <stddef.h> +#include <stdint.h> int read_all_buf(int fd, void *buf, size_t len); int write_all_buf(int fd, const void *buf, size_t len); +#define SERIALISE_UINT_DECL(bits) \ + int read_u##bits(int fd, uint##bits##_t *val); \ + int write_u##bits(int fd, uint##bits##_t val); + +SERIALISE_UINT_DECL(32) + #endif /* SERIALISE_H */ |
