summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-04 22:29:45 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-04 22:29:45 +0000
commit9d604ec6156c70149c8eb208c4f185b495fcac85 (patch)
tree2482ee237bbce8804dcb77094f0c65497df4fc3f /src/common/util.h
parent831c988ea1b5104a31ef9cad295bf8a56b10b2e8 (diff)
downloadtor-9d604ec6156c70149c8eb208c4f185b495fcac85.tar.gz
tor-9d604ec6156c70149c8eb208c4f185b495fcac85.zip
Add code to read configuration lines from a string as well as a file
svn:r2676
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index dba95e456d..5674afc6be 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -92,6 +92,7 @@ int write_bytes_to_file(const char *fname, const char *str, size_t len,
int bin);
char *read_file_to_str(const char *filename, int bin);
int parse_line_from_file(char *line, size_t maxlen, FILE *f, char **key_out, char **value_out);
+char *parse_line_from_str(char *line, char **key_out, char **value_out);
char *expand_filename(const char *filename);
/* Net helpers */