comparison OrthancCppClient/Package/AUTOGENERATED/OrthancCppClient.h @ 571:ec2c2411d4db laaw

versioning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Sep 2013 15:03:24 +0200
parents ffedcc8f0938
children 8fb9867d8089
comparison
equal deleted inserted replaced
570:86c5bb651bfa 571:ec2c2411d4db
79 #include <stdlib.h> 79 #include <stdlib.h>
80 #include <dlfcn.h> 80 #include <dlfcn.h>
81 81
82 /* cf. http://sourceforge.net/p/predef/wiki/Architectures/ */ 82 /* cf. http://sourceforge.net/p/predef/wiki/Architectures/ */
83 #ifdef __amd64__ 83 #ifdef __amd64__
84 #define LAAW_ORTHANC_CLIENT_DEFAULT_PATH "libOrthancClient_Linux64.so.1.0" 84 #define LAAW_ORTHANC_CLIENT_DEFAULT_PATH "libOrthancClient.so.0.6"
85 #else 85 #else
86 #define LAAW_ORTHANC_CLIENT_DEFAULT_PATH "libOrthancClient_Linux32.so.1.0" 86 #define LAAW_ORTHANC_CLIENT_DEFAULT_PATH "libOrthancClient.so.0.6"
87 #endif 87 #endif
88 88
89 #define LAAW_ORTHANC_CLIENT_CALL_CONV 89 #define LAAW_ORTHANC_CLIENT_CALL_CONV
90 #define LAAW_ORTHANC_CLIENT_HANDLE_TYPE void* 90 #define LAAW_ORTHANC_CLIENT_HANDLE_TYPE void*
91 #define LAAW_ORTHANC_CLIENT_HANDLE_NULL NULL 91 #define LAAW_ORTHANC_CLIENT_HANDLE_NULL NULL
379 379
380 /** 380 /**
381 * It is assumed that the API does not change when the revision 381 * It is assumed that the API does not change when the revision
382 * number (MAJOR.MINOR.REVISION) changes. 382 * number (MAJOR.MINOR.REVISION) changes.
383 **/ 383 **/
384 if (strcmp(getVersion(), "1.0")) 384 if (strcmp(getVersion(), "0.6"))
385 { 385 {
386 throw ::OrthancClient::OrthancClientException("Mismatch between the C++ header and the library version"); 386 throw ::OrthancClient::OrthancClientException("Mismatch between the C++ header and the library version");
387 } 387 }
388 388
389 functionsIndex_[60] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_FreeString", "4"); 389 functionsIndex_[60] = LAAW_ORTHANC_CLIENT_GET_FUNCTION(handle_, "LAAW_EXTERNC_FreeString", "4");