Added Lua callback

This commit is contained in:
Sergey Lyubka committed 2014-03-09 19:30:41 +00:00
1 parent 31489ab7b1
commit 976b5f37c1
2 files changed
+3

No files matched your search

+1
View File
@@ -66,6 +66,7 @@ enum mg_event {
MG_REQUEST, // If callback returns MG_FALSE, Mongoose continues with req
MG_REPLY, // If callback returns MG_FALSE, Mongoose closes connection
MG_CLOSE, // Connection is closed
MG_LUA, // Called before LSP page invoked
MG_HTTP_ERROR // If callback returns MG_FALSE, Mongoose continues with err
};
typedef int (*mg_handler_t)(struct mg_connection *, enum mg_event);