X-Git-Url: http://git.scottworley.com/tattlekey/blobdiff_plain/67001c93828f1e4beb2386d415f0ed5b15afc960..b512ec26593fde453ce121f30ba8d36b1e3678df:/client/sends.h?ds=sidebyside diff --git a/client/sends.h b/client/sends.h index 651d0e4..3dc1c74 100644 --- a/client/sends.h +++ b/client/sends.h @@ -10,11 +10,13 @@ typedef struct { u8_t send_count; } send_t; -uint32_t next_send(send_t *s); - bool next_send_less_than(void *user_data, pheap_node_id_t a, pheap_node_id_t b); void create_send(send_t *sleeping_sends, pheap_t *sleeps_heap, 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(send_t *sleeping_sends, pheap_t *sleeps_heap); + #endif