AXHttp
ax_http_handler.h
Go to the documentation of this file.
1 #ifndef _AX_HTTP_HANDLER_H_
2 #define _AX_HTTP_HANDLER_H_
3 
4 #include <glib.h>
5 #include <gio/gio.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
22 
41 typedef void (*AXHttpRequestHandler)(const gchar *path,
42  const gchar *method,
43  const gchar *query,
44  GHashTable *params,
45  GOutputStream *output_stream,
46  gpointer user_data);
47 
63  gpointer user_data);
64 
72 void
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* _AX_HTTP_HANDLER_H_ */
void(* AXHttpRequestHandler)(const gchar *path, const gchar *method, const gchar *query, GHashTable *params, GOutputStream *output_stream, gpointer user_data)
This is the prototype of the callback function called whenever a request is made for a registered CGI...
Definition: ax_http_handler.h:41
Definition: ax_http_handler_int.h:16
AXHttpHandler * ax_http_handler_new(AXHttpRequestHandler request_handler, gpointer user_data)
Initializes a new AXHttpHandler and registers all CGIs listed in the CGI configuration file...
Definition: ax_http_handler.c:15
void ax_http_handler_free(AXHttpHandler *handler)
Frees an AXHttpHandler an releases all associated resources.
Definition: ax_http_handler.c:57