summaryrefslogtreecommitdiff
path: root/src/or/periodic.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-17 08:26:04 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-17 08:26:04 -0500
commit661e5bdbfae8f66a5b12caeb8636e665186bcc55 (patch)
tree706c3a3381b26601c3042adef3839b8c2295146e /src/or/periodic.h
parenteb721ed2d9f3abc049b92b904f5d47d08bae9311 (diff)
downloadtor-661e5bdbfae8f66a5b12caeb8636e665186bcc55.tar.gz
tor-661e5bdbfae8f66a5b12caeb8636e665186bcc55.zip
Changes to 3199 branch based on feedback from special
Diffstat (limited to 'src/or/periodic.h')
-rw-r--r--src/or/periodic.h13
1 files changed, 7 insertions, 6 deletions
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 <b>last_action_time</b> 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 <b>now</b> 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 <b>last_action_time</b> 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);