summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--Makefile.am22
-rw-r--r--event.32
-rw-r--r--test/Makefile.am7
4 files changed, 23 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a819f5f..380c504a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,3 +32,4 @@ Changes in current version:
o support for hooks on rpc input and output; can be used to implement rpc independent processing such as compression or authentication.
o use a min heap instead of a red-black tree for timeouts; as a result finding the min is a O(1) operation now; from Maxim Yegorushkin
o associate an event base with an rpc pool
+ o added two additional libraries: libevent_core and libevent_extra in addition to the regular libevent. libevent_core contains only the event core whereas libevent_extra contains dns, http and rpc support
diff --git a/Makefile.am b/Makefile.am
index 0ea1b780..46c7f44a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,5 @@
AUTOMAKE_OPTIONS = foreign no-dependencies
-
bin_SCRIPTS = event_rpcgen.py
EXTRA_DIST = acconfig.h event.h event-internal.h log.h evsignal.h evdns.3 \
@@ -21,7 +20,7 @@ EXTRA_DIST = acconfig.h event.h event-internal.h log.h evsignal.h evdns.3 \
WIN32-Prj/libevent.dsw WIN32-Prj/signal_test/signal_test.dsp \
WIN32-Prj/time_test/time_test.dsp
-lib_LTLIBRARIES = libevent.la
+lib_LTLIBRARIES = libevent.la libevent_core.la libevent_extra.la
if BUILD_WIN32
@@ -39,14 +38,23 @@ SYS_INCLUDES =
endif
-libevent_la_SOURCES = event.c buffer.c evbuffer.c log.c event_tagging.c \
- http.c evhttp.h http-internal.h evdns.c evdns.h evrpc.c evutil.c \
- strlcpy.c \
- strlcpy-internal.h evrpc.h evrpc-internal.h strlcpy-internal.h \
- $(SYS_SRC)
+CORE_SRC = event.c buffer.c evbuffer.c log.c evutil.c $(SYS_SRC)
+EXTRA_SRC = event_tagging.c http.c evhttp.h http-internal.h evdns.c \
+ evdns.h evrpc.c evrpc.h evrpc-internal.h \
+ strlcpy.c strlcpy-internal.h strlcpy-internal.h
+
+libevent_la_SOURCES = $(CORE_SRC) $(EXTRA_SRC)
libevent_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
libevent_la_LDFLAGS = -release @VERSION@ -version-info 1:3:0
+libevent_core_la_SOURCES = $(CORE_SRC)
+libevent_core_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
+libevent_core_la_LDFLAGS = -release @VERSION@ -version-info 1:3:0
+
+libevent_extra_la_SOURCES = $(EXTRA_SRC)
+libevent_extra_la_LIBADD = @LTLIBOBJS@ $(SYS_LIBS)
+libevent_extra_la_LDFLAGS = -release @VERSION@ -version-info 1:3:0
+
include_HEADERS = event.h evhttp.h evdns.h evrpc.h evutil.h
INCLUDES = -I$(srcdir)/compat $(SYS_INCLUDES)
diff --git a/event.3 b/event.3
index cff472bd..328f632a 100644
--- a/event.3
+++ b/event.3
@@ -182,7 +182,7 @@
.Ft "char *"
.Fn "evbuffer_readline" "struct evbuffer *buf"
.Ft "struct evhttp *"
-.Fn "evhttp_new"
+.Fn "evhttp_new" "struct event_base *base"
.Ft int
.Fn "evhttp_bind_socket" "struct evhttp *http" "const char *address" "u_short port"
.Ft "void"
diff --git a/test/Makefile.am b/test/Makefile.am
index ab9c6829..ceb856b9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,6 +1,5 @@
AUTOMAKE_OPTIONS = foreign no-dependencies
-LDADD = ../libevent.la
CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat
EXTRA_DIST = regress.rpc
@@ -9,13 +8,19 @@ noinst_PROGRAMS = test-init test-eof test-weof test-time regress bench
BUILT_SOURCES = regress.gen.c regress.gen.h
test_init_SOURCES = test-init.c
+test_init_LDADD = ../libevent_core.la
test_eof_SOURCES = test-eof.c
+test_eof_LDADD = ../libevent_core.la
test_weof_SOURCES = test-weof.c
+test_weof_LDADD = ../libevent_core.la
test_time_SOURCES = test-time.c
+test_time_LDADD = ../libevent_core.la
regress_SOURCES = regress.c regress.h regress_http.c regress_dns.c \
regress_rpc.c \
regress.gen.c regress.gen.h
+regress_LDADD = ../libevent.la
bench_SOURCES = bench.c
+bench_LDADD = ../libevent.la
regress.gen.c regress.gen.h: regress.rpc
$(top_srcdir)/event_rpcgen.py $(srcdir)/regress.rpc || echo "No Python installed"