tor  0.4.2.1-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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
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 
23 struct config_line_t *kvline_parse(const char *line, unsigned flags);
24 char *kvline_encode(const struct config_line_t *line, unsigned flags);
25 
26 #endif /* !defined(TOR_KVLINE_H) */
struct config_line_t * kvline_parse(const char *line, unsigned flags)
Definition: kvline.c:192
char * kvline_encode(const config_line_t *line, unsigned flags)
Definition: kvline.c:119