From 53e61c8579f56715e1c21b561f244d70bdbf6f79 Mon Sep 17 00:00:00 2001 From: Ingo Huerner Date: Mon, 4 Feb 2013 12:08:08 +0100 Subject: [PATCH] added library versioning (libtool's versioning system); removed seat number limitation in function description --- configure.ac | 22 +++++++++++++++++++++- include/persistence_client_library_file.h | 4 ++-- include/persistence_client_library_key.h | 12 ++++++------ src/Makefile.am | 2 +- 4 files changed, 30 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index dc101a8..7d15d43 100644 --- a/configure.ac +++ b/configure.ac @@ -1,13 +1,33 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_INIT([Persistence Client Library], [0.3.3], [not-valid@xse.de]) + +# create tag version information +m4_define([pers_client_library_tag_version_major], [0]) +m4_define([pers_client_library_tag_version_minor], [4]) +m4_define([pers_client_library_tag_version_micro], [0]) +m4_define([pers_client_library_tag_version], [pers_client_library_tag_version_major().pers_client_library_tag_version_minor().pers_client_library_tag_version_micro()]) + + +AC_INIT([Persistence Client Library], [pers_client_library_tag_version], [not-valid@xse.de]) AC_CONFIG_SRCDIR([Makefile.am]) AM_INIT_AUTOMAKE([dist-bzip2]) AC_GNU_SOURCE() + +# create library version information +m4_define([pers_client_library_version_current], [3]) +m4_define([pers_client_library_version_revision], [0]) +m4_define([pers_client_library_version_age], [0]) +m4_define([pers_client_library_version], [pers_client_library_version_current():pers_client_library_version_revision():pers_client_library_version_age()]) + +PERS_CLIENT_LIBRARY_VERSION=pers_client_library_version() +AC_SUBST([PERS_CLIENT_LIBRARY_VERSION]) + + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + # Overwrite the build in defaults CFLAGS="-Wall -O2" diff --git a/include/persistence_client_library_file.h b/include/persistence_client_library_file.h index cf85b84..25690d0 100644 --- a/include/persistence_client_library_file.h +++ b/include/persistence_client_library_file.h @@ -79,7 +79,7 @@ void* pclFileMapData(void* addr, long size, long offset, int fd); * @param ldbid logical database ID * @param resource_id the resource ID * @param user_no the user ID - * @param seat_no the seat number (seat 0 to 3) + * @param seat_no the seat number * * @return positive value: the POSIX file descriptor; * On error a negative value will be returned with th follwoing error codes: @@ -110,7 +110,7 @@ int pclFileReadData(int fd, void * buffer, int buffer_size); * @param ldbid logical database ID * @param resource_id the resource ID * @param user_no the user ID - * @param seat_no the seat number (seat 0 to 3) + * @param seat_no the seat number * * @return positive value: success; * On error a negative value will be returned with th follwoing error codes: diff --git a/include/persistence_client_library_key.h b/include/persistence_client_library_key.h index fc75498..7f6b850 100644 --- a/include/persistence_client_library_key.h +++ b/include/persistence_client_library_key.h @@ -42,7 +42,7 @@ extern "C" { * @param ldbid logical database ID * @param resource_id the resource ID * @param user_no the user ID - * @param seat_no the seat number (seat 0 to 3) + * @param seat_no the seat number * * @return positive value: success; On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS @@ -57,7 +57,7 @@ int pclKeyDelete(unsigned int ldbid, const char* resource_id, unsigned int user_ * @param ldbid logical database ID * @param resource_id the resource ID * @param user_no the user ID - * @param seat_no the seat number (seat 0 to 3) + * @param seat_no the seat number * * @return positive value: the size; On error a negative value will be returned with th follwoing error codes: * EPERS_LOCKFS, EPERS_BADPOL, EPERS_NOKEY, EPERS_NOKEYDATA or EPERS_NOPRCTABLE @@ -93,7 +93,7 @@ int pclKeyHandleGetSize(int key_handle); * @param ldbid logical database ID * @param resource_id the resource ID * @param user_no the user ID - * @param seat_no the seat number (seat 0 to 3) + * @param seat_no the seat number * * @return positive value: the key handle to access the value; * On error a negative value will be returned with th follwoing error codes: @@ -147,7 +147,7 @@ int pclKeyHandleWriteData(int key_handle, unsigned char* buffer, int buffer_size * @param ldbid logical database ID * @param resource_id the resource ID * @param user_no the user ID - * @param seat_no the seat number (seat 0 to 3) + * @param seat_no the seat number * @param buffer the buffer to read the persistent data * @param buffer_size size of buffer for reading * @@ -163,7 +163,7 @@ int pclKeyReadData(unsigned int ldbid, const char* resource_id, unsigned int use * @param ldbid logical database ID of the resource to monitor * @param resource_id the resource ID * @param user_no the user ID - * @param seat_no the seat number (seat 0 to 3) + * @param seat_no the seat number * * @return positive value: registration OK; On error a negative value will be returned with th follwoing error codes: */ @@ -177,7 +177,7 @@ int pclKeyRegisterNotifyOnChange(unsigned int ldbid, const char* resource_id, un * @param ldbid logical database ID * @param resource_id the resource ID * @param user_no the user ID - * @param seat_no the seat number (seat 0 to 3) + * @param seat_no the seat number * @param buffer the buffer containing the persistent data to write * @param buffer_size the number of bytes to write (default max size is set to 16kB) * use environment variable PERS_MAX_KEY_VAL_DATA_SIZE to modify default size in bytes diff --git a/src/Makefile.am b/src/Makefile.am index 0c2cd5e..fb737e5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -40,6 +40,6 @@ libpersistence_client_library_la_SOURCES = \ persistence_client_library_itzam_errors.c \ crc32.c -libpersistence_client_library_la_LDFLAGS = -export-dynamic $(LDFLAGS) +libpersistence_client_library_la_LDFLAGS = -export-dynamic $(LDFLAGS) -version-info $(PERS_CLIENT_LIBRARY_VERSION) -- 2.7.4