added psl_get_version(), bumped version to 0.2.5

This commit is contained in:
Tim Ruehsen 2014-05-31 19:33:30 +02:00
parent cadb963475
commit ecdadf76e5
5 changed files with 27 additions and 5 deletions

10
NEWS
View File

@ -1,7 +1,11 @@
Copyright (C) 2014 Tim Ruehsen Copyright (C) 2014 Tim Ruehsen
30.05.2014 31.05.2014 Release V0.2.5
* Fixed psl_builtin() to return NULL if no built-in PSL data is available * added psl_get_version()
* removed version from library name
30.05.2014 Release V0.2.4
* fixed psl_builtin() to return NULL if no built-in PSL data is available
27.05.2014 Release V0.2.3 27.05.2014 Release V0.2.3
* changed API version to 0.2 * changed API version to 0.2
@ -12,6 +16,6 @@ Copyright (C) 2014 Tim Ruehsen
* build static library by default * build static library by default
25.04.2014 Hotfix release V0.2.1 25.04.2014 Hotfix release V0.2.1
* Updated to the latest Publix Suffix List * updated to the latest Publix Suffix List
25.04.2014 Initial release V0.2 25.04.2014 Initial release V0.2

View File

@ -1,5 +1,5 @@
AC_INIT([libpsl], [0.2.4], [tim.ruehsen@gmx.de], [libpsl], [http://github.com/rockdaboot/libpsl]) AC_INIT([libpsl], [0.2.5], [tim.ruehsen@gmx.de], [libpsl], [http://github.com/rockdaboot/libpsl])
AC_PREREQ([2.59]) AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.10 -Wall no-define]) AM_INIT_AUTOMAKE([1.10 -Wall no-define])
@ -63,7 +63,7 @@ AS_IF([ test "$enable_man" != no ], [
# 4. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0. # 4. If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
# 5. If any interfaces have been added since the last public release, then increment age. # 5. If any interfaces have been added since the last public release, then increment age.
# 6. If any interfaces have been removed or changed since the last public release, then set age to 0. # 6. If any interfaces have been removed or changed since the last public release, then set age to 0.
AC_SUBST([LIBPSL_SO_VERSION], [0:4:0]) AC_SUBST([LIBPSL_SO_VERSION], [1:0:1])
AC_SUBST([LIBPSL_VERSION], $VERSION) AC_SUBST([LIBPSL_VERSION], $VERSION)
# Check for idn2 # Check for idn2

View File

@ -16,4 +16,5 @@ psl_builtin_file_time
psl_builtin_sha1sum psl_builtin_sha1sum
psl_builtin_filename psl_builtin_filename
psl_is_cookie_domain_acceptable psl_is_cookie_domain_acceptable
psl_get_version
</SECTION> </SECTION>

View File

@ -83,6 +83,9 @@ const char *
/* returns file name of PSL source file */ /* returns file name of PSL source file */
const char * const char *
psl_builtin_filename(void); psl_builtin_filename(void);
/* returns library version */
const char *
psl_get_version(void);
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -674,6 +674,20 @@ const char *psl_builtin_filename(void)
return _psl_filename; return _psl_filename;
} }
/**
* psl_get_version:
*
* Get libpsl version.
*
* Returns: String containing version of libpsl.
*
* Since: 0.2.5
**/
const char *psl_get_version (void)
{
return PACKAGE_VERSION;
}
/** /**
* psl_is_cookie_domain_acceptable: * psl_is_cookie_domain_acceptable:
* @psl: PSL context pointer * @psl: PSL context pointer