X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_lua.h;fp=src%2Futils_lua.h;h=bb97d858d81ba0cc0a8053557f0153170b313487;hb=ba6801e05bb6970fca853c3f4568223db3bf51a0;hp=0000000000000000000000000000000000000000;hpb=4227efa91b3c2ed7f2e8f8e9b19ab414f7a35e6d;p=collectd.git diff --git a/src/utils_lua.h b/src/utils_lua.h new file mode 100644 index 00000000..bb97d858 --- /dev/null +++ b/src/utils_lua.h @@ -0,0 +1,39 @@ +/** + * collectd - src/utils_lua.h + * Copyright (C) 2010 Florian Forster + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; only version 2.1 of the License is + * applicable. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Authors: + * Florian Forster + **/ +#ifndef UTILS_LUA_H +#define UTILS_LUA_H 1 + +#include "collectd.h" +#include "plugin.h" + +#include + +/* + * access functions (stack -> C) + */ +cdtime_t luaC_tocdtime (lua_State *l, int idx); +int luaC_tostringbuffer (lua_State *l, int idx, char *buffer, size_t buffer_size); +value_t luaC_tovalue (lua_State *l, int idx, int ds_type); +value_list_t *luaC_tovaluelist (lua_State *l, int idx); + +#endif /* UTILS_LUA_H */ +/* vim: set sw=2 sts=2 et fdm=marker : */