Started to restore single callback function

This commit is contained in:
Sergey Lyubka committed 2013-09-26 13:25:51 +01:00
1 parent 6d2a76b609
commit 079c99c47f
2 files changed
+20

No files matched your search

+11
View File
@@ -49,6 +49,17 @@ struct mg_request_info {
} http_headers[64]; // Maximum 64 headers
};
enum mg_event {
MG_REQUEST_BEGIN,
MG_REQUEST_END,
MG_HTTP_ERROR,
MG_EVENT_LOG,
MG_THREAD_BEGIN,
MG_THREAD_END
};
typedef int (*mg_callback_t)(enum mg_event event,
struct mg_connection *conn,
void *data);
struct mg_callbacks {
int (*begin_request)(struct mg_connection *);