diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-27 16:52:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-27 16:59:56 -0400 |
commit | b9b44bf000735135e1913fd9c22cd6c1547dbdb3 (patch) | |
tree | d986c9001e83e3d4c079fd0c4f749101b82cc6e2 /src/lib/encoding/cstring.h | |
parent | 696f6f15697260255146d634e1529202cc4c2b77 (diff) | |
download | tor-b9b44bf000735135e1913fd9c22cd6c1547dbdb3.tar.gz tor-b9b44bf000735135e1913fd9c22cd6c1547dbdb3.zip |
Move confline.c to lib/encoding: it is about encoding key-value pairs
Also, move "unescape_string()" to encoding too, since it's about
encoding data as C strings.
Diffstat (limited to 'src/lib/encoding/cstring.h')
-rw-r--r-- | src/lib/encoding/cstring.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/encoding/cstring.h b/src/lib/encoding/cstring.h new file mode 100644 index 0000000000..3dff5e7f7f --- /dev/null +++ b/src/lib/encoding/cstring.h @@ -0,0 +1,13 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2018, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +#ifndef TOR_CSTRING_H +#define TOR_CSTRING_H + +#include <stddef.h> +const char *unescape_string(const char *s, char **result, size_t *size_out); + +#endif /* !defined(TOR_CSTRING_H) */ |