diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-10-24 10:16:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-10-24 10:16:46 -0400 |
commit | 3a232ef64a159d0c3c6fd36f6c9748d99e994471 (patch) | |
tree | d3057134d730fcede95544b58ed30d5cdfd27744 /src/or/confparse.c | |
parent | 5382b174c5e0c1ba2c285c79ee33bb6caa9fe5cf (diff) | |
download | tor-3a232ef64a159d0c3c6fd36f6c9748d99e994471.tar.gz tor-3a232ef64a159d0c3c6fd36f6c9748d99e994471.zip |
Module documentation for config.c and confparse.c
Diffstat (limited to 'src/or/confparse.c')
-rw-r--r-- | src/or/confparse.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/or/confparse.c b/src/or/confparse.c index efcf4f981e..ca54284dba 100644 --- a/src/or/confparse.c +++ b/src/or/confparse.c @@ -1,3 +1,4 @@ + /* Copyright (c) 2001 Matej Pfajfar. * Copyright (c) 2001-2004, Roger Dingledine. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. @@ -9,6 +10,16 @@ * * \brief Back-end for parsing and generating key-value files, used to * implement the torrc file format and the state file. + * + * This module is used by config.c to parse and encode torrc + * configuration files, and by statefile.c to parse and encode the + * $DATADIR/state file. + * + * To use this module, its callers provide an instance of + * config_format_t to describe the mappings from a set of configuration + * options to a number of fields in a C structure. With this mapping, + * the functions here can convert back and forth between the C structure + * specified, and a linked list of key-value pairs. */ #include "or.h" |