summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/uhttpd/src/uhttpd-lua.h
blob: 2a0d6411c45e4879ec58f59cf93c650772a665b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _UHTTPD_LUA_

#include <math.h>  /* floor() */

#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>

#define UH_LUA_CALLBACK		"handle_request"

#define UH_LUA_ERR_TIMEOUT -1
#define UH_LUA_ERR_TOOBIG  -2
#define UH_LUA_ERR_PARAM   -3


lua_State * uh_lua_init();

void uh_lua_request(
	struct client *cl, struct http_request *req, lua_State *L
);

#endif