]> git.scottworley.com Git - tattlekey/blobdiff - client/press.h
client: get_press_due_for_resend()
[tattlekey] / client / press.h
index 898bb1a85a4334c3cbb1e83046813100da251aac..69789e0984100a522f79f456ac1122a40d56c7aa 100644 (file)
@@ -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