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

#include <lua.h>

#include "ap_session.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