a sandboxed Lua backend for FastCGI
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

20 lines
496 B

  1. typedef struct {
  2. int committed;
  3. FCGX_Stream *out;
  4. } LF_response;
  5. typedef struct {
  6. size_t memory;
  7. struct timeval cpu;
  8. size_t output;
  9. } LF_limits;
  10. lua_State *LF_newstate(int, char *);
  11. LF_limits *LF_newlimits();
  12. void LF_setlimits(LF_limits *, size_t, size_t, uint32_t, uint32_t);
  13. void LF_enablelimits(lua_State *, LF_limits *);
  14. void LF_parserequest(lua_State *l, FCGX_Request *, LF_response *);
  15. void LF_emptystack(lua_State *);
  16. int LF_loadfile(lua_State *);
  17. void LF_closestate(lua_State *);