diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-05-02 09:52:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-05-06 16:35:39 -0400 |
commit | 3c2648bbda53f74a4e960ad149600c3a2b12305c (patch) | |
tree | a0f65d1798218c3bf011017b852ebe71e0887743 /src/feature/relay/relay_periodic.h | |
parent | b394b5b2af7f38a5e66c9875d3a55be5af840933 (diff) | |
download | tor-3c2648bbda53f74a4e960ad149600c3a2b12305c.tar.gz tor-3c2648bbda53f74a4e960ad149600c3a2b12305c.zip |
Move "relay" and "router" periodic callbacks out of mainloop.c
(Some of these callbacks are specific to the OR module, so now it's
time to have an or_sys and or_periodic.)
Diffstat (limited to 'src/feature/relay/relay_periodic.h')
-rw-r--r-- | src/feature/relay/relay_periodic.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/feature/relay/relay_periodic.h b/src/feature/relay/relay_periodic.h new file mode 100644 index 0000000000..b6ea83c749 --- /dev/null +++ b/src/feature/relay/relay_periodic.h @@ -0,0 +1,18 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2019, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * @file relay_periodic.h + * @brief Header for feature/relay/relay_periodic.c + **/ + +#ifndef TOR_FEATURE_RELAY_RELAY_PERIODIC_H +#define TOR_FEATURE_RELAY_RELAY_PERIODIC_H + +void relay_register_periodic_events(void); +void reschedule_descriptor_update_check(void); + +#endif /* !defined(TOR_FEATURE_RELAY_RELAY_PERIODIC_H) */ |