diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-11-11 19:15:28 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-11-11 19:15:28 -0800 |
commit | 91eb09a12a040795a2aca06de050b4507af93790 (patch) | |
tree | ec99bf559a02e8e31cd1dbeac6e08ac4ead0202f /src/cparse/cparse.hpp | |
parent | 0f5de703f7641cf583b907c047df98b1014d5653 (diff) | |
download | vyatta-cfg-91eb09a12a040795a2aca06de050b4507af93790.tar.gz vyatta-cfg-91eb09a12a040795a2aca06de050b4507af93790.zip |
continue config parser work
* add parser to package build.
* add prefix, error handling, etc.
* fix handling of empty and 1-char values in lex.
* add API function.
Diffstat (limited to 'src/cparse/cparse.hpp')
-rw-r--r-- | src/cparse/cparse.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cparse/cparse.hpp b/src/cparse/cparse.hpp new file mode 100644 index 0000000..478af7b --- /dev/null +++ b/src/cparse/cparse.hpp @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2010 Vyatta, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef _CPARSE_HPP_ +#define _CPARSE_HPP_ + +namespace cparse { + +int parse_file(FILE *fin); + +} // namespace cparse + +#endif /* _CPARSE_HPP_ */ + |