peas-lua-utils.h 1.73 KB
Newer Older
1
/*
2
 * peas-lua-utils.h
3 4
 * This file is part of libpeas
 *
5
 * Copyright (C) 2014-2015 - Garrett Regier
6
 *
Garrett Regier's avatar
Garrett Regier committed
7 8 9 10
 * libpeas 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; either
 * version 2.1 of the License, or (at your option) any later version.
11
 *
Garrett Regier's avatar
Garrett Regier committed
12 13 14 15
 * libpeas 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.
16
 *
Garrett Regier's avatar
Garrett Regier committed
17 18 19
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
20 21
 */

22 23
#ifndef __PEAS_LUA_UTILS_H__
#define __PEAS_LUA_UTILS_H__
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

#include <glib.h>
#include <lua.h>

G_BEGIN_DECLS


gboolean peas_lua_utils_require       (lua_State   *L,
                                       const gchar *name);

gboolean peas_lua_utils_check_version (lua_State   *L,
                                       guint        req_major,
                                       guint        req_minor,
                                       guint        req_micro);

39 40 41 42
gboolean peas_lua_utils_call          (lua_State   *L,
                                       guint        n_args,
                                       guint        n_results);

43 44 45 46 47
gboolean peas_lua_utils_load_resource (lua_State   *L,
                                       const gchar *name,
                                       guint        n_args,
                                       guint        n_results);

48 49
G_END_DECLS

50
#endif /* __PEAS_LUA_UTILS_H__ */