Tor  0.4.7.0-alpha-dev
policy_parse.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-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file policy_parse.h
9  * \brief Header file for policy_parse.c.
10  **/
11 
12 #ifndef TOR_POLICY_PARSE_H
13 #define TOR_POLICY_PARSE_H
14 
16 
17 struct directory_token_t;
18 
20  (const char *s, int assume_action, int *malformed_list));
21 
23  unsigned fmt_flags);
24 
25 #endif /* !defined(TOR_POLICY_PARSE_H) */
addr_policy_t * router_parse_addr_policy(struct directory_token_t *tok, unsigned fmt_flags)
Definition: policy_parse.c:136
addr_policy_t * router_parse_addr_policy_item_from_string(const char *s, int assume_action, int *malformed_list)
Definition: policy_parse.c:44
Macros to implement mocking and selective exposure for the test code.
#define MOCK_DECL(rv, funcname, arglist)
Definition: testsupport.h:127