corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [28/31] incubator-corinthia git commit: work
Date Mon, 23 Feb 2015 11:39:31 GMT
work


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/42e48a5f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/42e48a5f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/42e48a5f

Branch: refs/heads/experimentzip
Commit: 42e48a5f31f21900e49025adb0b2e4da09511345
Parents: 6148efc
Author: jani <jani@apache.org>
Authored: Mon Feb 23 12:16:51 2015 +0100
Committer: jani <jani@apache.org>
Committed: Mon Feb 23 12:16:51 2015 +0100

----------------------------------------------------------------------
 DocFormats/headers/DFPlatform.h      | 12 +++---
 DocFormats/platform/src/ZipWrapper.c | 71 +++++++++++++++++++++++++++++--
 2 files changed, 74 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/42e48a5f/DocFormats/headers/DFPlatform.h
----------------------------------------------------------------------
diff --git a/DocFormats/headers/DFPlatform.h b/DocFormats/headers/DFPlatform.h
index 8480161..1521794 100755
--- a/DocFormats/headers/DFPlatform.h
+++ b/DocFormats/headers/DFPlatform.h
@@ -70,14 +70,14 @@ typedef struct {
         } DFextZipHandle;
 typedef DFextZipHandle * DFextZipHandleP;
 
-DFextZipHandleP DFextZipOpen(const char *zipFilename);
-DFextZipHandleP DFextZipCreae(const char *zipFilename);
-int             DFextZipClose(DFextZipHandleP zipHandle);
+DFextZipHandleP DFextZipOpen  (const char     *zipFilename);
+DFextZipHandleP DFextZipCreate(const char     *zipFilename);
+int             DFextZipClose (DFextZipHandleP zipHandle);
 
 int             DFextZipOpenFileByName(DFextZipHandleP zipHandle, char            *entryName);
-int             DFextZipOpenFileByPtr(DFextZipHandleP zipHandle,  DFextZipHandleP  entryPtr);
-int             DFextZipAppendNewFile(DFextZipHandleP zipHandle,  char            *entryName);
-int             DFextZipCloseFile(DFextZipHandleP zipHandle);
+int             DFextZipOpenFileByPtr (DFextZipHandleP zipHandle, DFextZipHandleP  entryPtr);
+int             DFextZipAppendNewFile (DFextZipHandleP zipHandle, char            *entryName);
+int             DFextZipCloseFile     (DFextZipHandleP zipHandle);
 
 int DFextZipReadCurrentFile (DFextZipHandleP zipHandle,       void *buf, const int maxLen);
 int DFextZipWriteCurrentFile(DFextZipHandleP zipHandle, const void *buf, const int len);

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/42e48a5f/DocFormats/platform/src/ZipWrapper.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/src/ZipWrapper.c b/DocFormats/platform/src/ZipWrapper.c
index e512f75..e3a9c6a 100644
--- a/DocFormats/platform/src/ZipWrapper.c
+++ b/DocFormats/platform/src/ZipWrapper.c
@@ -16,14 +16,79 @@
 #include "zip.h"
 
 
-#ifdef JANI
-DFextZipHandleP DFextZipOpen(const char *zipFilename, int doUnzip) {
+DFextZipHandleP DFextZipOpen(const char *zipFilename)
+{
     DFextZipHandleP zipHandle = malloc(sizeof(DFextZipHandle));
- 
+
     // no more memory
     if (!zipHandle)
         return NULL;
 
+
+    return zipHandle;
+}
+
+
+
+DFextZipHandleP DFextZipCreate(const char *zipFilename)
+{
+    return NULL;
+}
+
+
+
+int DFextZipClose(DFextZipHandleP zipHandle)
+{
+    return 0;
+}
+
+
+
+int DFextZipOpenFileByName(DFextZipHandleP zipHandle, char *entryName)
+{
+    return 0;
+}
+
+
+
+int DFextZipOpenFileByPtr(DFextZipHandleP zipHandle, DFextZipHandleP  entryPtr)
+{
+    return 0;
+}
+
+
+
+int DFextZipAppendNewFile(DFextZipHandleP zipHandle, char *entryName)
+{
+    return 0;
+}
+
+
+
+int DFextZipCloseFile(DFextZipHandleP zipHandle)
+{
+    return 0;
+}
+
+
+
+int DFextZipReadCurrentFile(DFextZipHandleP zipHandle, void *buf, const int maxLen)
+{
+    return 0;
+}
+
+
+
+int DFextZipWriteCurrentFile(DFextZipHandleP zipHandle, const void *buf, const int len)
+{
+    return 0;
+}
+
+
+
+
+#ifdef JANI
+DFextZipHandleP DFextZipOpen(const char *zipFilename, int doUnzip) {
     // Open file
     zipHandle->zipFirst = 1;
     zipHandle->zipFlag = doUnzip;


Mime
View raw message