summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev.c2
-rw-r--r--ev.h8
-rw-r--r--ev_epoll.c2
-rw-r--r--ev_select.c2
4 files changed, 14 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 6fac39c..7995b34 100644
--- a/ev.c
+++ b/ev.c
@@ -1,4 +1,6 @@
/*
+ * libev event processing core, watcher management
+ *
* Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de>
* All rights reserved.
*
diff --git a/ev.h b/ev.h
index a7898a5..1ffed6f 100644
--- a/ev.h
+++ b/ev.h
@@ -30,6 +30,10 @@
#ifndef EV_H
#define EV_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef double ev_tstamp;
/* eventmask, revents, events... */
@@ -245,5 +249,9 @@ void ev_child_start (struct ev_child *w);
void ev_child_stop (struct ev_child *w);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/ev_epoll.c b/ev_epoll.c
index f0a9678..7614ac5 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -1,4 +1,6 @@
/*
+ * libev epoll fd activity backend
+ *
* Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de>
* All rights reserved.
*
diff --git a/ev_select.c b/ev_select.c
index 0dfa312..7bbf622 100644
--- a/ev_select.c
+++ b/ev_select.c
@@ -1,4 +1,6 @@
/*
+ * libev select fd activity backend
+ *
* Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de>
* All rights reserved.
*