Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some of the public api for the TOC

  • Loading branch information...
commit 028c9bb35ef41cb9787c75a9027c5a712dadfec9 1 parent 1f03c5a
@neror neror authored
Showing with 10 additions and 0 deletions.
  1. +8 −0 EPUB3.c
  2. +2 −0  EPUB3.h
View
8 EPUB3.c
@@ -47,6 +47,14 @@ EXPORT EPUB3Error EPUB3GetPathsOfSequentialResources(EPUB3Ref epub, const char *
return error;
}
+EXPORT int32_t EPUB3GetCountOfTocRootItems(EPUB3Ref epub)
+{
+ assert(epub != NULL);
+ assert(epub->toc != NULL);
+
+ return epub->toc->rootItemCount;
+}
+
#pragma mark - Base Object
void EPUB3ObjectRelease(void *object)
View
2  EPUB3.h
@@ -36,6 +36,8 @@ EPUB3Error EPUB3GetPathsOfSequentialResources(EPUB3Ref epub, const char ** resou
EPUB3Error EPUB3ExtractArchiveToPath(EPUB3Ref epub, const char * path);
EPUB3Error EPUB3CopyRootFilePathFromContainer(EPUB3Ref epub, char ** rootPath);
+int32_t EPUB3GetCountOfTocRootItems(EPUB3Ref epub);
+
#if defined(__cplusplus)
} //EXTERN "C"
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.