2018-12-06 20:13:29 +01:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2019-01-16 18:33:22 +01:00
|
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
2018-12-06 20:13:29 +01:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file kvline.h
|
|
|
|
*
|
|
|
|
* \brief Header for kvline.c
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef TOR_KVLINE_H
|
|
|
|
#define TOR_KVLINE_H
|
|
|
|
|
|
|
|
struct config_line_t;
|
|
|
|
|
|
|
|
#define KV_QUOTED (1u<<0)
|
|
|
|
#define KV_OMIT_KEYS (1u<<1)
|
2019-04-05 21:29:37 +02:00
|
|
|
#define KV_OMIT_VALS (1u<<2)
|
2019-04-09 15:49:03 +02:00
|
|
|
#define KV_QUOTED_QSTRING (1u<<3)
|
2018-12-06 20:13:29 +01:00
|
|
|
|
|
|
|
struct config_line_t *kvline_parse(const char *line, unsigned flags);
|
|
|
|
char *kvline_encode(const struct config_line_t *line, unsigned flags);
|
|
|
|
|
|
|
|
#endif /* !defined(TOR_KVLINE_H) */
|