]>
git.scottworley.com Git - tattlekey/blob - client/press.h
69789e0984100a522f79f456ac1122a40d56c7aa
4 #include "pico/cyw43_arch.h"
5 #include "pico/util/pheap.h"
18 press_pile_t
*create_press_pile();
20 /* Adds this press to the pile.
21 * Copies the contents of `press`. */
22 void add_press(press_pile_t
*pp
, press_t
*press
);
24 /* When do we next need to send something (in seconds since boot)?
25 * Returns -1 if there's nothing pending. */
26 int32_t next_scheduled_send(press_pile_t
*pp
);
28 /* Find a press ready for resend at or before `now`.
29 * Move it out of the press-pile `pp` and into into `press`.
30 * Or return false if there is no press due for re-send. */
31 bool get_press_due_for_resend(press_pile_t
*pp
, uint32_t now
, press_t
*press
);