summaryrefslogtreecommitdiff
path: root/src/or/scheduler.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-09-15 09:06:11 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-09-15 11:40:59 -0400
commit1033e14a693e8d80341428b592779fe145eb3152 (patch)
treeea3d7d1f97f4e73a6464127181dd02371d208c7c /src/or/scheduler.h
parentc910610701475d6fcb13284c318fe5c10fc4bdea (diff)
downloadtor-1033e14a693e8d80341428b592779fe145eb3152.tar.gz
tor-1033e14a693e8d80341428b592779fe145eb3152.zip
sched: Define SCHEDULER_KIST_PRIVATE for more encapsulation
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/scheduler.h')
-rw-r--r--src/or/scheduler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/scheduler.h b/src/or/scheduler.h
index 7766b21425..98c3599817 100644
--- a/src/or/scheduler.h
+++ b/src/or/scheduler.h
@@ -155,6 +155,8 @@ void scheduler_touch_channel(channel_t *chan);
* Defined in scheduler_kist.c
*********************************/
+#ifdef SCHEDULER_KIST_PRIVATE
+
/* Socke table entry which holds information of a channel's socket and kernel
* TCP information. Only used by KIST. */
typedef struct socket_table_ent_s {
@@ -188,6 +190,8 @@ int32_t kist_scheduler_run_interval(const networkstatus_t *ns);
extern int32_t sched_run_interval;
#endif /* TOR_UNIT_TESTS */
+#endif /* SCHEDULER_KIST_PRIVATE */
+
/*********************************
* Defined in scheduler_vanilla.c
*********************************/