Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add some of the public api for the TOC

  • Loading branch information...
commit 028c9bb35ef41cb9787c75a9027c5a712dadfec9 1 parent 1f03c5a
Nathan Eror authored November 08, 2012

Showing 2 changed files with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  EPUB3.c
  2. 2  EPUB3.h
8  EPUB3.c
@@ -47,6 +47,14 @@ EXPORT EPUB3Error EPUB3GetPathsOfSequentialResources(EPUB3Ref epub, const char *
47 47
   return error;
48 48
 }
49 49
 
  50
+EXPORT int32_t EPUB3GetCountOfTocRootItems(EPUB3Ref epub)
  51
+{
  52
+  assert(epub != NULL);
  53
+  assert(epub->toc != NULL);
  54
+
  55
+  return epub->toc->rootItemCount;
  56
+}
  57
+
50 58
 #pragma mark - Base Object
51 59
 
52 60
 void EPUB3ObjectRelease(void *object)
2  EPUB3.h
@@ -36,6 +36,8 @@ EPUB3Error EPUB3GetPathsOfSequentialResources(EPUB3Ref epub, const char ** resou
36 36
 EPUB3Error EPUB3ExtractArchiveToPath(EPUB3Ref epub, const char * path);
37 37
 EPUB3Error EPUB3CopyRootFilePathFromContainer(EPUB3Ref epub, char ** rootPath);
38 38
 
  39
+int32_t EPUB3GetCountOfTocRootItems(EPUB3Ref epub);
  40
+
39 41
 #if defined(__cplusplus)
40 42
 } //EXTERN "C"
41 43
 #endif

0 notes on commit 028c9bb

Please sign in to comment.
Something went wrong with that request. Please try again.