Expose scheduler_compare_channels() to test suite

This commit is contained in:
Andrea Shepard 2014-01-24 03:12:28 -08:00
parent c5f73e52e5
commit b7125961de
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,6 @@ STATIC time_t queue_heuristic_timestamp = 0;
/* Scheduler static function declarations */ /* Scheduler static function declarations */
static int scheduler_compare_channels(const void *c1_v, const void *c2_v);
static void scheduler_evt_callback(evutil_socket_t fd, static void scheduler_evt_callback(evutil_socket_t fd,
short events, void *arg); short events, void *arg);
static int scheduler_more_work(void); static int scheduler_more_work(void);
@ -168,7 +167,7 @@ scheduler_free_all(void)
* Comparison function to use when sorting pending channels * Comparison function to use when sorting pending channels
*/ */
static int STATIC int
scheduler_compare_channels(const void *c1_v, const void *c2_v) scheduler_compare_channels(const void *c1_v, const void *c2_v)
{ {
channel_t *c1 = NULL, *c2 = NULL; channel_t *c1 = NULL, *c2 = NULL;

View File

@ -37,6 +37,7 @@ void scheduler_touch_channel(channel_t *chan);
/* Things only scheduler.c and its test suite should see */ /* Things only scheduler.c and its test suite should see */
#ifdef SCHEDULER_PRIVATE_ #ifdef SCHEDULER_PRIVATE_
STATIC int scheduler_compare_channels(const void *c1_v, const void *c2_v);
STATIC uint64_t scheduler_get_queue_heuristic(void); STATIC uint64_t scheduler_get_queue_heuristic(void);
STATIC void scheduler_update_queue_heuristic(time_t now); STATIC void scheduler_update_queue_heuristic(time_t now);
#endif #endif