1 /* 2 * MessagePack for C version information 3 * 4 * Copyright (C) 2008-2009 FURUHASHI Sadayuki 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 #ifndef MSGPACK_VERSION_H 19 #define MSGPACK_VERSION_H 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 MSGPACK_DLLEXPORT 26 const char* msgpack_version(void); 27 MSGPACK_DLLEXPORT 28 int msgpack_version_major(void); 29 MSGPACK_DLLEXPORT 30 int msgpack_version_minor(void); 31 MSGPACK_DLLEXPORT 32 int msgpack_version_revision(void); 33 34 #include "version_master.h" 35 36 #define MSGPACK_STR(v) #v 37 #define MSGPACK_VERSION_I(maj, min, rev) MSGPACK_STR(maj) "." MSGPACK_STR(min) "." MSGPACK_STR(rev) 38 39 #define MSGPACK_VERSION MSGPACK_VERSION_I(MSGPACK_VERSION_MAJOR, MSGPACK_VERSION_MINOR, MSGPACK_VERSION_REVISION) 40 41 #ifdef __cplusplus 42 } 43 #endif 44 45 #endif /* msgpack/version.h */ 46 47