X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/f68e05b24686490605df455a66704909c84ea606..9ae691e990a970f89a591c483395c2e00c35b678:/client/press.h diff --git a/client/press.h b/client/press.h index 898bb1a..69789e0 100644 --- a/client/press.h +++ b/client/press.h @@ -25,4 +25,9 @@ void add_press(press_pile_t *pp, press_t *press); * Returns -1 if there's nothing pending. */ int32_t next_scheduled_send(press_pile_t *pp); +/* Find a press ready for resend at or before `now`. + * Move it out of the press-pile `pp` and into into `press`. + * Or return false if there is no press due for re-send. */ +bool get_press_due_for_resend(press_pile_t *pp, uint32_t now, press_t *press); + #endif