Changeset 02569455fdf31dd93db18514b0b4cda5d5181ff7 for src/noit_rest.h
- Timestamp:
- 09/13/09 14:43:17 (4 years ago)
- git-parent:
- Files:
-
- src/noit_rest.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/noit_rest.h
r7e47bd8 r0256945 42 42 #define NOIT_CONTROL_POST 0x504f5354 43 43 44 typedef struct { 44 typedef struct noit_http_rest_closure noit_http_rest_closure_t; 45 46 typedef int (*rest_request_handler)(noit_http_rest_closure_t *, 47 int npats, char **pats); 48 49 struct noit_http_rest_closure { 45 50 noit_http_session_ctx *http_ctx; 51 char *remote_cn; 52 rest_request_handler fastpath; 53 int nparams; 54 char **params; 46 55 int wants_shutdown; 47 } noit_http_rest_closure_t;56 }; 48 57 49 58 API_EXPORT(void) noit_http_rest_init(); 50 59 60 API_EXPORT(int) 61 noit_http_rest_register(const char *method, const char *base, 62 const char *expression, rest_request_handler f); 63 51 64 #endif
