summaryrefslogtreecommitdiff
path: root/kqueue.c
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2008-03-29 01:45:45 +0000
committerNiels Provos <provos@gmail.com>2008-03-29 01:45:45 +0000
commitca42671a1443b695bc9a7640d4eb223d1a34fbcc (patch)
tree25b777596378c604af4f26bd92376c9069423f02 /kqueue.c
parentcb50f615d4902a0703a604bf64b1a5d014bcbb70 (diff)
downloadlibevent-ca42671a1443b695bc9a7640d4eb223d1a34fbcc.tar.gz
make event methods static so that they are not exported; from Andrei Nigmatulin
svn:r692
Diffstat (limited to 'kqueue.c')
-rw-r--r--kqueue.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/kqueue.c b/kqueue.c
index 2c27a7e6..e51df61c 100644
--- a/kqueue.c
+++ b/kqueue.c
@@ -75,12 +75,12 @@ struct kqop {
pid_t pid;
};
-void *kq_init (struct event_base *);
-int kq_add (void *, struct event *);
-int kq_del (void *, struct event *);
-int kq_dispatch (struct event_base *, void *, struct timeval *);
-int kq_insert (struct kqop *, struct kevent *);
-void kq_dealloc (struct event_base *, void *);
+static void *kq_init (struct event_base *);
+static int kq_add (void *, struct event *);
+static int kq_del (void *, struct event *);
+static int kq_dispatch (struct event_base *, void *, struct timeval *);
+static int kq_insert (struct kqop *, struct kevent *);
+static void kq_dealloc (struct event_base *, void *);
const struct eventop kqops = {
"kqueue",
@@ -92,7 +92,7 @@ const struct eventop kqops = {
1 /* need reinit */
};
-void *
+static void *
kq_init(struct event_base *base)
{
int kq;
@@ -155,7 +155,7 @@ kq_init(struct event_base *base)
return (kqueueop);
}
-int
+static int
kq_insert(struct kqop *kqop, struct kevent *kev)
{
int nevents = kqop->nevents;
@@ -206,7 +206,7 @@ kq_sighandler(int sig)
/* Do nothing here */
}
-int
+static int
kq_dispatch(struct event_base *base, void *arg, struct timeval *tv)
{
struct kqop *kqop = arg;
@@ -283,7 +283,7 @@ kq_dispatch(struct event_base *base, void *arg, struct timeval *tv)
}
-int
+static int
kq_add(void *arg, struct event *ev)
{
struct kqop *kqop = arg;
@@ -351,7 +351,7 @@ kq_add(void *arg, struct event *ev)
return (0);
}
-int
+static int
kq_del(void *arg, struct event *ev)
{
struct kqop *kqop = arg;
@@ -405,7 +405,7 @@ kq_del(void *arg, struct event *ev)
return (0);
}
-void
+static void
kq_dealloc(struct event_base *base, void *arg)
{
struct kqop *kqop = arg;