diff --git a/AUTHORS b/AUTHORS index 0f0cedd077..ffecf8766c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -226,3 +226,12 @@ Nathan 'RbdPngn' Ingersoll Nicholas 'Mekius' Hughart Albin "Lutin" Tonnerre Mathieu Taillefumier + + +Eeze +---- +Mike Blumenkrantz (zmike/discomfitor) +Cedric Bail +Mikael Sans +Christophe Dumez +Stefan Schmidt diff --git a/ChangeLog b/ChangeLog index 1a0b82f71f..cb77d720fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2013-01-03 Gustavo Sverzut Barbieri (k-s) * Add eina_alloc.h to Eina.h to define alloca() + * Eeze: deprecated support for udev<148 and libmount<2.18 2013-01-03 Cedric Bail diff --git a/Makefile.am b/Makefile.am index ca0b6687ee..c28cb4869c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -98,7 +98,8 @@ pc/eio.pc \ pc/edbus2.pc \ pc/efreet.pc \ pc/efreet-mime.pc \ -pc/efreet-trash.pc +pc/efreet-trash.pc \ +pc/eeze.pc pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = @@ -208,6 +209,10 @@ if HAVE_ECORE_X pkgconfig_DATA += pc/ecore-x.pc endif +if HAVE_EEZE +pkgconfig_DATA += pc/eeze.pc +endif + # D-Bus services: diff --git a/NEWS b/NEWS index 01e4ad1326..f46081e356 100644 --- a/NEWS +++ b/NEWS @@ -58,6 +58,7 @@ Deprecations: ecore_x_e_window_profile_list_set() ecore_x_e_window_profile_list_get() * ecore_evas: deprecate DirectFB, XRender, WinCE, X11-16 and X11-8. + * eeze: deprecate libudev<148 and libmount<2.18 Removed: * directfb support: ecore_directfb and evas directfb engine. diff --git a/configure.ac b/configure.ac index 8206881a9d..c53c4b2c6f 100644 --- a/configure.ac +++ b/configure.ac @@ -3125,6 +3125,99 @@ EFL_INTERNAL_DEPEND_PKG([EFREET], [eina]) EFL_LIB_END([Efreet]) #### End of Efreet +#### Eeze +EFL_LIB_START_OPTIONAL([Eeze], [test "${have_linux}" = "yes"]) + +### Additional options to configure +AC_ARG_ENABLE([tizen], + [AC_HELP_STRING([--enable-tizen], + [enable tizen support. @<:@default=disabled@:>@])], + [ + if test "x${enableval}" = "xyes" ; then + want_tizen="yes" + else + want_tizen="no" + fi + ], + [want_tizen="no"]) + +AC_ARG_ENABLE([mount], + [AC_HELP_STRING([--disable-mount], + [disable mount support (libmount). @<:@default=enabled@:>@])], + [ + if test "x${enableval}" = "xyes" ; then + want_mount="yes" + else + want_mount="no" + fi + ], + [want_mount="yes"]) + +AC_ARG_WITH([mount], + [AS_HELP_STRING([--with-mount], [specify mount bin @<:@default=detect@:>@])], + [with_eeze_mount=$withval], [with_eeze_mount="detect"]) +AC_ARG_WITH([umount], + [AS_HELP_STRING([--with-umount], [specify umount bin @<:@default=detect@:>@])], + [with_eeze_umount=$withval], [with_eeze_umount="detect"]) +AC_ARG_WITH([eject], + [AS_HELP_STRING([--with-eject], [specify eject bin @<:@default=detect@:>@])], + [with_eeze_eject=$withval], [with_eeze_eject="detect"]) + +### Default values + +### Checks for programs + +### Checks for libraries +EFL_INTERNAL_DEPEND_PKG([EEZE], [eina]) +EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore]) +EFL_OPTIONAL_INTERNAL_DEPEND_PKG([EEZE], [${want_mount}], [ecore-file]) +EFL_OPTIONAL_INTERNAL_DEPEND_PKG([EEZE], [${want_mount}], [ecore-con]) +EFL_OPTIONAL_INTERNAL_DEPEND_PKG([EEZE], [${wantx_mount}], [eet]) + +EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148]) +EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_mount}], [EEZE_MOUNT], [mount >= 2.19.0]) + +## modules +if test "${want_tizen}" = "yes"; then + PKG_CHECK_MODULES([TIZEN_SENSOR], [capi-system-sensor]) +fi + +EFL_EVAL_PKGS([EEZE]) + +AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "${want_mount}" = "yes"]) +AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "${want_tizen}" = "yes"]) + +### Checks for header files + +### Checks for types + +### Checks for structures + +### Checks for compiler characteristics + +### Checks for linker characteristics + +### Checks for library functions + +### Checks for binaries +if test "x$with_eeze_mount" = "xdetect"; then + AC_PATH_PROG([with_eeze_mount], [mount], []) +fi +AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_eeze_mount"], [mount bin to use]) + +if test "x$with_eeze_umount" = "xdetect";then + AC_PATH_PROG([with_eeze_umount], [umount], []) +fi +AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_eeze_umount"], [umount bin to use]) + +if test "x$with_eeze_eject" = "xdetect";then + AC_PATH_PROG([with_eeze_eject], [eject], []) +fi +AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eeze_eject"], [eject bin to use]) + +EFL_LIB_END_OPTIONAL([Eeze]) +#### End of Eeze + AC_CONFIG_FILES([ Makefile data/Makefile @@ -3187,6 +3280,7 @@ pc/edbus2.pc pc/efreet.pc pc/efreet-mime.pc pc/efreet-trash.pc +pc/eeze.pc dbus-services/org.enlightenment.Efreet.service $po_makefile_in ]) @@ -3390,6 +3484,8 @@ echo " Ecore_Evas...................: $have_ecore_evas" echo " Extn (Plug/socket Extn)....: $have_ecore_evas_extn" #fi echo + +echo "Eeze...................: ${efl_lib_optional_eeze} (tizen: ${want_tizen})" echo "Tests..................: ${build_tests}" echo "Examples...............: make examples" diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index ce06e1ebf7..d8a5601b30 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -807,7 +807,8 @@ eet_ _eet_ Eet_ _Eet_ EET_ _EET_ \ ecore_ _ecore_ Ecore_ _Ecore_ ECORE_ _ECORE_ \ eio_ _eio_ Eio_ _Eio_ EIO_ _EIO_ \ edbus_ _edbus_ EDBus_ _EDBus_ EDBUS_ _EDBUS_ \ -efreet_ _efreet_ Efreet_ _Efreet_ EFREET_ _EFREET_ +efreet_ _efreet_ Efreet_ _Efreet_ EFREET_ _EFREET_ \ +eeze_ _eeze_ Eeze_ _Eeze_ EEZE_ _EEZE_ #--------------------------------------------------------------------------- diff --git a/doc/main.dox b/doc/main.dox index ef54b214fa..be9f6dc1c2 100644 --- a/doc/main.dox +++ b/doc/main.dox @@ -18,6 +18,7 @@ * @li @ref eio_main asynchronous input/output * @li @ref edbus_main d-bus integration. * @li @ref efreet_main freedesktop.org (xdg) menu and desktop integration. + * @li @ref eeze_main hardware device manipulation and notification. * */ @@ -39,6 +40,7 @@ * @author Cedric Bail * @author Chidambar Zinnoury * @author Chris Ross + * @author Christophe Dumez * @author Christopher 'devilhorns' Michael * @author ChunEon Park * @author Corey "atmos" Donohoe @@ -74,6 +76,7 @@ * @author Mathieu Taillefumier * @author Matt Barclay * @author Michael 'Mickey' Lauer + * @author Mikael Sans * @author Mike Blumenkrantz * @author Mike McCormack * @author Myoungwoon Roy Kim(roy_kim) @@ -183,3 +186,10 @@ * * @brief FreeDesktop.Org (XDG) menu and desktop integration. */ + + +/** + * @defgroup Eeze + * + * @brief Hardware device manipulation and notification, wraps UDev and similar. + */ diff --git a/m4/efl.m4 b/m4/efl.m4 index 64a5ec7602..a891203e2e 100644 --- a/m4/efl.m4 +++ b/m4/efl.m4 @@ -105,6 +105,19 @@ m4_pushdef([DOWN], m4_translit([$3], [-A-Z], [_a-z]))dnl m4_popdef([DOWN]) ]) +dnl EFL_OPTIONAL_INTERNAL_DEPEND_PKG(EFL, VARIABLE, NAME) +AC_DEFUN([EFL_OPTIONAL_INTERNAL_DEPEND_PKG], +[ +m4_pushdef([DOWN], m4_translit([$3], [-A-Z], [_a-z]))dnl + + have_[]m4_defn([DOWN])="no" + if test "x$2" = "xyes"; then + EFL_INTERNAL_DEPEND_PKG([$1], [$3]) + fi + +m4_popdef([DOWN]) +]) + dnl EFL_ADD_LIBS(PKG, LIBS) dnl Add libraries that the EFL library will depend on dnl See EFL_DEPEND_PKG() for pkg-config version. diff --git a/legacy/eeze/ChangeLog b/old/ChangeLog.eeze similarity index 100% rename from legacy/eeze/ChangeLog rename to old/ChangeLog.eeze diff --git a/legacy/eeze/NEWS b/old/NEWS.eeze similarity index 100% rename from legacy/eeze/NEWS rename to old/NEWS.eeze diff --git a/legacy/eeze/README b/old/README.eeze similarity index 100% rename from legacy/eeze/README rename to old/README.eeze diff --git a/legacy/eeze/eeze.pc.in b/pc/eeze.pc.in similarity index 77% rename from legacy/eeze/eeze.pc.in rename to pc/eeze.pc.in index 606b789c23..787cf54bf6 100644 --- a/legacy/eeze/eeze.pc.in +++ b/pc/eeze.pc.in @@ -5,7 +5,8 @@ includedir=@includedir@ Name: eeze Description: device convenience library for efl -@pkgconfig_requires_private@: @requirement_eeze@ +Requires.private: @requirements_pc_eeze@ Version: @VERSION@ Libs: -L${libdir} -leeze Cflags: -I${includedir}/eeze-@VMAJ@ +Libs: -L${libdir} -leet diff --git a/src/Makefile.am b/src/Makefile.am index 8a90462f1d..3d4b5afd88 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -61,6 +61,9 @@ include Makefile_Embryo.am include Makefile_Eio.am include Makefile_EDBus.am include Makefile_Efreet.am +if HAVE_EEZE +include Makefile_Eeze.am +endif .PHONY: benchmark examples @@ -78,6 +81,7 @@ install-examples: clean-local: rm -rf bin/eet/*.gcno rm -rf bin/efreet/*.gcno + rm -rf bin/eeze/*.gcno rm -rf lib/evil/*.gcno rm -rf lib/eina/*.gcno rm -rf lib/eo/*.gcno @@ -94,6 +98,7 @@ clean-local: rm -rf lib/embryo/*.gcno rm -rf lib/edbus/*.gcno rm -rf lib/efreet/*.gcno + rm -rf lib/eeze/*.gcno rm -rf modules/eina/mp/pass_through/*.gcno rm -rf modules/eina/mp/one_big/*.gcno rm -rf modules/eina/mp/chained_pool/*.gcno diff --git a/src/Makefile_Eeze.am b/src/Makefile_Eeze.am new file mode 100644 index 0000000000..8e29128a38 --- /dev/null +++ b/src/Makefile_Eeze.am @@ -0,0 +1,166 @@ + +### Library + +lib_LTLIBRARIES += \ +lib/eeze/libeeze.la + +EEZE_COMMON_CPPFLAGS = \ +-I$(top_srcdir)/src/lib/eina \ +-I$(top_builddir)/src/lib/eina \ +-I$(top_srcdir)/src/lib/eco \ +-I$(top_builddir)/src/lib/eo \ +-I$(top_srcdir)/src/lib/ecore \ +-I$(top_builddir)/src/lib/ecore \ +-I$(top_srcdir)/src/lib/ecore_file \ +-I$(top_builddir)/src/lib/ecore_file \ +-I$(top_srcdir)/src/lib/ecore_con \ +-I$(top_builddir)/src/lib/ecore_con \ +-I$(top_srcdir)/src/lib/eet \ +-I$(top_builddir)/src/lib/eet \ +-I$(top_srcdir)/src/lib/eeze \ +-I$(top_builddir)/src/lib/eeze \ +@EFL_COV_CFLAGS@ \ +@EEZE_CFLAGS@ + +EEZE_COMMON_LDADD = \ +lib/eina/libeina.la \ +lib/eo/libeo.la \ +lib/ecore/libecore.la \ +@EFL_COV_LIBS@ + +installed_eezemainheadersdir = $(includedir)/eeze-@VMAJ@ +dist_installed_eezemainheaders_DATA = \ +lib/eeze/Eeze.h \ +lib/eeze/Eeze_Net.h \ +lib/eeze/Eeze_Sensor.h + +# libeeze.la +lib_eeze_libeeze_la_SOURCES = \ +lib/eeze/eeze_main.c \ +lib/eeze/eeze_net.c \ +lib/eeze/eeze_net_private.h \ +lib/eeze/eeze_udev_find.c \ +lib/eeze/eeze_udev_private.h \ +lib/eeze/eeze_udev_private.c \ +lib/eeze/eeze_udev_syspath.c \ +lib/eeze/eeze_udev_walk.c \ +lib/eeze/eeze_udev_watch.c \ +lib/eeze/eeze_sensor_private.h \ +lib/eeze/eeze_sensor.c + +if HAVE_EEZE_MOUNT +dist_installed_eezemainheaders_DATA += lib/eeze/Eeze_Disk.h +lib_eeze_libeeze_la_SOURCES += \ +lib/eeze/eeze_disk.c \ +lib/eeze/eeze_disk_udev.c \ +lib/eeze/eeze_disk_mount.c \ +lib/eeze/eeze_disk_private.h \ +lib/eeze/eeze_disk_libmount_new.c + +EEZE_COMMON_LDADD += \ +lib/ecore_file/libecore_file.la \ +lib/ecore_con/libecore_con.la \ +lib/eet/libeet.la +endif + +EEZE_COMMON_LIBADD = $(EEZE_COMMON_LDADD) @EEZE_LIBS@ +EEZE_COMMON_LDADD += @EEZE_LDFLAGS@ +EEZE_COMMON_USER_LIBADD = $(EEZE_COMMON_LIBADD) lib/eeze/libeeze.la +EEZE_COMMON_USER_LDADD = $(EEZE_COMMON_LDADD) lib/eeze/libeeze.la + +lib_eeze_libeeze_la_CPPFLAGS = \ +$(EEZE_COMMON_CPPFLAGS) \ +-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ +-DPACKAGE_LIB_DIR=\"$(libdir)\" \ +-DEFL_EEZE_BUILD + +lib_eeze_libeeze_la_LIBADD = $(EEZE_COMMON_LIBADD) +lib_eeze_libeeze_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@ + +eezemodulesensordir = $(libdir)/eeze/sensor +eezemodulesensor_LTLIBRARIES = + +if HAVE_EEZE_TIZEN +eezemodulesensor_LTLIBRARIES += \ +modules/eeze/eeze-sensor-tizen.la +modules_eeze_eeze_sensor_tizen_la_SOURCES = \ +modules/eeze/eeze_sensor_tizen.c +modules_eeze_eeze_sensor_tizen_la_CPPFLAGS = \ +$(EEZE_COMMON_CPPFLAGS) \ +@TIZEN_SENSOR_CFLAGS@ +modules_eeze_eeze_sensor_tizen_la_LIBADD = \ +$(EEZE_COMMON_USER_LIBADD) \ +@TIZEN_SENSOR_LIBS@ +modules_eeze_eeze_sensor_tizen_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ +modules_eeze_eeze_sensor_tizen_la_LIBTOOLFLAGS = --tag=disable-static +else + +eezemodulesensor_LTLIBRARIES += \ +modules/eeze/eeze-sensor-fake.la +modules_eeze_eeze_sensor_fake_la_SOURCES = \ +modules/eeze/eeze_sensor_fake.c +modules_eeze_eeze_sensor_fake_la_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) +modules_eeze_eeze_sensor_fake_la_LIBADD = $(EEZE_COMMON_USER_LIBADD) +modules_eeze_eeze_sensor_fake_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@ +modules_eeze_eeze_sensor_fake_la_LIBTOOLFLAGS = --tag=disable-static +endif + +### Binary + +noinst_PROGRAMS += \ +bin/eeze/eeze_udev_test \ +bin/eeze/eeze_sensor_test + +bin_eeze_eeze_udev_test_SOURCES = bin/eeze/eeze_udev_test.c +bin_eeze_eeze_udev_test_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) +bin_eeze_eeze_udev_test_LDADD = $(EEZE_COMMON_USER_LDADD) + +bin_eeze_eeze_sensor_test_SOURCES = bin/eeze/eeze_sensor_test.c +bin_eeze_eeze_sensor_test_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) +bin_eeze_eeze_sensor_test_LDADD = $(EEZE_COMMON_USER_LDADD) + +if HAVE_EEZE_MOUNT +bin_PROGRAMS += \ +bin/eeze/eeze_mount \ +bin/eeze/eeze_umount \ +bin/eeze/eeze_disk_ls \ +bin/eeze/eeze_scanner + +bin_eeze_eeze_mount_SOURCES = bin/eeze/eeze_mount.c +bin_eeze_eeze_mount_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) +bin_eeze_eeze_mount_LDADD = $(EEZE_COMMON_USER_LDADD) + +bin_eeze_eeze_umount_SOURCES = bin/eeze/eeze_umount.c +bin_eeze_eeze_umount_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) +bin_eeze_eeze_umount_LDADD = $(EEZE_COMMON_USER_LDADD) + +bin_eeze_eeze_disk_ls_SOURCES = bin/eeze/eeze_disk_ls.c +bin_eeze_eeze_disk_ls_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) +bin_eeze_eeze_disk_ls_LDADD = $(EEZE_COMMON_USER_LDADD) + +bin_eeze_eeze_scanner_SOURCES = \ +bin/eeze/eeze_scanner.c \ +bin/eeze/eeze_scanner.h +bin_eeze_eeze_scanner_CPPFLAGS = $(EEZE_COMMON_CPPFLAGS) +bin_eeze_eeze_scanner_LDADD = $(EEZE_COMMON_USER_LDADD) +endif + +setuid_root_mode = a=rx,u+xs +install-data-hook:: + @chmod $(setuid_root_mode) $(DESTDIR)$(bindir)/eeze_scanner$(EXEEXT) || true + + +### Unit tests + +if EFL_ENABLE_TESTS + +check_PROGRAMS += tests/eeze/eeze_suite + +tests_eeze_eeze_suite_SOURCES = tests/eeze/eeze_suite.c +tests_eeze_eeze_suite_CPPFLAGS = \ +-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/eeze\" \ +$(EEZE_COMMON_CPPFLAGS) \ +@CHECK_CFLAGS@ +tests_eeze_eeze_suite_LDADD = $(EEZE_COMMON_USER_LDADD) @CHECK_LIBS@ + +endif diff --git a/legacy/eeze/src/bin/eeze_disk_ls.c b/src/bin/eeze/eeze_disk_ls.c similarity index 100% rename from legacy/eeze/src/bin/eeze_disk_ls.c rename to src/bin/eeze/eeze_disk_ls.c diff --git a/legacy/eeze/src/bin/eeze_mount.c b/src/bin/eeze/eeze_mount.c similarity index 100% rename from legacy/eeze/src/bin/eeze_mount.c rename to src/bin/eeze/eeze_mount.c diff --git a/legacy/eeze/src/bin/eeze_scanner.c b/src/bin/eeze/eeze_scanner.c similarity index 95% rename from legacy/eeze/src/bin/eeze_scanner.c rename to src/bin/eeze/eeze_scanner.c index 2acd736f41..d7dda1587c 100644 --- a/legacy/eeze/src/bin/eeze_scanner.c +++ b/src/bin/eeze/eeze_scanner.c @@ -61,7 +61,7 @@ event_write(const void *data, size_t size, Ecore_Con_Client *cl) } static Eina_Bool -disk_mount(void *data __UNUSED__, int type __UNUSED__, Eeze_Disk *disk) +disk_mount(void *data EINA_UNUSED, int type EINA_UNUSED, Eeze_Disk *disk) { Eina_List *l; Eeze_Scanner_Device *d; @@ -79,7 +79,7 @@ disk_mount(void *data __UNUSED__, int type __UNUSED__, Eeze_Disk *disk) } static void -cl_setup(Ecore_Con_Client *cl __UNUSED__, Eet_Connection *ec) +cl_setup(Ecore_Con_Client *cl EINA_UNUSED, Eet_Connection *ec) { Eina_List *l; Eeze_Scanner_Device *dev; @@ -118,13 +118,13 @@ cl_setup(Ecore_Con_Client *cl __UNUSED__, Eet_Connection *ec) } static Eina_Bool -es_read(const void *eet_data __UNUSED__, size_t size __UNUSED__, void *user_data __UNUSED__) +es_read(const void *eet_data EINA_UNUSED, size_t size EINA_UNUSED, void *user_data EINA_UNUSED) { return EINA_TRUE; } static Eina_Bool -cl_add(void *data __UNUSED__, int type __UNUSED__, Ecore_Con_Event_Client_Add *ev) +cl_add(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Add *ev) { Eet_Connection *ec; INF("Added client"); @@ -143,7 +143,7 @@ cl_add(void *data __UNUSED__, int type __UNUSED__, Ecore_Con_Event_Client_Add *e } static Eina_Bool -cl_del(void *data __UNUSED__, int type __UNUSED__, Ecore_Con_Event_Client_Del *ev) +cl_del(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Con_Event_Client_Del *ev) { Eet_Connection *ec; Eina_Bool d; @@ -288,7 +288,7 @@ storage_setup(void) } static void -cb_vol_chg(const char *device, Eeze_Udev_Event ev, void *data __UNUSED__, Eeze_Udev_Watch *watch __UNUSED__) +cb_vol_chg(const char *device, Eeze_Udev_Event ev, void *data EINA_UNUSED, Eeze_Udev_Watch *watch EINA_UNUSED) { Eina_List *l; Eeze_Scanner_Device *dev; @@ -331,7 +331,7 @@ cb_vol_chg(const char *device, Eeze_Udev_Event ev, void *data __UNUSED__, Eeze_U } static void -cb_stor_chg(const char *device, Eeze_Udev_Event ev, void *data __UNUSED__, Eeze_Udev_Watch *watch __UNUSED__) +cb_stor_chg(const char *device, Eeze_Udev_Event ev, void *data EINA_UNUSED, Eeze_Udev_Watch *watch EINA_UNUSED) { Eina_List *l; Eeze_Scanner_Device *dev = NULL; diff --git a/legacy/eeze/src/bin/eeze_scanner.h b/src/bin/eeze/eeze_scanner.h similarity index 100% rename from legacy/eeze/src/bin/eeze_scanner.h rename to src/bin/eeze/eeze_scanner.h diff --git a/legacy/eeze/src/bin/eeze_sensor_test.c b/src/bin/eeze/eeze_sensor_test.c similarity index 100% rename from legacy/eeze/src/bin/eeze_sensor_test.c rename to src/bin/eeze/eeze_sensor_test.c diff --git a/legacy/eeze/src/bin/eeze_udev_test.c b/src/bin/eeze/eeze_udev_test.c similarity index 100% rename from legacy/eeze/src/bin/eeze_udev_test.c rename to src/bin/eeze/eeze_udev_test.c diff --git a/legacy/eeze/src/bin/eeze_umount.c b/src/bin/eeze/eeze_umount.c similarity index 100% rename from legacy/eeze/src/bin/eeze_umount.c rename to src/bin/eeze/eeze_umount.c diff --git a/legacy/eeze/src/lib/Eeze.h b/src/lib/eeze/Eeze.h similarity index 83% rename from legacy/eeze/src/lib/Eeze.h rename to src/lib/eeze/Eeze.h index 9103493d13..82ef11ae82 100644 --- a/legacy/eeze/src/lib/Eeze.h +++ b/src/lib/eeze/Eeze.h @@ -1,39 +1,73 @@ /** - @brief Eeze Device Library - * - @mainpage Eeze - @image html eeze.png - @version 1.7.0 - @author Mike Blumenkrantz (zmike/discomfitor) - @date 2010-2012 - @section intro What is Eeze? + @brief Eeze Device Library - Eeze is a library for manipulating devices through udev with a simple and fast - api. It interfaces directly with libudev, avoiding such middleman daemons as - udisks/upower or hal, to immediately gather device information the instant it - becomes known to the system. This can be used to determine such things as: - @li If a cdrom has a disk inserted - @li The temperature of a cpu core - @li The remaining power left in a battery - @li The current power consumption of various parts - @li Monitor in realtime the status of peripheral devices + @page eeze_main Eeze - Each of the above examples can be performed by using only a single eeze - function, as one of the primary focuses of the library is to reduce the - complexity of managing devices. + @date 2010 (created) + + @section toc Table of Contents + + @li @ref eeze_main_intro + @li @ref eeze_main_compiling + @li @ref eeze_main_next_steps + + @section eeze_main_intro Introduction + + Eeze is a library for manipulating devices through udev with a + simple and fast api. It interfaces directly with libudev, avoiding + such middleman daemons as udisks/upower or hal, to immediately + gather device information the instant it becomes known to the + system. This can be used to determine such things as: + + @li If a cdrom has a disk inserted + @li The temperature of a cpu core + @li The remaining power left in a battery + @li The current power consumption of various parts + @li Monitor in realtime the status of peripheral devices + + Each of the above examples can be performed by using only a single eeze + function, as one of the primary focuses of the library is to reduce the + complexity of managing devices. + + @section eeze_main_compiling How to compile + + Eeze is a library your application links to. The procedure for this is very + simple. You simply have to compile your application with the appropriate + compiler flags that the @p pkg-config script outputs. For example: + + Compiling C or C++ files into object files: + + @verbatim + gcc -c -o main.o main.c `pkg-config --cflags eeze` + @endverbatim + + Linking object files into a binary executable: + + @verbatim + gcc -o my_application main.o `pkg-config --libs eeze` + @endverbatim + + See @ref pkgconfig + + @section eeze_main_next_steps Next Steps + + After you understood what Eeze is and installed it in your system + you should proceed understanding the programming interface. We'd + recommend you to take a while to learn @ref Eina and @ref Ecore as + they convenient and Eeze provides integration with it. + + Recommended reading: + + @li @link Eeze.h Eeze functions @endlink + @li @ref Eeze_Udev UDEV functions + @li @ref Eeze_Watch Functions that watch for events + @li @ref Eeze_Syspath Functions that accept a device /sys/ path + @li @ref Eeze_Find Functions which find types of devices + @li @ref Eeze_Disk Disk functions + @li @ref Eeze_Net Net functions + @li @ref Eeze_Sensor Sensor functions - @li @link Eeze.h Eeze functions @endlink - @li @ref udev UDEV functions - @li @ref watch Functions that watch for events - @li @ref syspath Functions that accept a device /sys/ path - @li @ref find Functions which find types of devices - @li @ref disk Disk functions - @li @ref net Net functions - @li @ref sensor Sensor functions - @verbatim - Pants - @endverbatim */ #ifndef EEZE_UDEV_H #define EEZE_UDEV_H @@ -76,19 +110,21 @@ */ /** - * @defgroup main main + * @defgroup Eeze_Main main + * @ingroup Eeze * * These are general eeze functions which include init and shutdown. */ /** - * @defgroup udev udev + * @defgroup Eeze_Udev udev + * @ingroup Eeze_Main * * These are functions which interact directly with udev. */ /** - * @addtogroup udev + * @addtogroup Eeze_Udev * * These are the device subsystems of udev: * @li ac97 @@ -150,7 +186,7 @@ extern "C" { #endif /** - * @addtogroup udev + * @addtogroup Eeze_Udev * @typedef Eeze_Udev_Event * @enum Eeze_Udev_Event * @brief Flags for watch events @@ -177,7 +213,7 @@ typedef enum /** @} */ /** - * @addtogroup udev udev + * @addtogroup Eeze_Udev udev * @typedef Eeze_Udev_Type Eeze_Udev_Type * @enum Eeze_Udev_Type * @brief Convenience types to simplify udev access. @@ -228,7 +264,7 @@ typedef enum struct Eeze_Udev_Watch; /** - * @addtogroup watch + * @addtogroup Eeze_Watch * @typedef Eeze_Udev_Watch Eeze_Udev_Watch * @brief Opaque structure to hold data for a udev watch */ @@ -248,7 +284,7 @@ typedef struct Eeze_Udev_Watch Eeze_Udev_Watch; EAPI extern Eeze_Version *eeze_version; /** - * @addtogroup watch + * @addtogroup Eeze_Watch * @typedef Eeze_Udev_Watch_Cb Eeze_Udev_Watch_Cb * @brief Callback type for use with #Eeze_Udev_Watch */ @@ -262,7 +298,7 @@ typedef void(*Eeze_Udev_Watch_Cb)(const char *, Eeze_Udev_Event, void *, Eeze_Ud * This function should be called prior to using any eeze functions, and MUST * be called prior to using any udev functions to avoid a segv. * - * @ingroup main + * @ingroup Eeze_Main */ EAPI int eeze_init(void); @@ -273,16 +309,16 @@ EAPI int eeze_init(void); * * This function should be called when no further eeze functions will be called. * - * @ingroup main + * @ingroup Eeze_Main */ EAPI int eeze_shutdown(void); /** - * @addtogroup find Find + * @addtogroup Eeze_Find Find * * These are functions which find/supplement lists of devices. * - * @ingroup udev + * @ingroup Eeze_Udev * * @{ */ @@ -319,7 +355,7 @@ EAPI Eina_List *eeze_udev_find_unlisted_similar(Eina_List *list); * * @return A stringshared list of the devices found with the attribute * - * @ingroup find + * @ingroup Eeze_Find */ EAPI Eina_List *eeze_udev_find_by_sysattr(const char *sysattr, const char *value); @@ -351,12 +387,12 @@ EAPI Eina_List *eeze_udev_find_by_filter(const char *subsystem, const char */ /** - * @addtogroup syspath Syspath + * @addtogroup Eeze_Syspath Syspath * * These are functions which interact with the syspath (/sys/$PATH) of * a device. * - * @ingroup udev + * @ingroup Eeze_Udev * * @{ */ @@ -475,11 +511,11 @@ EAPI Eina_Bool eeze_udev_syspath_is_joystick(const char *syspath); */ /** - * @addtogroup walks Walks + * @addtogroup Eeze_Walks Walks * * These are functions which walk up the device chain. * - * @ingroup udev + * @ingroup Eeze_Udev * * @{ */ @@ -511,7 +547,7 @@ EAPI const char *eeze_udev_walk_get_sysattr(const char *syspath, const char */ /** - * @addtogroup watch Watch + * @addtogroup Eeze_Watch Watch * * @brief These are functions which monitor udev for events. * @@ -520,7 +556,7 @@ EAPI const char *eeze_udev_walk_get_sysattr(const char *syspath, const char * syspath of the triggering device and the event that happened to the device, along with the data you associated with the watch and * the watch object itself in case you want to stop the watch easily in a callback. * - * @ingroup udev + * @ingroup Eeze_Udev * * @{ */ diff --git a/legacy/eeze/src/lib/Eeze_Disk.h b/src/lib/eeze/Eeze_Disk.h similarity index 99% rename from legacy/eeze/src/lib/Eeze_Disk.h rename to src/lib/eeze/Eeze_Disk.h index 36079b34de..ca131d3f51 100644 --- a/legacy/eeze/src/lib/Eeze_Disk.h +++ b/src/lib/eeze/Eeze_Disk.h @@ -26,7 +26,11 @@ * Eeze disk functions allow you to quickly and efficiently manipulate disks * through simple function calls. * - * @addtogroup disk Disk + * @defgroup Eeze_Disk Disk + * Scan and query information about disks. Manipulate them with moun, + * unmount and eject. + * + * @ingroup Eeze * @{ */ diff --git a/legacy/eeze/src/lib/Eeze_Net.h b/src/lib/eeze/Eeze_Net.h similarity index 93% rename from legacy/eeze/src/lib/Eeze_Net.h rename to src/lib/eeze/Eeze_Net.h index 97a17ca00a..aa58deb8d4 100644 --- a/legacy/eeze/src/lib/Eeze_Net.h +++ b/src/lib/eeze/Eeze_Net.h @@ -24,7 +24,10 @@ * * Eeze net functions allow you to gather information about network objects * - * @addtogroup net Net + * @defgroup Eeze_Net Net + * Gather information about network devices. + * + * @ingroup Eeze * @{ */ diff --git a/legacy/eeze/src/lib/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h similarity index 97% rename from legacy/eeze/src/lib/Eeze_Sensor.h rename to src/lib/eeze/Eeze_Sensor.h index 0f53f0b601..02a51fe385 100644 --- a/legacy/eeze/src/lib/Eeze_Sensor.h +++ b/src/lib/eeze/Eeze_Sensor.h @@ -43,7 +43,11 @@ * * @since 1.8 * - * @addtogroup sensor Sensor + * @addtogroup Eeze_Sensor Sensor + * Gather sensor information from different sources. Works based on plugins, + * with a Tizen plugin being available. + * + * @ingroup Eeze * @{ */ @@ -78,8 +82,9 @@ typedef enum } Eeze_Sensor_Type; /** - * @defgroup Sensor_Events Available eeze sensor events + * @defgroup Eeze_Sensor_Events Available eeze sensor events * @brief Sensor events that are emitted from the library as ecore events + * @ingroup Eeze * * Event types used to register ecore_event_handler on. These events are used * for #eeze_sensor_async_read to deliver read out data. It is also used for diff --git a/legacy/eeze/src/lib/eeze_disk.c b/src/lib/eeze/eeze_disk.c similarity index 96% rename from legacy/eeze/src/lib/eeze_disk.c rename to src/lib/eeze/eeze_disk.c index 8d1aeec52d..80b0c31437 100644 --- a/legacy/eeze/src/lib/eeze_disk.c +++ b/src/lib/eeze/eeze_disk.c @@ -5,6 +5,7 @@ #include #include #include +#include #include "eeze_udev_private.h" #include "eeze_disk_private.h" @@ -460,17 +461,23 @@ eeze_disk_removable_get(Eeze_Disk *disk) EAPI Eina_Bool eeze_disk_can_mount(void) { - return MOUNTABLE; + if (sizeof(EEZE_MOUNT_BIN) == sizeof("")) + return EINA_FALSE; + return access(EEZE_MOUNT_BIN, X_OK | R_OK) == 0; } EAPI Eina_Bool eeze_disk_can_unmount(void) { - return UNMOUNTABLE; + if (sizeof(EEZE_UNMOUNT_BIN) == sizeof("")) + return EINA_FALSE; + return access(EEZE_UNMOUNT_BIN, X_OK | R_OK) == 0; } EAPI Eina_Bool eeze_disk_can_eject(void) { - return EJECTABLE; + if (sizeof(EEZE_EJECT_BIN) == sizeof("")) + return EINA_FALSE; + return access(EEZE_EJECT_BIN, X_OK | R_OK) == 0; } diff --git a/legacy/eeze/src/lib/eeze_disk_libmount.c b/src/lib/eeze/eeze_disk_libmount.c similarity index 97% rename from legacy/eeze/src/lib/eeze_disk_libmount.c rename to src/lib/eeze/eeze_disk_libmount.c index 885f313cc0..9cc1980bb2 100644 --- a/legacy/eeze/src/lib/eeze_disk_libmount.c +++ b/src/lib/eeze/eeze_disk_libmount.c @@ -50,7 +50,7 @@ static libmnt_lock *_eeze_mtab_lock = NULL; extern Eina_List *_eeze_disks; static libmnt_table *_eeze_mount_tab_parse(const char *filename); -static void _eeze_mount_tab_watcher(void *data, Ecore_File_Monitor *mon __UNUSED__, Ecore_File_Event event __UNUSED__, const char *path); +static void _eeze_mount_tab_watcher(void *data, Ecore_File_Monitor *mon EINA_UNUSED, Ecore_File_Event event EINA_UNUSED, const char *path); static Eina_Bool _eeze_mount_lock_mtab(void) @@ -80,7 +80,7 @@ _eeze_mount_unlock_mtab(void) static int -_eeze_mount_tab_parse_errcb(libmnt_table *tab __UNUSED__, const char *filename, int line) +_eeze_mount_tab_parse_errcb(libmnt_table *tab EINA_UNUSED, const char *filename, int line) { ERR("%s:%d: could not parse line!", filename, line); /* most worthless error reporting ever. */ return -1; @@ -111,7 +111,7 @@ _eeze_mount_tab_parse(const char *filename) } static void -_eeze_mount_tab_watcher(void *data, Ecore_File_Monitor *mon __UNUSED__, Ecore_File_Event event __UNUSED__, const char *path) +_eeze_mount_tab_watcher(void *data, Ecore_File_Monitor *mon EINA_UNUSED, Ecore_File_Event event EINA_UNUSED, const char *path) { libmnt_table *bak; diff --git a/legacy/eeze/src/lib/eeze_disk_libmount_new.c b/src/lib/eeze/eeze_disk_libmount_new.c similarity index 97% rename from legacy/eeze/src/lib/eeze_disk_libmount_new.c rename to src/lib/eeze/eeze_disk_libmount_new.c index 58115189cc..aaae525b68 100644 --- a/legacy/eeze/src/lib/eeze_disk_libmount_new.c +++ b/src/lib/eeze/eeze_disk_libmount_new.c @@ -51,10 +51,10 @@ static Ecore_Fd_Handler *_mountinfo_fdh = NULL; static int _mountinfo = -1; static libmnt_table *_eeze_mount_tab_parse(const char *filename); -static void _eeze_mount_tab_watcher(void *data, Ecore_File_Monitor *mon __UNUSED__, Ecore_File_Event event __UNUSED__, const char *path); +static void _eeze_mount_tab_watcher(void *data, Ecore_File_Monitor *mon EINA_UNUSED, Ecore_File_Event event EINA_UNUSED, const char *path); static int -_eeze_mount_tab_parse_errcb(libmnt_table *tab __UNUSED__, const char *filename, int line) +_eeze_mount_tab_parse_errcb(libmnt_table *tab EINA_UNUSED, const char *filename, int line) { ERR("%s:%d: could not parse line!", filename, line); /* most worthless error reporting ever. */ return -1; @@ -85,7 +85,7 @@ _eeze_mount_tab_parse(const char *filename) } static void -_eeze_mount_tab_watcher(void *data, Ecore_File_Monitor *mon __UNUSED__, Ecore_File_Event event __UNUSED__, const char *path) +_eeze_mount_tab_watcher(void *data, Ecore_File_Monitor *mon EINA_UNUSED, Ecore_File_Event event EINA_UNUSED, const char *path) { libmnt_table *bak; @@ -125,7 +125,7 @@ error: * based on code from findmnt */ static Eina_Bool -_eeze_mount_fdh(void *d __UNUSED__, Ecore_Fd_Handler *fdh __UNUSED__) +_eeze_mount_fdh(void *d EINA_UNUSED, Ecore_Fd_Handler *fdh EINA_UNUSED) { libmnt_table *tb_new; libmnt_fs *old, *new; diff --git a/legacy/eeze/src/lib/eeze_disk_mount.c b/src/lib/eeze/eeze_disk_mount.c similarity index 98% rename from legacy/eeze/src/lib/eeze_disk_mount.c rename to src/lib/eeze/eeze_disk_mount.c index 24c0ae4ebb..bfbf8f0781 100644 --- a/legacy/eeze/src/lib/eeze_disk_mount.c +++ b/src/lib/eeze/eeze_disk_mount.c @@ -30,7 +30,7 @@ Eina_List *eeze_events = NULL; */ static void -_eeze_disk_mount_error_free(void *data __UNUSED__, Eeze_Event_Disk_Error *de) +_eeze_disk_mount_error_free(void *data EINA_UNUSED, Eeze_Event_Disk_Error *de) { if (!de) return; @@ -55,7 +55,7 @@ _eeze_disk_mount_error_handler(Eeze_Disk *disk, const char *error) } static Eina_Bool -_eeze_disk_mount_result_handler(void *data __UNUSED__, int type __UNUSED__, Ecore_Exe_Event_Del *ev) +_eeze_disk_mount_result_handler(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_Exe_Event_Del *ev) { Eeze_Disk *disk; Eina_List *l; @@ -221,10 +221,6 @@ EAPI unsigned long eeze_disk_mountopts_get(Eeze_Disk *disk) { EINA_SAFETY_ON_NULL_RETURN_VAL(disk, 0); -#ifndef OLD_LIBMOUNT - if (!disk->mount_opts) - disk->mount_opts = eeze_disk_libmount_opts_get(disk); -#endif return disk->mount_opts; } diff --git a/legacy/eeze/src/lib/eeze_disk_private.h b/src/lib/eeze/eeze_disk_private.h similarity index 100% rename from legacy/eeze/src/lib/eeze_disk_private.h rename to src/lib/eeze/eeze_disk_private.h diff --git a/legacy/eeze/src/lib/eeze_disk_udev.c b/src/lib/eeze/eeze_disk_udev.c similarity index 100% rename from legacy/eeze/src/lib/eeze_disk_udev.c rename to src/lib/eeze/eeze_disk_udev.c diff --git a/legacy/eeze/src/lib/eeze_main.c b/src/lib/eeze/eeze_main.c similarity index 98% rename from legacy/eeze/src/lib/eeze_main.c rename to src/lib/eeze/eeze_main.c index e2b878b20b..1b2bfc2571 100644 --- a/legacy/eeze/src/lib/eeze_main.c +++ b/src/lib/eeze/eeze_main.c @@ -14,7 +14,7 @@ _udev *udev; int _eeze_udev_log_dom = -1; int _eeze_net_log_dom = -1; -int _eeze_sensor_log_dom = -1; +EAPI int _eeze_sensor_log_dom = -1; int _eeze_init_count = 0; static Eeze_Version _version = { VMAJ, VMIN, VMIC, VREV }; diff --git a/legacy/eeze/src/lib/eeze_net.c b/src/lib/eeze/eeze_net.c similarity index 99% rename from legacy/eeze/src/lib/eeze_net.c rename to src/lib/eeze/eeze_net.c index 415f79413d..8a8826421d 100644 --- a/legacy/eeze/src/lib/eeze_net.c +++ b/src/lib/eeze/eeze_net.c @@ -27,7 +27,9 @@ eeze_net_shutdown(void) eeze_nets = NULL; } -/** @addtogroup net Net +/** + * @addtogroup Eeze_Net Net + * @ingroup Eeze * @{ */ diff --git a/legacy/eeze/src/lib/eeze_net_private.h b/src/lib/eeze/eeze_net_private.h similarity index 100% rename from legacy/eeze/src/lib/eeze_net_private.h rename to src/lib/eeze/eeze_net_private.h diff --git a/legacy/eeze/src/lib/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c similarity index 99% rename from legacy/eeze/src/lib/eeze_sensor.c rename to src/lib/eeze/eeze_sensor.c index 024f206b62..b808c6cc50 100644 --- a/legacy/eeze/src/lib/eeze_sensor.c +++ b/src/lib/eeze/eeze_sensor.c @@ -80,7 +80,7 @@ eeze_sensor_modules_load(void) if (getenv("EEZE_USE_IN_TREE_MODULES")) g_handle->modules_array = eina_module_list_get(NULL, PACKAGE_BUILD_DIR "/src/modules/.libs/", 0, NULL, NULL); else - g_handle->modules_array = eina_module_list_get(NULL, PACKAGE_LIB_DIR "/eeze-sensor/", 0, NULL, NULL); + g_handle->modules_array = eina_module_list_get(NULL, PACKAGE_LIB_DIR "/eeze/sensor/", 0, NULL, NULL); if (!g_handle->modules_array) { diff --git a/legacy/eeze/src/lib/eeze_sensor_private.h b/src/lib/eeze/eeze_sensor_private.h similarity index 94% rename from legacy/eeze/src/lib/eeze_sensor_private.h rename to src/lib/eeze/eeze_sensor_private.h index 88c45e2367..aa39f94a37 100644 --- a/legacy/eeze/src/lib/eeze_sensor_private.h +++ b/src/lib/eeze/eeze_sensor_private.h @@ -74,7 +74,7 @@ typedef struct _Eeze_Sensor_Module * * @since 1.8 */ -Eina_Bool eeze_sensor_module_register(const char *name, Eeze_Sensor_Module *mod); +EAPI Eina_Bool eeze_sensor_module_register(const char *name, Eeze_Sensor_Module *mod); /** * @brief Unregister a module from eeze_sensor core. @@ -85,5 +85,5 @@ Eina_Bool eeze_sensor_module_register(const char *name, Eeze_Sensor_Module *mod) * * @since 1.8 */ -Eina_Bool eeze_sensor_module_unregister(const char *name); +EAPI Eina_Bool eeze_sensor_module_unregister(const char *name); #endif // EEZE_SENSOR_PRIVATE_H diff --git a/legacy/eeze/src/lib/eeze_udev_find.c b/src/lib/eeze/eeze_udev_find.c similarity index 100% rename from legacy/eeze/src/lib/eeze_udev_find.c rename to src/lib/eeze/eeze_udev_find.c diff --git a/legacy/eeze/src/lib/eeze_udev_private.c b/src/lib/eeze/eeze_udev_private.c similarity index 100% rename from legacy/eeze/src/lib/eeze_udev_private.c rename to src/lib/eeze/eeze_udev_private.c diff --git a/legacy/eeze/src/lib/eeze_udev_private.h b/src/lib/eeze/eeze_udev_private.h similarity index 100% rename from legacy/eeze/src/lib/eeze_udev_private.h rename to src/lib/eeze/eeze_udev_private.h diff --git a/legacy/eeze/src/lib/eeze_udev_syspath.c b/src/lib/eeze/eeze_udev_syspath.c similarity index 100% rename from legacy/eeze/src/lib/eeze_udev_syspath.c rename to src/lib/eeze/eeze_udev_syspath.c diff --git a/legacy/eeze/src/lib/eeze_udev_walk.c b/src/lib/eeze/eeze_udev_walk.c similarity index 100% rename from legacy/eeze/src/lib/eeze_udev_walk.c rename to src/lib/eeze/eeze_udev_walk.c diff --git a/legacy/eeze/src/lib/eeze_udev_watch.c b/src/lib/eeze/eeze_udev_watch.c similarity index 100% rename from legacy/eeze/src/lib/eeze_udev_watch.c rename to src/lib/eeze/eeze_udev_watch.c diff --git a/legacy/eeze/src/modules/eeze_sensor_fake.c b/src/modules/eeze/eeze_sensor_fake.c similarity index 100% rename from legacy/eeze/src/modules/eeze_sensor_fake.c rename to src/modules/eeze/eeze_sensor_fake.c diff --git a/legacy/eeze/src/modules/eeze_sensor_tizen.c b/src/modules/eeze/eeze_sensor_tizen.c similarity index 100% rename from legacy/eeze/src/modules/eeze_sensor_tizen.c rename to src/modules/eeze/eeze_sensor_tizen.c diff --git a/legacy/eeze/src/tests/eeze_suite.c b/src/tests/eeze/eeze_suite.c similarity index 99% rename from legacy/eeze/src/tests/eeze_suite.c rename to src/tests/eeze/eeze_suite.c index 6ae6e1a7a9..360d34ccd4 100644 --- a/legacy/eeze/src/tests/eeze_suite.c +++ b/src/tests/eeze/eeze_suite.c @@ -628,7 +628,7 @@ eeze_suite(void) TCase *tc; s = suite_create("Eeze"); - +#if 0 tc = tcase_create("Eeze_Init"); tcase_add_test(tc, eeze_test_init); suite_add_tcase(s, tc); @@ -651,7 +651,7 @@ eeze_suite(void) //tcase_add_test(tc, eeze_test_net_attr_ipv6); #endif suite_add_tcase(s, tc); - +#endif tc = tcase_create("Eeze Sensor"); tcase_add_test(tc, eeze_test_sensor_read); tcase_add_test(tc, eeze_test_sensor_async_read);