summaryrefslogtreecommitdiff
path: root/accel-pppd/lua/luasupp.h
blob: f7efab8c259fb9d78069d6b566222a126076527d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __LUASUPP_H
#define __LUASUPP_H

#include <lua.h>

int luaopen_lpack(lua_State *L);
int luaopen_bit(lua_State *L);

#define LUA_AP_SESSION "ap_session"
int luaopen_ap_session(lua_State *L);

struct lua_session_module {
	const char *name;
	void (*init)(lua_State *L);
	int (*get_instance)(lua_State *L, struct ap_session *ses);
};

void lua_session_module_register(const struct lua_session_module *mod);

#endif