[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] add functionality to libevent sandbox
Update of /home/or/cvsroot/libevent
In directory moria.mit.edu:/tmp/cvs-serv1492
Modified Files:
event.c event.h
Log Message:
add functionality to libevent sandbox
Index: event.c
===================================================================
RCS file: /home/or/cvsroot/libevent/event.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- event.c 22 Feb 2005 04:22:34 -0000 1.2
+++ event.c 25 Feb 2005 05:38:38 -0000 1.3
@@ -793,3 +793,15 @@
errx(1, "%s: unknown queue %x", __func__, queue);
}
}
+
+const char *
+event_get_version(void)
+{
+ return (VERSION);
+}
+
+const char *
+event_get_method(void)
+{
+ return (current_base->evsel->name);
+}
Index: event.h
===================================================================
RCS file: /home/or/cvsroot/libevent/event.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- event.h 22 Feb 2005 05:25:20 -0000 1.3
+++ event.h 25 Feb 2005 05:38:38 -0000 1.4
@@ -124,6 +124,8 @@
#define TIMEOUT_DEFAULT {5, 0}
void *event_init(void);
+const char *event_get_version(void);
+const char *event_get_method_name(void);
int event_dispatch(void);
int event_base_dispatch(struct event_base *);