diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-01-07 20:48:25 +0000 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-01-07 20:48:25 +0000 |
commit | 115e8fbfe3af0e0556a58b34b2a52c79536628e0 (patch) | |
tree | ae48b10e2791f87d936fb09f8d4dd61b82a8eaeb /src/sc_parse.h | |
parent | a7fc324e125fbbdd062172bbf37777c9b8d1d97b (diff) |
Initial work for new SC processor
Diffstat (limited to 'src/sc_parse.h')
-rw-r--r-- | src/sc_parse.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/sc_parse.h b/src/sc_parse.h new file mode 100644 index 0000000..d7d8df3 --- /dev/null +++ b/src/sc_parse.h @@ -0,0 +1,51 @@ +/* + * sc_parse.h + * + * Copyright © 2013-2014 Thomas White <taw@bitwiz.org.uk> + * + * This file is part of Colloquium. + * + * Colloquium is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 SC_PARSE_H +#define SC_PARSE_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +typedef struct _scblocklist SCBlockList; +typedef struct _scblocklistiterator SCBlockListIterator; + +struct scblock +{ + char *name; + char *options; + char *contents; + + size_t offset; +}; + +struct scblock *sc_block_list_first(SCBlockList *bl, + SCBlockListIterator **piter); +struct scblock *sc_block_list_next(SCBlockList *bl, SCBlockListIterator *iter); + +extern SCBlockList *sc_find_blocks(const char *sc, const char *blockname); +extern void sc_block_list_free(SCBlockList *bl); + +extern char *remove_blocks(const char *in, const char *blockname); + +#endif /* SC_PARSE_H */ |