root/src/noit_listener.h

Revision caa7b86e0a2913bf4f9e3254320a05dd636b2e06, 0.5 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

glue up some actual XML

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  */
5
6 #ifndef _NOIT_LISTENER_H
7 #define _NOIT_LISTENER_H
8
9 #include "noit_defines.h"
10 #include "eventer/eventer.h"
11
12 typedef struct {
13   int8_t family;
14   unsigned short port;
15   eventer_func_t dispatch_callback;
16   void *dispatch_closure;
17 } * listener_closure_t;
18
19 API_EXPORT(void) noit_listener_init();
20
21 API_EXPORT(int)
22 noit_listener(char *host, unsigned short port, int type,
23               int backlog, eventer_func_t handler, void *closure);
24
25 #endif
Note: See TracBrowser for help on using the browser.