summaryrefslogtreecommitdiff
path: root/src/or/scheduler.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-02-01 08:13:35 -0500
committerNick Mathewson <nickm@torproject.org>2018-02-01 08:15:09 -0500
commitca85d6621758269f7a94fbec22efa7f9d205c628 (patch)
tree8a6f410e046ee159d2f3fb26b5a4a281fe8e9f2a /src/or/scheduler.h
parentd1c2597096cac27eb9ee842f52384ca4cb28a195 (diff)
parent61cb2993ddb39d72bb312c6904414151d71e0577 (diff)
downloadtor-ca85d6621758269f7a94fbec22efa7f9d205c628.tar.gz
tor-ca85d6621758269f7a94fbec22efa7f9d205c628.zip
Merge branch 'maint-0.3.2'
Diffstat (limited to 'src/or/scheduler.h')
-rw-r--r--src/or/scheduler.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/or/scheduler.h b/src/or/scheduler.h
index ac405c21b7..aeba9e2b75 100644
--- a/src/or/scheduler.h
+++ b/src/or/scheduler.h
@@ -80,8 +80,7 @@ typedef struct scheduler_s {
* (which might be new) will call this so it has the chance to react to the
* new consensus too. If there's a consensus parameter that your scheduler
* wants to keep an eye on, this is where you should check for it. */
- void (*on_new_consensus)(const networkstatus_t *old_c,
- const networkstatus_t *new_c);
+ void (*on_new_consensus)(void);
/* (Optional) To be called when a channel is being freed. Sometimes channels
* go away (for example: the relay on the other end is shutting down). If
@@ -119,8 +118,7 @@ typedef struct scheduler_s {
void scheduler_init(void);
void scheduler_free_all(void);
void scheduler_conf_changed(void);
-void scheduler_notify_networkstatus_changed(const networkstatus_t *old_c,
- const networkstatus_t *new_c);
+void scheduler_notify_networkstatus_changed(void);
MOCK_DECL(void, scheduler_release_channel, (channel_t *chan));
/*
@@ -200,7 +198,7 @@ int scheduler_can_use_kist(void);
void scheduler_kist_set_full_mode(void);
void scheduler_kist_set_lite_mode(void);
scheduler_t *get_kist_scheduler(void);
-int kist_scheduler_run_interval(const networkstatus_t *ns);
+int kist_scheduler_run_interval(void);
#ifdef TOR_UNIT_TESTS
extern int32_t sched_run_interval;