diff options
Diffstat (limited to 'src/sdl/warp-buf.h')
-rw-r--r-- | src/sdl/warp-buf.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sdl/warp-buf.h b/src/sdl/warp-buf.h new file mode 100644 index 0000000..5e00e5d --- /dev/null +++ b/src/sdl/warp-buf.h @@ -0,0 +1,17 @@ +#ifndef WARP_BUF_H +#define WARP_BUF_H + +#include <stddef.h> // size_t + +typedef struct { + size_t len, + dst; +} warp_buf_t; + +void warp_buf_clear(warp_buf_t * const); +_Bool warp_buf_has_num(const warp_buf_t * const); +void warp_buf_push_num(warp_buf_t * const, const size_t); +void warp_buf_pop_num(warp_buf_t * const); +_Bool warp_buf_get(const warp_buf_t * const, size_t * const); + +#endif /* WARP_BUF_H */ |