blob: ede788845c55efc9345ceed948bd3bb8053a7b67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <lua.h>
#include "connection.h"
struct plop
{
const char * handler;
lua_State * L;
int efd;
};
extern struct plop plop;
lua_State * plop_initialize_lua(void);
int open_server(const char *, const char *);
int plop_load_handler(lua_State *, const char *);
int plop_handle_client(lua_State *, struct connection *);
int plop_handle_server(lua_State *, const int, const int);
|