Show
Ignore:
Timestamp:
09/13/09 14:43:17 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1252852997 +0000
git-parent:

[57a2287f4d549439df74e04e133e5a4e40582d97]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1252852997 +0000
Message:

work on #171, getting check info works

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_rest.h

    r7e47bd8 r0256945  
    4242#define NOIT_CONTROL_POST 0x504f5354 
    4343 
    44 typedef struct { 
     44typedef struct noit_http_rest_closure noit_http_rest_closure_t; 
     45 
     46typedef int (*rest_request_handler)(noit_http_rest_closure_t *, 
     47                                    int npats, char **pats); 
     48 
     49struct noit_http_rest_closure { 
    4550  noit_http_session_ctx *http_ctx; 
     51  char *remote_cn; 
     52  rest_request_handler fastpath; 
     53  int nparams; 
     54  char **params; 
    4655  int wants_shutdown; 
    47 } noit_http_rest_closure_t
     56}
    4857 
    4958API_EXPORT(void) noit_http_rest_init(); 
    5059 
     60API_EXPORT(int) 
     61  noit_http_rest_register(const char *method, const char *base, 
     62                          const char *expression, rest_request_handler f); 
     63 
    5164#endif