summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2009-12-01 11:03:14 +0000
committerCarsten Haitzler <raster@rasterman.com>2009-12-01 11:03:14 +0000
commit28daaf9a4f3351fd1d5e9bc858b30450382e2b8d (patch)
treeda922ba8b09137643a1fa87140223efecaa22c1b /src/modules
parent8e636da7505658bc11c28b8b4b97e0ba3f50adcb (diff)
use all dem cursor api's... and module it up bro
SVN revision: 44088
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/Makefile.am5
-rw-r--r--src/modules/test_entry/Makefile.am31
-rw-r--r--src/modules/test_entry/mod.c33
3 files changed, 69 insertions, 0 deletions
diff --git a/src/modules/Makefile.am b/src/modules/Makefile.am
new file mode 100644
index 000000000..d48924515
--- /dev/null
+++ b/src/modules/Makefile.am
@@ -0,0 +1,5 @@
1AUTOMAKE_OPTIONS = 1.4 foreign
2MAINTAINERCLEANFILES = Makefile.in
3
4SUBDIRS = \
5test_entry
diff --git a/src/modules/test_entry/Makefile.am b/src/modules/test_entry/Makefile.am
new file mode 100644
index 000000000..bea397288
--- /dev/null
+++ b/src/modules/test_entry/Makefile.am
@@ -0,0 +1,31 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I. \
6-I$(top_builddir) \
7-I$(top_srcdir) \
8-I$(top_srcdir)/src/lib \
9-I$(top_builddir)/src/lib \
10-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
11-DPACKAGE_LIB_DIR=\"$(libdir)\" \
12@ELEMENTARY_CFLAGS@ \
13@ELEMENTARY_X_CFLAGS@ \
14@ELEMENTARY_FB_CFLAGS@ \
15@ELEMENTARY_WIN32_CFLAGS@ \
16@ELEMENTARY_WINCE_CFLAGS@ \
17@ELEMENTARY_EDBUS_CFLAGS@ \
18@ELEMENTARY_EFREET_CFLAGS@
19
20if ELEMENTARY_WINDOWS_BUILD
21AM_CPPFLAGS += -DELEMENTARY_BUILD
22endif
23
24pkgdir = $(libdir)/elementary/modules/test_entry/$(MODULE_ARCH)
25pkg_LTLIBRARIES = module.la
26
27module_la_SOURCES = mod.c
28
29module_la_LIBADD = $(top_builddir)/src/lib/libelementary.la
30module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
31module_la_LIBTOOLFLAGS = --tag=disable-static
diff --git a/src/modules/test_entry/mod.c b/src/modules/test_entry/mod.c
new file mode 100644
index 000000000..acf2990fa
--- /dev/null
+++ b/src/modules/test_entry/mod.c
@@ -0,0 +1,33 @@
1#include <Elementary.h>
2
3// module api funcs needed
4EAPI int
5elm_modapi_init(void *m)
6{
7 return 1; // succeed always
8}
9
10EAPI int
11elm_modapi_shutdown(void *m)
12{
13 return 1; // succeed always
14}
15
16// module fucns for the specific module type
17EAPI void
18obj_hook(Evas_Object *obj)
19{
20 printf("hook: %p\n", obj);
21}
22
23EAPI void
24obj_unhook(Evas_Object *obj)
25{
26 printf("unhook: %p\n", obj);
27}
28
29EAPI void
30obj_longpress(Evas_Object *obj)
31{
32 printf("longpress: %p\n", obj);
33}