@@ -20,20 +20,22 @@ limitations under the License.
2020#ifdef _WIN32
2121 #define CDECL __cdecl
2222
23- #ifdef ARCHIVER_EXPORTS
24- #define ARCHIVER_API __declspec (dllexport)
23+ #ifdef KANZI_EXPORTS
24+ #define KANZI_API __declspec (dllexport)
2525 #else
26- #define ARCHIVER_API __declspec (dllimport)
26+ #define KANZI_API __declspec (dllimport)
2727 #endif
2828#else
2929 #define CDECL
30- #define ARCHIVER_API
30+ #define KANZI_API
3131#endif
3232
3333#include < stdio.h>
3434
3535
36- #define ARCHIVER_VERSION_STRING " 1.0.0"
36+ #define KANZI_COMP_VERSION_MAJOR 1
37+ #define KANZI_COMP_VERSION_MINOR 0
38+ #define KANZI_COMP_VERSION_PATCH 0
3739
3840
3941#ifdef __cplusplus
@@ -64,7 +66,7 @@ limitations under the License.
6466 * @return the version number of the library.
6567 * Useful for checking for compatibility at runtime.
6668 */
67- ARCHIVER_API unsigned int CDECL Archiver_GetVersion (void );
69+ KANZI_API unsigned int CDECL getVersion (void );
6870
6971
7072 /* *
@@ -76,7 +78,7 @@ limitations under the License.
7678 *
7779 * @return 0 in case of success, else see error code in Error.hpp
7880 */
79- ARCHIVER_API int CDECL initCompressor (struct cData * cParam, FILE* dst, struct cContext ** ctx);
81+ KANZI_API int CDECL initCompressor (struct cData * cParam, FILE* dst, struct cContext ** ctx);
8082
8183 /* *
8284 * Compress a block of data. The compressor must have been initialized.
@@ -89,7 +91,7 @@ limitations under the License.
8991 *
9092 * @return 0 in case of success, else see error code in Error.hpp
9193 */
92- ARCHIVER_API int CDECL compress (struct cContext * ctx, const unsigned char * src, size_t inSize, size_t * outSize);
94+ KANZI_API int CDECL compress (struct cContext * ctx, const unsigned char * src, size_t inSize, size_t * outSize);
9395
9496 /* *
9597 * Dispose the compressor and cleanup memory resources.
@@ -100,7 +102,7 @@ limitations under the License.
100102 *
101103 * @return 0 in case of success, else see error code in Error.hpp
102104 */
103- ARCHIVER_API int CDECL disposeCompressor (struct cContext ** ctx, size_t * outSize);
105+ KANZI_API int CDECL disposeCompressor (struct cContext ** ctx, size_t * outSize);
104106
105107#ifdef __cplusplus
106108 }
0 commit comments