mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Create cpuworker.h
This commit is contained in:
parent
0bfa34e1f6
commit
98d1314c7e
@ -23,6 +23,7 @@
|
|||||||
#include "connection_or.h"
|
#include "connection_or.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
|
#include "cpuworker.h"
|
||||||
#include "router.h"
|
#include "router.h"
|
||||||
#include "routerlist.h"
|
#include "routerlist.h"
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "connection.h"
|
#include "connection.h"
|
||||||
#include "connection_edge.h"
|
#include "connection_edge.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
|
#include "cpuworker.h"
|
||||||
#include "geoip.h"
|
#include "geoip.h"
|
||||||
#include "rendclient.h"
|
#include "rendclient.h"
|
||||||
#include "rendservice.h"
|
#include "rendservice.h"
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "connection_edge.h"
|
#include "connection_edge.h"
|
||||||
#include "connection_or.h"
|
#include "connection_or.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
|
#include "cpuworker.h"
|
||||||
#include "dnsserv.h"
|
#include "dnsserv.h"
|
||||||
#include "geoip.h"
|
#include "geoip.h"
|
||||||
#include "rendclient.h"
|
#include "rendclient.h"
|
||||||
|
25
src/or/cpuworker.h
Normal file
25
src/or/cpuworker.h
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/* Copyright (c) 2001 Matej Pfajfar.
|
||||||
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
||||||
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
||||||
|
* Copyright (c) 2007-2010, The Tor Project, Inc. */
|
||||||
|
/* See LICENSE for licensing information */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file cpuworker.h
|
||||||
|
* \brief Header file for cpuworker.c.
|
||||||
|
**/
|
||||||
|
|
||||||
|
#ifndef _TOR_CPUWORKER_H
|
||||||
|
#define _TOR_CPUWORKER_H
|
||||||
|
|
||||||
|
void cpu_init(void);
|
||||||
|
void cpuworkers_rotate(void);
|
||||||
|
int connection_cpu_finished_flushing(connection_t *conn);
|
||||||
|
int connection_cpu_reached_eof(connection_t *conn);
|
||||||
|
int connection_cpu_process_inbuf(connection_t *conn);
|
||||||
|
int assign_onionskin_to_cpuworker(connection_t *cpuworker,
|
||||||
|
or_circuit_t *circ,
|
||||||
|
char *onionskin);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -22,6 +22,7 @@
|
|||||||
#include "connection_edge.h"
|
#include "connection_edge.h"
|
||||||
#include "connection_or.h"
|
#include "connection_or.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
|
#include "cpuworker.h"
|
||||||
#include "dnsserv.h"
|
#include "dnsserv.h"
|
||||||
#include "geoip.h"
|
#include "geoip.h"
|
||||||
#include "rendclient.h"
|
#include "rendclient.h"
|
||||||
|
11
src/or/or.h
11
src/or/or.h
@ -3164,17 +3164,6 @@ typedef enum {
|
|||||||
BOOTSTRAP_STATUS_DONE=100
|
BOOTSTRAP_STATUS_DONE=100
|
||||||
} bootstrap_status_t;
|
} bootstrap_status_t;
|
||||||
|
|
||||||
/********************************* cpuworker.c *****************************/
|
|
||||||
|
|
||||||
void cpu_init(void);
|
|
||||||
void cpuworkers_rotate(void);
|
|
||||||
int connection_cpu_finished_flushing(connection_t *conn);
|
|
||||||
int connection_cpu_reached_eof(connection_t *conn);
|
|
||||||
int connection_cpu_process_inbuf(connection_t *conn);
|
|
||||||
int assign_onionskin_to_cpuworker(connection_t *cpuworker,
|
|
||||||
or_circuit_t *circ,
|
|
||||||
char *onionskin);
|
|
||||||
|
|
||||||
/********************************* directory.c ***************************/
|
/********************************* directory.c ***************************/
|
||||||
|
|
||||||
int directories_have_accepted_server_descriptor(void);
|
int directories_have_accepted_server_descriptor(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user