"Fossies" - the Fresh Open Source Software Archive

Member "wrk-4.2.0/src/script.h" (7 Feb 2021, 1135 Bytes) of package /linux/www/wrk-4.2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "script.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 4.0.2_vs_4.1.0.

    1 #ifndef SCRIPT_H
    2 #define SCRIPT_H
    3 
    4 #include <stdbool.h>
    5 #include <lua.h>
    6 #include <lualib.h>
    7 #include <lauxlib.h>
    8 #include <unistd.h>
    9 #include "stats.h"
   10 #include "wrk.h"
   11 
   12 lua_State *script_create(char *, char *, char **);
   13 
   14 bool script_resolve(lua_State *, char *, char *);
   15 void script_setup(lua_State *, thread *);
   16 void script_done(lua_State *, stats *, stats *);
   17 
   18 void script_init(lua_State *, thread *, int, char **);
   19 uint64_t script_delay(lua_State *);
   20 void script_request(lua_State *, char **, size_t *);
   21 void script_response(lua_State *, int, buffer *, buffer *);
   22 size_t script_verify_request(lua_State *L);
   23 
   24 bool script_is_static(lua_State *);
   25 bool script_want_response(lua_State *L);
   26 bool script_has_delay(lua_State *L);
   27 bool script_has_done(lua_State *L);
   28 void script_summary(lua_State *, uint64_t, uint64_t, uint64_t);
   29 void script_errors(lua_State *, errors *);
   30 
   31 void script_copy_value(lua_State *, lua_State *, int);
   32 int script_parse_url(char *, struct http_parser_url *);
   33 
   34 void buffer_append(buffer *, const char *, size_t);
   35 void buffer_reset(buffer *);
   36 char *buffer_pushlstring(lua_State *, char *);
   37 
   38 #endif /* SCRIPT_H */