summaryrefslogtreecommitdiffstats
path: root/src/lib-dict/dict-lua.h
blob: bf4255cc0a568be5ff32cc9f9ef3ff71959fb0d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef DICT_LUA_H
#define DICT_LUA_H

#ifdef DLUA_WITH_YIELDS
/*
 * Internally, the dict methods yield via lua_yieldk() as implemented in Lua
 * 5.3 and newer.
 */

void lua_dict_check_key_prefix(lua_State *L, const char *key,
			       const char *username);

void dlua_push_dict(lua_State *L, struct dict *dict);
struct dict *dlua_check_dict(lua_State *L, int idx);

#endif

#endif