summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-12-08 11:38:04 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2014-12-08 11:38:14 +0000
commit9e91672a4f6ce8f89ce18fd996a055f02df60a22 (patch)
tree506b161819c2715ac5a5768c3c89d98127ebf425 /src/lib/elua
parent353a533ff5cd27de06064484b55eadef25e12ef3 (diff)
elua: initial skeleton for the Elua library
Because of Bob and other things, it is required to separate the functionality currently provided by the elua binary into a library. This library will then be used by the elua binary as well as any other project.
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/Elua.h63
-rw-r--r--src/lib/elua/elua.c1
2 files changed, 64 insertions, 0 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
new file mode 100644
index 0000000000..c037f327c6
--- /dev/null
+++ b/src/lib/elua/Elua.h
@@ -0,0 +1,63 @@
1/**
2 * @file Elua.h
3 * @brief Elua Library
4 *
5 * @defgroup Elua Elua
6 */
7
8/**
9 *
10 * @section intro Elua library
11 *
12 * The Elua library was created to ease integration of EFL Lua into other EFL
13 * libraries or applications. Using the Elua library you can easily create a
14 * Lua state that is fully set up for running EFL Lua bindings.
15 *
16 * You can find the API documentation at @ref Elua
17*/
18#ifndef _ELUA_H
19#define _ELUA_H
20
21#ifdef EAPI
22# undef EAPI
23#endif
24
25#ifdef _WIN32
26# ifdef EFL_ELUA_BUILD
27# ifdef DLL_EXPORT
28# define EAPI __declspec(dllexport)
29# else
30# define EAPI
31# endif /* ! DLL_EXPORT */
32# else
33# define EAPI __declspec(dllimport)
34# endif /* ! EFL_ELUA_BUILD */
35#else
36# ifdef __GNUC__
37# if __GNUC__ >= 4
38# define EAPI __attribute__ ((visibility("default")))
39# else
40# define EAPI
41# endif
42# else
43# define EAPI
44# endif
45#endif /* ! _WIN32 */
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
51#ifdef HAVE_CONFIG_H
52# include <config.h>
53#endif
54
55#ifdef EFL_BETA_API_SUPPORT
56
57#endif
58
59#ifdef __cplusplus
60} // extern "C" {
61#endif
62
63#endif
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
new file mode 100644
index 0000000000..fc4b894f9c
--- /dev/null
+++ b/src/lib/elua/elua.c
@@ -0,0 +1 @@
#include "Elua.h"