Skip to content

Commit

Permalink
libevent.a to encpasulate event abstractions like epoll, kequeue etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
manjuraj committed Apr 15, 2013
1 parent 2059373 commit 68f3915
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ AC_CONFIG_FILES([Makefile
contrib/Makefile
src/Makefile
src/hashkit/Makefile
src/proto/Makefile])
src/proto/Makefile
src/event/Makefile])

# Generate the "configure" script
AC_OUTPUT
5 changes: 3 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MAINTAINERCLEANFILES = Makefile.in
AM_CPPFLAGS = -D_GNU_SOURCE -D_XOPEN_SOURCE
AM_CPPFLAGS += -I $(top_srcdir)/src/hashkit
AM_CPPFLAGS += -I $(top_srcdir)/src/proto
AM_CPPFLAGS += -I $(top_srcdir)/src/event
AM_CPPFLAGS += -I $(top_srcdir)/contrib/yaml-0.1.4/include

AM_CFLAGS = -Wall -Wshadow
Expand All @@ -15,7 +16,7 @@ AM_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissin

AM_LDFLAGS = -lm -lpthread -rdynamic

SUBDIRS = hashkit proto
SUBDIRS = hashkit proto event

bin_PROGRAMS = nutcracker

Expand All @@ -29,7 +30,6 @@ nutcracker_SOURCES = \
nc_request.c \
nc_response.c \
nc_mbuf.c nc_mbuf.h \
nc_epoll.c nc_kqueue.c nc_event.h \
nc_conf.c nc_conf.h \
nc_stats.c nc_stats.h \
nc_signal.c nc_signal.h \
Expand All @@ -43,4 +43,5 @@ nutcracker_SOURCES = \

nutcracker_LDADD = $(top_builddir)/src/hashkit/libhashkit.a
nutcracker_LDADD += $(top_builddir)/src/proto/libproto.a
nutcracker_LDADD += $(top_builddir)/src/event/libevent.a
nutcracker_LDADD += $(top_builddir)/contrib/yaml-0.1.4/src/.libs/libyaml.a
14 changes: 14 additions & 0 deletions src/event/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = -I $(top_srcdir)/src

AM_CFLAGS = -Wall -Wshadow
AM_CFLAGS += -Wno-unused-parameter -Wno-unused-value

noinst_LIBRARIES = libevent.a

noinst_HEADERS = nc_event.h

libevent_a_SOURCES = \
nc_epoll.c \
nc_kqueue.c
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion src/nc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <nc_core.h>
#include <nc_event.h>
#include <nc_conf.h>
#include <nc_server.h>
#include <nc_proxy.h>
Expand Down
1 change: 1 addition & 0 deletions src/nc_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ struct instance;
#include <nc_rbtree.h>
#include <nc_log.h>
#include <nc_util.h>
#include <event/nc_event.h>
#include <nc_stats.h>
#include <nc_mbuf.h>
#include <nc_message.h>
Expand Down
1 change: 0 additions & 1 deletion src/nc_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <nc_core.h>
#include <nc_server.h>
#include <nc_event.h>
#include <nc_proxy.h>

void
Expand Down
1 change: 0 additions & 1 deletion src/nc_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include <nc_core.h>
#include <nc_server.h>
#include <nc_event.h>

struct msg *
req_get(struct conn *conn)
Expand Down
1 change: 0 additions & 1 deletion src/nc_response.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include <nc_core.h>
#include <nc_server.h>
#include <nc_event.h>

struct msg *
rsp_get(struct conn *conn)
Expand Down
1 change: 0 additions & 1 deletion src/nc_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <unistd.h>

#include <nc_core.h>
#include <nc_event.h>
#include <nc_server.h>
#include <nc_conf.h>

Expand Down
1 change: 0 additions & 1 deletion src/nc_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include <nc_core.h>
#include <nc_server.h>
#include <nc_event.h>

struct stats_desc {
char *name; /* stats name */
Expand Down
1 change: 0 additions & 1 deletion src/nc_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define _NC_STATS_H_

#include <nc_core.h>
#include <nc_event.h>

#define STATS_POOL_CODEC(ACTION) \
/* client behavior */ \
Expand Down

0 comments on commit 68f3915

Please sign in to comment.