Tor
0.4.6.0-alpha-dev
feature
dirparse
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-2020, 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
15
#include "
lib/testsupport/testsupport.h
"
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
22
addr_policy_t
*
router_parse_addr_policy
(
struct
directory_token_t
*tok,
23
unsigned
fmt_flags);
24
25
#endif
/* !defined(TOR_POLICY_PARSE_H) */
router_parse_addr_policy
addr_policy_t * router_parse_addr_policy(struct directory_token_t *tok, unsigned fmt_flags)
Definition:
policy_parse.c:136
directory_token_t
Definition:
parsecommon.h:201
addr_policy_t
Definition:
addr_policy_st.h:26
MOCK_DECL
#define MOCK_DECL(rv, funcname, arglist)
Definition:
testsupport.h:127
router_parse_addr_policy_item_from_string
addr_policy_t * router_parse_addr_policy_item_from_string(const char *s, int assume_action, int *malformed_list)
Definition:
policy_parse.c:44
testsupport.h
Macros to implement mocking and selective exposure for the test code.
Generated by
1.8.20