src/lib/sock_internal.h
branchnew-lib-errors
changeset 219 cefec18b8268
parent 155 c59d3eaff0fb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/lib/sock_internal.h	Thu May 28 01:17:36 2009 +0300
@@ -0,0 +1,20 @@
+#ifndef SOCK_INTERNAL_H
+#define SOCK_INTERNAL_H
+
+/**
+ * @file
+ *
+ * internal sock_* interface
+ */
+#include "sock.h"
+
+/**
+ * Global sock_stream_ctx used for sock_init() and all sock_stream's
+ */
+extern struct sock_stream_ctx {
+    /** libevent core */
+    struct event_base *ev_base;
+
+} _sock_stream_ctx;
+
+#endif /* SOCK_INTERNAL_H */