2019-05-02 15:52:03 +02:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2020-01-09 00:39:17 +01:00
|
|
|
* Copyright (c) 2007-2020, The Tor Project, Inc. */
|
2019-05-02 15:52:03 +02:00
|
|
|
/* 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
|
|
|
|
|
2019-11-14 07:17:17 +01:00
|
|
|
#ifdef HAVE_MODULE_RELAY
|
|
|
|
|
2019-05-02 15:52:03 +02:00
|
|
|
void relay_register_periodic_events(void);
|
|
|
|
void reschedule_descriptor_update_check(void);
|
|
|
|
|
2019-11-14 07:28:39 +01:00
|
|
|
#else /* !defined(HAVE_MODULE_RELAY) */
|
2019-11-14 07:17:17 +01:00
|
|
|
|
|
|
|
#include "lib/cc/compat_compiler.h"
|
|
|
|
|
|
|
|
#define relay_register_periodic_events() \
|
|
|
|
STMT_NIL
|
|
|
|
#define reschedule_descriptor_update_check() \
|
|
|
|
STMT_NIL
|
|
|
|
|
2019-11-14 07:28:39 +01:00
|
|
|
#endif /* defined(HAVE_MODULE_RELAY) */
|
2019-11-14 07:17:17 +01:00
|
|
|
|
2019-05-02 15:52:03 +02:00
|
|
|
#endif /* !defined(TOR_FEATURE_RELAY_RELAY_PERIODIC_H) */
|