From 3ac2cb114a38ea683c1f0646ddba3ac49987b169 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 15 Aug 2021 16:15:04 +0200 Subject: Exported plop state to a structure --- plop.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plop.h') diff --git a/plop.h b/plop.h index f3a1fe0..903fb1f 100644 --- a/plop.h +++ b/plop.h @@ -4,6 +4,15 @@ #include +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 *); -- cgit v1.1