dlua-script-private.h (dovecot-2.3.16) | : | dlua-script-private.h (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 94 | skipping to change at line 94 | |||
void dlua_register(struct dlua_script *script, const char *name, | void dlua_register(struct dlua_script *script, const char *name, | |||
lua_CFunction f); | lua_CFunction f); | |||
/* Get dlua_script from lua_State */ | /* Get dlua_script from lua_State */ | |||
struct dlua_script *dlua_script_from_state(lua_State *L); | struct dlua_script *dlua_script_from_state(lua_State *L); | |||
/* register 'dovecot' global */ | /* register 'dovecot' global */ | |||
void dlua_dovecot_register(struct dlua_script *script); | void dlua_dovecot_register(struct dlua_script *script); | |||
/* push 'dovecot' global on top of stack */ | /* push 'dovecot' global on top of stack */ | |||
void dlua_getdovecot(lua_State *L); | void dlua_get_dovecot(lua_State *L); | |||
/* assign values to table on idx */ | /* assign values to table on idx */ | |||
void dlua_setmembers(lua_State *L, const struct dlua_table_values *values, int i dx); | void dlua_set_members(lua_State *L, const struct dlua_table_values *values, int idx); | |||
/* push event to top of stack */ | /* push event to top of stack */ | |||
void dlua_push_event(lua_State *L, struct event *event); | void dlua_push_event(lua_State *L, struct event *event); | |||
/* get event from given stack position */ | /* get event from given stack position */ | |||
struct event *dlua_check_event(lua_State *L, int arg); | struct event *dlua_check_event(lua_State *L, int arg); | |||
/* improved lua_pushfstring, can handle full C format support */ | /* improved lua_pushfstring, can handle full C format support */ | |||
const char *dlua_pushvfstring(lua_State *L, const char *fmt, va_list argp) ATTR_ | const char *dlua_push_vfstring(lua_State *L, const char *fmt, va_list argp) ATTR | |||
FORMAT(2, 0); | _FORMAT(2, 0); | |||
const char *dlua_pushfstring(lua_State *L, const char *fmt, ...) ATTR_FORMAT(2, | const char *dlua_push_fstring(lua_State *L, const char *fmt, ...) ATTR_FORMAT(2, | |||
3); | 3); | |||
/* improved luaL_error, can handle full C format support */ | /* improved luaL_error, can handle full C format support */ | |||
int dluaL_error(lua_State *L, const char *fmt, ...) ATTR_FORMAT(2, 3); | int dluaL_error(lua_State *L, const char *fmt, ...) ATTR_FORMAT(2, 3); | |||
#define luaL_error(...) dluaL_error(__VA_ARGS__) | #define luaL_error(...) dluaL_error(__VA_ARGS__) | |||
/* | /* | |||
* Returns field from a Lua table | * Returns field from a Lua table | |||
* | * | |||
* There are different variants of these that allow for different key types | * There are different variants of these that allow for different key types | |||
* and different value types. In general, the function name scheme is: | * and different value types. In general, the function name scheme is: | |||
End of changes. 3 change blocks. | ||||
6 lines changed or deleted | 6 lines changed or added |