diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-02-20 22:51:31 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-02-20 22:51:31 +0100 |
commit | 2244ab129bf25893cae4d68313222ef810bd0631 (patch) | |
tree | bafc8f43f481f5ae380d084cccfa4fdbc87f5bad /libstorycode/presentation.c | |
parent | 24c20239779d0ec616adde651c594c7bf08d58c7 (diff) |
Add creation of most slide items
Diffstat (limited to 'libstorycode/presentation.c')
-rw-r--r-- | libstorycode/presentation.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libstorycode/presentation.c b/libstorycode/presentation.c index e393020..cafb368 100644 --- a/libstorycode/presentation.c +++ b/libstorycode/presentation.c @@ -95,3 +95,17 @@ void presentation_add_slide(Presentation *p, Slide *s) p->slides[p->n_slides++] = s; } + + +int presentation_num_slides(Presentation *p) +{ + return p->n_slides; +} + + +Slide *presentation_slide(Presentation *p, int i) +{ + if ( i >= p->n_slides ) return NULL; + if ( i < 0 ) return NULL; + return p->slides[i]; +} |