X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/00ca9fa67636580409193bf7a9baf394113b4af8..e3ff9e0d326c0dfce08c7b9fb7aaa2b11245a6a5:/client/press.h diff --git a/client/press.h b/client/press.h index b13f9a8..cd34b3d 100644 --- a/client/press.h +++ b/client/press.h @@ -10,13 +10,17 @@ typedef struct { u8_t send_count; } press_t; -bool next_send_less_than(void *user_data, pheap_node_id_t a, pheap_node_id_t b); +typedef struct { + press_t *presses; + pheap_t *sleeps_heap; +} press_pile_t; + +press_pile_t *create_press_pile(); -void create_press(press_t *presses, pheap_t *sleeps_heap, uint32_t timestamp, - u16_t seq); +void create_press(press_pile_t *pp, uint32_t timestamp, u16_t seq); /* When do we next need to send something (in seconds since boot)? * Returns -1 if there's nothing pending. */ -int32_t next_scheduled_send(press_t *presses, pheap_t *sleeps_heap); +int32_t next_scheduled_send(press_pile_t *pp); #endif