aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2010-01-12 11:23:50 -0900
committerDavid M. Syzdek <david@syzdek.net>2010-01-12 11:23:50 -0900
commitd7f40d20e3f9f352d8c4dbb640950c6d28bf81b7 (patch)
treedaf552b4a460f12355b2070c1ff594ee0c771636 /include
parent009fe33e8cd8d5e8261e5da74d97c4cd1ffeac76 (diff)
downloaddmstools-d7f40d20e3f9f352d8c4dbb640950c6d28bf81b7.tar.gz
dmstools-d7f40d20e3f9f352d8c4dbb640950c6d28bf81b7.tar.bz2
dmstools-d7f40d20e3f9f352d8c4dbb640950c6d28bf81b7.tar.xz
dmstools-d7f40d20e3f9f352d8c4dbb640950c6d28bf81b7.zip
Expanding builtin version functions in libdms.la
Diffstat (limited to 'include')
-rw-r--r--include/dms.h19
-rw-r--r--include/dmsversion.h.in48
2 files changed, 67 insertions, 0 deletions
diff --git a/include/dms.h b/include/dms.h
index 1c9a5dd..2aa3374 100644
--- a/include/dms.h
+++ b/include/dms.h
@@ -106,6 +106,7 @@
106/////////////// 106///////////////
107 107
108#include <inttypes.h> 108#include <inttypes.h>
109#include <dmsversion.h>
109 110
110 111
111/////////////////// 112///////////////////
@@ -134,6 +135,24 @@
134////////////////// 135//////////////////
135BEGIN_C_DECLS 136BEGIN_C_DECLS
136 137
138// returns the binary GNU Libtool LIB_VERSION_INFO value
139DMS_F(int) dms_lib_version PARAMS((void));
140
141// returns the GNU Libtool LIB_VERSION_AGE value
142DMS_F(int) dms_lib_version_age PARAMS((void));
143
144// checks for library binary compatability
145DMS_F(int) dms_lib_version_check PARAMS((int version));
146
147// returns the GNU Libtool LIB_VERSION_CURRENT value
148DMS_F(int) dms_lib_version_current PARAMS((void));
149
150// returns the GNU Libtool LIB_VERSION_INFO string
151DMS_F(const char *) dms_lib_version_info PARAMS((void));
152
153// returns the GNU Libtool LIB_VERSION_REVISION value
154DMS_F(int) dms_lib_version_revision PARAMS((void));
155
137// returns version info string for library 156// returns version info string for library
138DMS_F(const char *) dms_version PARAMS((void)); 157DMS_F(const char *) dms_version PARAMS((void));
139 158
diff --git a/include/dmsversion.h.in b/include/dmsversion.h.in
new file mode 100644
index 0000000..646d547
--- /dev/null
+++ b/include/dmsversion.h.in
@@ -0,0 +1,48 @@
1/*
2 * DMS Tools and Utilities
3 * Copyright (C) 2010 David M. Syzdek <david@syzdek.net>.
4 *
5 * @SYZDEK_LICENSE_HEADER_START@
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License Version 2 as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 * @SYZDEK_LICENSE_HEADER_END@
21 */
22/**
23 * @file lib/dms.h defines API for libdms.la
24 */
25#ifndef _DMSVERSION_H
26#define _DMSVERSION_H 1
27
28///////////////////
29// //
30// Definitions //
31// //
32///////////////////
33
34// Module Version Info (similar to libtool's library version)
35// Current -- the current version number of this API
36// Revision -- the software revision of this API version
37// Age -- How many seqential past API versions is supported by
38// this API version
39#define DMS_LIB_VERSION_CURRENT @LIB_VERSION_CURRENT@
40#define DMS_LIB_VERSION_REVISION @LIB_VERSION_REVISION@
41#define DMS_LIB_VERSION_AGE @LIB_VERSION_AGE@
42#define DMS_LIB_VERSION_INFO "@LIB_VERSION_INFO@"
43#define DMS_LIB_VERSION ( ((@LIB_VERSION_CURRENT@ & 0xFFFF) << 16) | \
44 ((@LIB_VERSION_REVISION@ & 0xFF) << 8) | \
45 (@LIB_VERSION_AGE@ & 0xFF) )
46
47
48#endif /* end of header file */