Tor  0.4.7.0-alpha-dev
kvline.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 kvline.h
9  *
10  * \brief Header for kvline.c
11  **/
12 
13 #ifndef TOR_KVLINE_H
14 #define TOR_KVLINE_H
15 
16 struct config_line_t;
17 
18 #define KV_QUOTED (1u<<0)
19 #define KV_OMIT_KEYS (1u<<1)
20 #define KV_OMIT_VALS (1u<<2)
21 #define KV_QUOTED_QSTRING (1u<<3)
22 #define KV_RAW (1u<<4)
23 
24 struct config_line_t *kvline_parse(const char *line, unsigned flags);
25 char *kvline_encode(const struct config_line_t *line, unsigned flags);
26 
27 #endif /* !defined(TOR_KVLINE_H) */
char * kvline_encode(const config_line_t *line, unsigned flags)
Definition: kvline.c:126
struct config_line_t * kvline_parse(const char *line, unsigned flags)
Definition: kvline.c:199