comparison src/event/ngx_event.h @ 96:a23d010f356d

nginx-0.0.1-2003-05-27-16:18:54 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 27 May 2003 12:18:54 +0000
parents 8220378432a8
children 70d2345a903f
comparison
equal deleted inserted replaced
95:b48066122884 96:a23d010f356d
15 #include <ngx_conf_file.h> 15 #include <ngx_conf_file.h>
16 #endif 16 #endif
17 17
18 18
19 19
20 /* STUB */
21 #define NGX_LOWAT 10000
22
23 #define NGX_INVALID_INDEX 0x80000000 20 #define NGX_INVALID_INDEX 0x80000000
24 21
25 22
26 #if 0 23 #if 0
27 typedef struct ngx_event_s ngx_event_t; 24 typedef struct ngx_event_s ngx_event_t;
317 #if !(HAVE_EPOLL) 314 #if !(HAVE_EPOLL)
318 #define ngx_edge_add_event(ev) NGX_ERROR 315 #define ngx_edge_add_event(ev) NGX_ERROR
319 #endif 316 #endif
320 317
321 318
322 #define NGX_EVENT_MODULE_TYPE 0x544E5645 /* "EVNT" */ 319 #define NGX_EVENT_MODULE 0x544E5645 /* "EVNT" */
323 320
324 #define NGX_EVENT_CONF 0x00200000 321 #define NGX_EVENT_CONF 0x00200000
325 #define NGX_EVENT_MODULE 0
326 322
327 323
328 typedef struct { 324 typedef struct {
329 int connections; 325 int connections;
330 int timer_queues; 326 int timer_queues;
331 int use; 327 int use;
332 } ngx_event_conf_t; 328 } ngx_event_conf_t;
333 329
334 330
335 typedef struct { 331 typedef struct {
336 int index;
337 ngx_str_t *name; 332 ngx_str_t *name;
338 333
339 void *(*create_conf)(ngx_pool_t *p); 334 void *(*create_conf)(ngx_pool_t *p);
340 char *(*init_conf)(ngx_pool_t *p, void *conf); 335 char *(*init_conf)(ngx_pool_t *p, void *conf);
341 336
342 ngx_event_actions_t actions; 337 ngx_event_actions_t actions;
343 } ngx_event_module_t; 338 } ngx_event_module_t;
344 339
345 340
346 extern ngx_module_t ngx_events_module; 341 extern ngx_module_t ngx_events_module;
347 extern ngx_event_module_t ngx_event_module_ctx; 342 extern ngx_module_t ngx_event_module;
348 343
349 344
350 #define ngx_event_get_conf(module) \ 345 #define ngx_event_get_conf(module) \
351 (*(ngx_get_conf(ngx_events_module))) [module.index]; 346 (*(ngx_get_conf(ngx_events_module))) [module.ctx_index];
352 347
353 348
354 349
355 void ngx_event_accept(ngx_event_t *ev); 350 void ngx_event_accept(ngx_event_t *ev);
356 351