tor  0.4.1.0-alpha-dev
fmt_routerstatus.h
Go to the documentation of this file.
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
12 #ifndef TOR_FMT_ROUTERSTATUS_H
13 #define TOR_FMT_ROUTERSTATUS_H
14 
17 typedef enum {
29 
31 #define MAX_V_LINE_LEN 128
32 
34  const routerstatus_t *rs,
35  const char *version,
36  const char *protocols,
38  int consensus_method,
39  const vote_routerstatus_t *vrs);
40 
41 #endif /* !defined(TOR_FMT_ROUTERSTATUS_H) */
char * routerstatus_format_entry(const routerstatus_t *rs, const char *version, const char *protocols, routerstatus_format_type_t format, int consensus_method, const vote_routerstatus_t *vrs)
routerstatus_format_type_t