13 #ifndef TOR_STATEFILE_H
14 #define TOR_STATEFILE_H
25 void or_state_free_all(
void);
28 #ifdef STATEFILE_PRIVATE
30 const char *transport);
32 #define or_state_free(st) FREE_AND_NULL(or_state_t, or_state_free_, (st))
STATIC const config_mgr_t * get_state_mgr(void)
STATIC void or_state_remove_obsolete_lines(config_line_t **extra_lines)
STATIC config_line_t * get_transport_in_state_by_name(const char *transport)
int or_state_loaded(void)
or_state_t * get_or_state(void)
void save_transport_to_state(const char *transport_name, const tor_addr_t *addr, uint16_t port)
void or_state_mark_dirty(or_state_t *state, time_t when)
char * get_stored_bindaddr_for_server_transport(const char *transport)
int did_last_state_file_write_fail(void)
int or_state_save(time_t now)
#define MOCK_DECL(rv, funcname, arglist)