tor  0.4.2.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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
12 #ifndef TOR_POLICY_PARSE_H
13 #define TOR_POLICY_PARSE_H
14 
16 
17 struct directory_token_t;
18 
19 MOCK_DECL(addr_policy_t *, router_parse_addr_policy_item_from_string,
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
Macros to implement mocking and selective exposure for the test code.
#define MOCK_DECL(rv, funcname, arglist)
Definition: testsupport.h:94