libsigrok
|
00001 /* 00002 * This file is part of the sigrok project. 00003 * 00004 * Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 #include "sigrok.h" 00022 00023 SR_API int sr_package_version_major_get(void) 00024 { 00025 return SR_PACKAGE_VERSION_MAJOR; 00026 } 00027 00028 SR_API int sr_package_version_minor_get(void) 00029 { 00030 return SR_PACKAGE_VERSION_MINOR; 00031 } 00032 00033 SR_API int sr_package_version_micro_get(void) 00034 { 00035 return SR_PACKAGE_VERSION_MICRO; 00036 } 00037 00038 SR_API const char *sr_package_version_string_get(void) 00039 { 00040 return SR_PACKAGE_VERSION_STRING; 00041 } 00042 00043 SR_API int sr_lib_version_current_get(void) 00044 { 00045 return SR_LIB_VERSION_CURRENT; 00046 } 00047 00048 SR_API int sr_lib_version_revision_get(void) 00049 { 00050 return SR_LIB_VERSION_REVISION; 00051 } 00052 00053 SR_API int sr_lib_version_age_get(void) 00054 { 00055 return SR_LIB_VERSION_AGE; 00056 } 00057 00058 SR_API const char *sr_lib_version_string_get(void) 00059 { 00060 return SR_LIB_VERSION_STRING; 00061 }