mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 05:14:46 -04:00
Increment version to 2.0.1-alpha, and add a numeric version facility
svn:r1193
This commit is contained in:
parent
b346038724
commit
d047b323bd
12
Makefile.am
12
Makefile.am
@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4
|
|||||||
|
|
||||||
# This is the point release for libevent. It shouldn't include any
|
# This is the point release for libevent. It shouldn't include any
|
||||||
# a/b/c/d/e notations.
|
# a/b/c/d/e notations.
|
||||||
RELEASE = 1.4
|
RELEASE = 2.0
|
||||||
|
|
||||||
# This is the version info for the libevent binary API. It has three
|
# This is the version info for the libevent binary API. It has three
|
||||||
# numbers:
|
# numbers:
|
||||||
@ -25,7 +25,15 @@ RELEASE = 1.4
|
|||||||
# compatibility with old binaries. Increment Current. Set Age to 0,
|
# compatibility with old binaries. Increment Current. Set Age to 0,
|
||||||
# since we're backward compatible with no previous APIs. Set Revision
|
# since we're backward compatible with no previous APIs. Set Revision
|
||||||
# to 0 too.
|
# to 0 too.
|
||||||
VERSION_INFO = 2:0:0
|
#
|
||||||
|
# Version history:
|
||||||
|
# 1.4:
|
||||||
|
# 2 -- Libevent ??? ..Libevent 1.4.10
|
||||||
|
# [Gap left for possible intermediate versions]
|
||||||
|
#
|
||||||
|
# 2.0
|
||||||
|
# 1 -- Libevent 2.0.1-alpha.
|
||||||
|
VERSION_INFO = 1:0:0
|
||||||
|
|
||||||
bin_SCRIPTS = event_rpcgen.py
|
bin_SCRIPTS = event_rpcgen.py
|
||||||
|
|
||||||
|
@ -4,8 +4,9 @@ AC_INIT(event.c)
|
|||||||
|
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE(libevent,1.4.99-trunk)
|
AM_INIT_AUTOMAKE(libevent,2.0.1-alpha)
|
||||||
AM_CONFIG_HEADER(config.h)
|
AM_CONFIG_HEADER(config.h)
|
||||||
|
AC_DEFINE(NUMERIC_VERSION, 0x02000100, [Numeric representation of the version])
|
||||||
|
|
||||||
dnl Initialize prefix.
|
dnl Initialize prefix.
|
||||||
if test "$prefix" = "NONE"; then
|
if test "$prefix" = "NONE"; then
|
||||||
|
6
event.c
6
event.c
@ -1551,6 +1551,12 @@ event_get_version(void)
|
|||||||
return (_EVENT_VERSION);
|
return (_EVENT_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ev_uint32_t
|
||||||
|
event_get_version_number(void)
|
||||||
|
{
|
||||||
|
return (_EVENT_NUMERIC_VERSION);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* No thread-safe interface needed - the information should be the same
|
* No thread-safe interface needed - the information should be the same
|
||||||
* for all threads.
|
* for all threads.
|
||||||
|
@ -543,12 +543,34 @@ evutil_socket_t event_get_fd(struct event *ev);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the libevent version number.
|
Get the libevent version.
|
||||||
|
|
||||||
@return a string containing the version number of libevent
|
Note that this will give you the version of the library that you're
|
||||||
*/
|
currently linked against, not the version of the headers that you've
|
||||||
|
compiled against.
|
||||||
|
|
||||||
|
@return a string containing the version number of Libevent
|
||||||
|
*/
|
||||||
const char *event_get_version(void);
|
const char *event_get_version(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Return a numeric representation of Libevent's version.
|
||||||
|
|
||||||
|
Note that this will give you the version of the library that you're
|
||||||
|
currently linked against, not the version of the headers you've used to
|
||||||
|
compile.
|
||||||
|
|
||||||
|
The format uses one byte each for the major, minor, and patchlevel parts of
|
||||||
|
the version number. The low-order byte is unused. For example, version
|
||||||
|
2.0.1-alpha has a numeric representation of 0x02000100
|
||||||
|
*/
|
||||||
|
ev_uint32_t event_get_version_number(void);
|
||||||
|
|
||||||
|
/** As event_get_version, but gives the version of Libevent's headers. */
|
||||||
|
#define LIBEVENT_VERSION _EVENT_VERSION
|
||||||
|
/** As event_get_version_number, but gives the version number of Libevent's
|
||||||
|
* headers. */
|
||||||
|
#define LIBEVENT_VERSION_NUMBER _EVENT_NUMERIC_VERSION
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set the number of different event priorities (threadsafe variant).
|
Set the number of different event priorities (threadsafe variant).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user