diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-07-23 19:58:06 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-07-27 07:58:16 +0200 |
commit | 0f1548ab18c09efda944def3597bafc2cd9552c8 (patch) | |
tree | ed62cdfa1bc0289b5688a45b7afcaea49b97d31c /src/or/or.h | |
parent | a86f464f6b04e2f592d3e8dcbd2b26414a36e971 (diff) | |
download | tor-0f1548ab18c09efda944def3597bafc2cd9552c8.tar.gz tor-0f1548ab18c09efda944def3597bafc2cd9552c8.zip |
Create main.h
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/or/or.h b/src/or/or.h index 550331fce7..461c55c82a 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3268,59 +3268,6 @@ typedef enum { DIRREQ_OR_CONN_BUFFER_FLUSHED = 4 } dirreq_state_t; -/********************************* main.c ***************************/ - -extern int has_completed_circuit; - -int connection_add(connection_t *conn); -int connection_remove(connection_t *conn); -void connection_unregister_events(connection_t *conn); -int connection_in_array(connection_t *conn); -void add_connection_to_closeable_list(connection_t *conn); -int connection_is_on_closeable_list(connection_t *conn); - -smartlist_t *get_connection_array(void); - -typedef enum watchable_events { - READ_EVENT=0x02, - WRITE_EVENT=0x04 -} watchable_events_t; -void connection_watch_events(connection_t *conn, watchable_events_t events); -int connection_is_reading(connection_t *conn); -void connection_stop_reading(connection_t *conn); -void connection_start_reading(connection_t *conn); - -int connection_is_writing(connection_t *conn); -void connection_stop_writing(connection_t *conn); -void connection_start_writing(connection_t *conn); - -void connection_stop_reading_from_linked_conn(connection_t *conn); - -void directory_all_unreachable(time_t now); -void directory_info_has_arrived(time_t now, int from_cache); - -void ip_address_changed(int at_interface); -void dns_servers_relaunch_checks(void); - -void control_signal_act(int the_signal); -void handle_signals(int is_parent); - -int try_locking(or_options_t *options, int err_if_locked); -int have_lockfile(void); -void release_lockfile(void); - -void tor_cleanup(void); -void tor_free_all(int postfork); - -int tor_main(int argc, char *argv[]); - -#ifdef MAIN_PRIVATE -int do_main_loop(void); -int do_list_fingerprint(void); -void do_hash_password(void); -int tor_init(int argc, char **argv); -#endif - /********************************* microdesc.c *************************/ typedef struct microdesc_cache_t microdesc_cache_t; |