1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef LUA_GSL_H
#define LUA_GSL_H
#include <pthread.h>
#include "defs.h"
__BEGIN_DECLS
#include <lua.h>
struct gsl_shell_state {
lua_State *L;
pthread_mutex_t exec_mutex;
pthread_mutex_t shutdown_mutex;
int is_shutting_down;
};
extern void gsl_shell_open (struct gsl_shell_state *gs);
extern void gsl_shell_free (struct gsl_shell_state *gs);
extern void gsl_shell_init (struct gsl_shell_state *gs);
extern int luaopen_gsl (lua_State *L);
extern struct gsl_shell_state* global_state;
__END_DECLS
#endif
|