From 661e5bdbfae8f66a5b12caeb8636e665186bcc55 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 17 Nov 2015 08:26:04 -0500 Subject: Changes to 3199 branch based on feedback from special --- src/or/periodic.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/or/periodic.h') diff --git a/src/or/periodic.h b/src/or/periodic.h index e57666c0c8..a77f411690 100644 --- a/src/or/periodic.h +++ b/src/or/periodic.h @@ -4,12 +4,13 @@ #ifndef TOR_PERIODIC_H #define TOR_PERIODIC_H -/** Callback function for a periodic event to take action. -* The return value influences the next time the function will get called. -* Return -1 to not update last_action_time and be polled again in -* the next second. If a positive value is returned it will update the -* interval time. If the returned value is larger than now then it -* is assumed to be a future time to poll again. */ +#define PERIODIC_EVENT_NO_UPDATE (-1) + +/** Callback function for a periodic event to take action. The return value +* influences the next time the function will get called. Return +* PERIODIC_EVENT_NO_UPDATE to not update last_action_time and be polled +* again in the next second. If a positive value is returned it will update the +* interval time. */ typedef int (*periodic_event_helper_t)(time_t now, const or_options_t *options); -- cgit v1.2.3-54-g00ecf