aboutsummaryrefslogtreecommitdiff
path: root/src/storycode.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-08-30 23:35:43 +0200
committerThomas White <taw@bitwiz.org.uk>2012-08-30 23:35:43 +0200
commit29978f93c0dba6a6a2b164168650620589667fa3 (patch)
treeda606510fdee26062c24e6f5c9a9473311d23a57 /src/storycode.h
parente0c198aa0745472082b77f1037e44a5250ac79e5 (diff)
Add space in API for options and varying block names in an SCBlockList
Diffstat (limited to 'src/storycode.h')
-rw-r--r--src/storycode.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/storycode.h b/src/storycode.h
index 240900d..6ba5e45 100644
--- a/src/storycode.h
+++ b/src/storycode.h
@@ -30,8 +30,16 @@
typedef struct _scblocklist SCBlockList;
typedef struct _scblocklistiterator SCBlockListIterator;
-char *sc_block_list_first(SCBlockList *bl, SCBlockListIterator **piter);
-char *sc_block_list_next(SCBlockList *bl, SCBlockListIterator *iter);
+struct scblock
+{
+ char *name;
+ char *options;
+ char *contents;
+};
+
+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);