nginx-0.0.1-2003-05-16-19:27:48 import
diff --git a/src/event/modules/ngx_kqueue_module.c b/src/event/modules/ngx_kqueue_module.c
index 917fe2c..8cc7190 100644
--- a/src/event/modules/ngx_kqueue_module.c
+++ b/src/event/modules/ngx_kqueue_module.c
@@ -10,6 +10,7 @@
#include <ngx_connection.h>
#include <ngx_event.h>
#include <ngx_event_timer.h>
+#include <ngx_conf_file.h>
#include <ngx_kqueue_module.h>
@@ -18,6 +19,10 @@
#define KQUEUE_NEVENTS 512
+static int ngx_kqueue_changes;
+static int ngx_kqueue_events;
+
+
/* should be per-thread if threads are used without thread pool */
#if 1
int kq;
@@ -32,6 +37,37 @@
/* */
+static ngx_str_t kqueue_name = ngx_string("kqueue");
+
+static ngx_command_t ngx_kqueue_commands[] = {
+
+ {ngx_string("kqueue_changes"),
+ NGX_EVENT_CONF|NGX_CONF_TAKE1,
+ ngx_conf_set_num_slot,
+ 0,
+ addressof(ngx_kqueue_changes),
+ NULL},
+
+ {ngx_string("kqueue_events"),
+ NGX_EVENT_CONF|NGX_CONF_TAKE1,
+ ngx_conf_set_num_slot,
+ 0,
+ addressof(ngx_kqueue_events),
+ NULL},
+
+ {ngx_string(""), 0, NULL, 0, 0, NULL}
+};
+
+ngx_module_t ngx_kqueue_module = {
+ &kqueue_name, /* module context */
+ 0, /* module index */
+ ngx_kqueue_commands, /* module directives */
+ NGX_EVENT_MODULE_TYPE, /* module type */
+ NULL /* init module */
+};
+
+
+
int ngx_kqueue_init(int max_connections, ngx_log_t *log)
{
int change_size, event_size;