diff options
author | sanine <sanine.not@pm.me> | 2022-04-04 13:40:20 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-04-04 13:40:20 -0500 |
commit | 5e3d8e950d97a222b15d41de1ae17ccf51621471 (patch) | |
tree | cbf807e36097d498d40b7acd196de22834e882b3 /lily-test.h | |
parent | 29179fc15a1d085299601267fe0bc9c6be5dfa1c (diff) |
refactor: rename lily_mock_queue_t -> lily_queue_t
Diffstat (limited to 'lily-test.h')
-rw-r--r-- | lily-test.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lily-test.h b/lily-test.h index 783e134..1e604fe 100644 --- a/lily-test.h +++ b/lily-test.h @@ -114,27 +114,26 @@ void _lily_assert_memory_not_equal(const char *name_a, const char *name_b, * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ -typedef struct lily_mock_queue_t { +typedef struct lily_queue_t { size_t buf_size; uint8_t *buf; uint8_t *front, *back; -} lily_mock_queue_t; +} lily_queue_t; -lily_mock_queue_t* lily_queue_create(); -void lily_queue_destroy(lily_mock_queue_t *q); +lily_queue_t* lily_queue_create(); +void lily_queue_destroy(lily_queue_t *q); #define lily_enqueue(q, type, value) \ do { \ type _var = value; \ _lily_enqueue(q, sizeof(type), (uint8_t*)(&_var)); \ } while(0) -void _lily_enqueue(lily_mock_queue_t *q, size_t size, uint8_t *data); +void _lily_enqueue(lily_queue_t *q, size_t size, uint8_t *data); #define lily_dequeue(q, type, ptr) \ _lily_dequeue(q, sizeof(type), (uint8_t*) ptr) -void _lily_dequeue(lily_mock_queue_t *q, size_t size, uint8_t *ptr); - +void _lily_dequeue(lily_queue_t *q, size_t size, uint8_t *ptr); #endif |