efl: merge efreet.

seems to be fine, pass distcheck and friends. please report.

changes:
 - documentation hierarchy fixes
 - replaced __UNUSED__ with EINA_UNUSED
 - replaced PKG_DATA_DIR with PACKAGE_DATA_DIR"/efreet"



SVN revision: 81889
This commit is contained in:
Gustavo Sverzut Barbieri 2012-12-29 23:04:40 +00:00
parent 727ddbeaf0
commit 4bc0210bd3
83 changed files with 457 additions and 88 deletions

12
AUTHORS
View File

@ -213,3 +213,15 @@ Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
José Roberto de Souza <zehortigoza@profusion.mobi>
Leandro Pereira <leandro@profusion.mobi>
Lucas De Marchi <lucas.demarchi@profusion.mobi>
Efreet
------
dan 'dj2' sinclair
Brian 'rephorm' Mattern
Sebastian Dransfeld <sd@tango.flipp.net>
Nathan 'RbdPngn' Ingersoll
Nicholas 'Mekius' Hughart
Albin "Lutin" Tonnerre <albin.tonnerre@gmail.com>
Mathieu Taillefumier <mathieu.taillefumier@free.fr>

View File

@ -116,6 +116,13 @@ case "${build_tests}" in
;;
esac
dbusservicedir="${datadir}/dbus-1/services"
AC_ARG_WITH([dbus-services],
[AC_HELP_STRING([--with-dbus-services=DBUS_SERVICES],
[specify a directory to store dbus service files.])],
[dbusservicedir=$withval])
AC_SUBST(dbusservicedir)
#### Default values
@ -156,8 +163,8 @@ requirements_libs_ecore_evas=""
requirements_libs_embryo=""
requirements_libs_eio=""
requirements_libs_edbus=""
requirements_libs_efreet=""
#requirements_libs_edje=""
#requirements_libs_efreet=""
#requirements_libs_eeze=""
#requirements_libs_emotion=""
#requirements_libs_ethumb=""
@ -186,8 +193,8 @@ requirements_pc_ecore_evas=""
requirements_pc_embryo=""
requirements_pc_eio=""
requirements_pc_edbus=""
requirements_pc_efreet=""
#requirements_pc_edje=""
#requirements_pc_efreet=""
#requirements_pc_eeze=""
#requirements_pc_emotion=""
#requirements_pc_ethumb=""
@ -205,8 +212,8 @@ requirements_pc_deps_ecore_wayland=""
requirements_pc_deps_ecore_evas=""
requirements_pc_deps_embryo=""
requirements_pc_deps_edbus=""
requirements_pc_deps_efreet=""
#requirements_pc_deps_edje=""
#requirements_pc_deps_efreet=""
#requirements_pc_deps_eeze=""
#requirements_pc_deps_emotion=""
#requirements_pc_deps_ethumb=""
@ -235,8 +242,8 @@ AC_SUBST([requirements_libs_ecore_evas])
AC_SUBST([requirements_libs_embryo])
AC_SUBST([requirements_libs_eio])
AC_SUBST([requirements_libs_edbus])
AC_SUBST([requirements_libs_efreet])
#AC_SUBST([requirements_libs_edje])
#AC_SUBST([requirements_libs_efreet])
#AC_SUBST([requirements_libs_eeze])
#AC_SUBST([requirements_libs_emotion])
#AC_SUBST([requirements_libs_ethumb])
@ -267,8 +274,8 @@ AC_SUBST([requirements_pc_ecore_evas])
AC_SUBST([requirements_pc_embryo])
AC_SUBST([requirements_pc_eio])
AC_SUBST([requirements_pc_edbus])
AC_SUBST([requirements_pc_efreet])
#AC_SUBST([requirements_pc_edje])
#AC_SUBST([requirements_pc_efreet])
#AC_SUBST([requirements_pc_eeze])
#AC_SUBST([requirements_pc_emotion])
#AC_SUBST([requirements_pc_ethumb])
@ -370,6 +377,8 @@ have_po="yes"
have_po="no"
])
AC_SUBST([LTLIBINTL])
LOCALE_DIR="${localedir}"
AC_SUBST(LOCALE_DIR)
if test "x${POSUB}" = "x" ; then
have_po="no"
@ -666,6 +675,7 @@ AC_SUBST([SSE3_CFLAGS])
AC_CHECK_FUNCS([\
backtrace \
backtrace_symbols \
clearenv \
execvp \
dirfd \
fpathconf \
@ -3360,7 +3370,7 @@ AC_MSG_NOTICE([EDBus checks])
### Checks for libraries
## Eina, Ecore, Ecore_Input
## Eina, Ecore
requirements_pc_edbus="ecore >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION}"
@ -3383,6 +3393,44 @@ PKG_CHECK_MODULES([EDBUS], [${requirements_pc_deps_edbus}])
#### End of EDBus
#### Efreet
AC_MSG_NOTICE([Efreet checks])
### Additional options to configure
### Default values
AC_DEFINE([SLOPPY_SPEC], [1], [Sloppy Spec Compliance])
### Checks for programs
### Checks for libraries
## Eet, Ecore, Ecore_File, EDBus, Eina, Evil
requirements_pc_efreet="eet >= ${PACKAGE_VERSION} ecore >= ${PACKAGE_VERSION} ecore-file >= ${PACKAGE_VERSION} edbus2 >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${platform_pc_evil}"
AC_ARG_VAR([EFREET_CFLAGS], [preprocessor flags for Efreet])
AC_SUBST([EFREET_CFLAGS])
AC_ARG_VAR([EFREET_LIBS], [linker flags for Efreet])
AC_SUBST([EFREET_LIBS])
### Checks for header files
### Checks for types
### Checks for structures
### Checks for compiler characteristics
### Checks for linker characteristics
### Checks for library functions
#### End of Efreet
AC_CONFIG_FILES([
Makefile
@ -3443,6 +3491,10 @@ pc/ecore-audio.pc
pc/embryo.pc
pc/eio.pc
pc/edbus2.pc
pc/efreet.pc
pc/efreet-mime.pc
pc/efreet-trash.pc
dbus-services/org.enlightenment.Efreet.service
$po_makefile_in
])

View File

@ -806,7 +806,9 @@ evas_ _evas_ Evas_ _Evas_ EVAS_ _EVAS_ \
eet_ _eet_ Eet_ _Eet_ EET_ _EET_ \
ecore_ _ecore_ Ecore_ _Ecore_ ECORE_ _ECORE_ \
eio_ _eio_ Eio_ _Eio_ EIO_ _EIO_ \
edbus_ _edbus_ EDBus_ _EDBus_ EDBUS_ _EDBUS_
edbus_ _edbus_ EDBus_ _EDBus_ EDBUS_ _EDBUS_ \
efreet_ _efreet_ Efreet_ _Efreet_ EFREET_ _EFREET_
#---------------------------------------------------------------------------
# configuration options related to the HTML output
@ -914,13 +916,13 @@ DOCSET_FEEDNAME = "Doxygen generated docs"
# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
# will append .docset to the name.
DOCSET_BUNDLE_ID = org.enlightenment.Eina
DOCSET_BUNDLE_ID = org.enlightenment.Efl
# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify
# the documentation publisher. This should be a reverse domain-name style
# string, e.g. com.mycompany.MyDocSet.documentation.
DOCSET_PUBLISHER_ID = org.enlightenment.Eina
DOCSET_PUBLISHER_ID = org.enlightenment.Ef;
# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
@ -987,7 +989,7 @@ QCH_FILE =
# Qt Help Project output. For more information please see
# http://doc.trolltech.com/qthelpproject.html#namespace
QHP_NAMESPACE = org.enlightenment.Eina
QHP_NAMESPACE = org.enlightenment.Efl
# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
# Qt Help Project output. For more information please see
@ -1038,7 +1040,7 @@ GENERATE_ECLIPSEHELP = NO
# the directory name containing the HTML and XML files should also have
# this name.
ECLIPSE_DOC_ID = org.enlightenment.Eina
ECLIPSE_DOC_ID = org.enlightenment.Efl
# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
# top of each HTML page. The value NO (the default) enables the index and
@ -1422,7 +1424,8 @@ PREDEFINED = EINA_MAGIC_DEBUG \
EINA_WARN_UNUSED_RESULT= \
EAPI= \
EINA_PURE= \
EINA_CONST=
EINA_CONST= \
EINA_UNUSED=
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
# this tag can be used to specify a list of macro names that should be expanded.

View File

@ -17,6 +17,7 @@
* @li @ref evil_main microsoft windows portability layer.
* @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.
*
*/
@ -77,8 +78,8 @@
* @author Mike McCormack <mj.mccormack@@samsung.com>
* @author Myoungwoon Roy Kim(roy_kim) <myoungwoon.kim@@samsung.com> <myoungwoon@@gmail.com>
* @author Myungjae Lee <mjae.lee@@samsung.com>
* @author Nathan Ingersoll <ningerso@@d.umn.edu>
* @author Nathan Ingersoll <rbdpngn@@users.sourceforge.net>
* @author Nathan 'RbdPngn' Ingersoll <ningerso@@d.umn.edu>
* @author Nicholas 'Mekius' Hughart
* @author Nicholas Curran <quasar@@bigblue.net.au>
* @author Nicolas Aguirre <aguirre.nicolas@@gmail.com>
* @author Peter Wehrfritz <peter.wehrfritz@@web.de>
@ -91,7 +92,6 @@
* @author Samsung SAIT
* @author Sangho Park <gouache95@gmail.com>
* @author Sebastian Dransfeld <sd@@tango.flipp.net>
* @author Sebastian Dransfeld <sebastid@@tango.flipp.net>
* @author Seungsoo Woo <om101.woo@@samsung.com>
* @author Shilpa Singh <shilpa.singh@@samsung.com> <shilpasingh.o@@gmail.com>
* @author Simon Poole <simon.armlinux@@themalago.net>
@ -177,3 +177,9 @@
*
* @brief D-Bus integration with EFL (Ecore).
*/
/**
* @defgroup Efreet
*
* @brief FreeDesktop.Org (XDG) menu and desktop integration.
*/

View File

@ -5,7 +5,7 @@ includedir=@includedir@
Name: efreet-mime
Description: Freedesktop Shared Mime Info standard implementation for the EFL
@pkgconfig_requires_private@: @requirement_efreet@
Version: @VERSION@
Requires.private: @requirement_efreet@
Libs: -L${libdir} -lefreet_mime
Cflags: -I${includedir}/efreet-@VMAJ@

View File

@ -5,7 +5,7 @@ includedir=@includedir@
Name: efreet-trash
Description: Freedesktop Shared Trash implementation for the EFL
@pkgconfig_requires_private@: @requirement_efreet@
Version: @VERSION@
Requires.private: @requirement_efreet@
Libs: -L${libdir} -lefreet_trash
Cflags: -I${includedir}/efreet-@VMAJ@

View File

@ -5,7 +5,7 @@ includedir=@includedir@
Name: efreet
Description: Freedesktop standards implementation for the EFL
@pkgconfig_requires_private@: @requirement_efreet@
Version: @VERSION@
Requires.private: @requirement_efreet@
Libs: -L${libdir} -lefreet
Cflags: -I${includedir}/efreet-@VMAJ@

View File

@ -7,6 +7,7 @@ SUBDIRS = . benchmarks examples
lib_LTLIBRARIES =
bin_PROGRAMS =
noinst_PROGRAMS =
check_PROGRAMS =
EXTRA_DIST =
@ -59,6 +60,7 @@ endif
include Makefile_Embryo.am
include Makefile_Eio.am
include Makefile_EDBus.am
include Makefile_Efreet.am
.PHONY: benchmark examples
@ -75,6 +77,7 @@ install-examples:
clean-local:
rm -rf bin/eet/*.gcno
rm -rf bin/efreet/*.gcno
rm -rf lib/evil/*.gcno
rm -rf lib/eina/*.gcno
rm -rf lib/eo/*.gcno
@ -90,6 +93,7 @@ clean-local:
rm -rf lib/evas/file/*.gcno
rm -rf lib/embryo/*.gcno
rm -rf lib/edbus/*.gcno
rm -rf lib/efreet/*.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

View File

@ -138,7 +138,7 @@ endif
### Utils
noinst_PROGRAMS = utils/ecore/makekeys
noinst_PROGRAMS += utils/ecore/makekeys
utils_ecore_makekeys_SOURCES = utils/ecore/makekeys.c

222
src/Makefile_Efreet.am Normal file
View File

@ -0,0 +1,222 @@
### Library
lib_LTLIBRARIES += \
lib/efreet/libefreet.la \
lib/efreet/libefreet_mime.la \
lib/efreet/libefreet_trash.la
EFREET_COMMON_CPPFLAGS = \
-I$(top_srcdir)/src/lib/eina \
-I$(top_builddir)/src/lib/eina \
-I$(top_srcdir)/src/lib/eo \
-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/eet \
-I$(top_builddir)/src/lib/eet \
-I$(top_srcdir)/src/lib/edbus \
-I$(top_builddir)/src/lib/edbus \
-I$(top_srcdir)/src/lib/efreet \
-I$(top_builddir)/src/lib/efreet \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)\" \
-DLOCALE_DIR=\"@LOCALE_DIR@\" \
-DEFL_EFREET_BUILD \
@EFL_CFLAGS@ \
@EFL_COV_CFLAGS@ \
@EFREET_CFLAGS@ \
@USE_EVIL_CFLAGS@
EFREET_COMMON_LIBADD = \
lib/eina/libeina.la \
lib/eo/libeo.la \
lib/ecore/libecore.la \
lib/ecore_file/libecore_file.la \
lib/eet/libeet.la \
lib/edbus/libedbus2.la \
@USE_EVIL_LIBS@ \
@EFREET_LIBS@ \
@EFL_COV_LIBS@
EFREET_COMMON_USER_LIBADD = $(EFREET_COMMON_LIBADD) lib/efreet/libefreet.la
EFREET_COMMON_LDFLAGS = -no-undefined -version-info @version_info@ @release_info@
installed_efreetmainheadersdir = $(includedir)/efreet-@VMAJ@
dist_installed_efreetmainheaders_DATA = \
lib/efreet/Efreet.h \
lib/efreet/efreet_base.h \
lib/efreet/efreet_desktop.h \
lib/efreet/efreet_icon.h \
lib/efreet/efreet_ini.h \
lib/efreet/efreet_menu.h \
lib/efreet/efreet_utils.h \
lib/efreet/efreet_uri.h \
lib/efreet/Efreet_Mime.h \
lib/efreet/Efreet_Trash.h
# libefreet.la
lib_efreet_libefreet_la_SOURCES = \
lib/efreet/efreet.c \
lib/efreet/efreet_base.c \
lib/efreet/efreet_icon.c \
lib/efreet/efreet_xml.c \
lib/efreet/efreet_ini.c \
lib/efreet/efreet_desktop.c \
lib/efreet/efreet_desktop_command.c \
lib/efreet/efreet_menu.c \
lib/efreet/efreet_utils.c \
lib/efreet/efreet_uri.c \
lib/efreet/efreet_cache.c \
lib/efreet/efreet_private.h \
lib/efreet/efreet_xml.h \
lib/efreet/efreet_cache_private.h \
lib/efreet/efreet_alloca.h
lib_efreet_libefreet_la_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
lib_efreet_libefreet_la_LIBADD = $(EFREET_COMMON_LIBADD)
lib_efreet_libefreet_la_LDFLAGS = $(EFREET_COMMON_LDFLAGS)
# libefreet_mime.la
lib_efreet_libefreet_mime_la_SOURCES = lib/efreet/efreet_mime.c
lib_efreet_libefreet_mime_la_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
lib_efreet_libefreet_mime_la_LIBADD = $(EFREET_COMMON_USER_LIBADD)
lib_efreet_libefreet_mime_la_LDFLAGS = $(EFREET_COMMON_LDFLAGS)
# libefreet_trash.la
lib_efreet_libefreet_trash_la_SOURCES = lib/efreet/efreet_trash.c
lib_efreet_libefreet_trash_la_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
lib_efreet_libefreet_trash_la_LIBADD = $(EFREET_COMMON_USER_LIBADD)
lib_efreet_libefreet_trash_la_LDFLAGS = $(EFREET_COMMON_LDFLAGS)
### Binary
bin_PROGRAMS += bin/efreet/efreetd
bin_efreet_efreetd_SOURCES = \
bin/efreet/efreetd.c \
bin/efreet/efreetd.h \
bin/efreet/efreetd_dbus.h \
bin/efreet/efreetd_dbus.c \
bin/efreet/efreetd_cache.h \
bin/efreet/efreetd_cache.c
bin_efreet_efreetd_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
bin_efreet_efreetd_LDADD = $(EFREET_COMMON_USER_LIBADD)
efreetinternal_bindir=$(libdir)/efreet
efreetinternal_bin_PROGRAMS = \
bin/efreet/efreet_desktop_cache_create \
bin/efreet/efreet_icon_cache_create
bin_efreet_efreet_desktop_cache_create_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
bin_efreet_efreet_desktop_cache_create_LDADD = $(EFREET_COMMON_USER_LIBADD)
bin_efreet_efreet_desktop_cache_create_SOURCES = \
bin/efreet/efreet_desktop_cache_create.c
bin_efreet_efreet_icon_cache_create_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
bin_efreet_efreet_icon_cache_create_LDADD = $(EFREET_COMMON_USER_LIBADD)
bin_efreet_efreet_icon_cache_create_SOURCES = \
bin/efreet/efreet_icon_cache_create.c
### Unit tests
if EFL_ENABLE_TESTS
noinst_PROGRAMS += \
tests/efreet/efreet_test \
tests/efreet/efreet_spec_test \
tests/efreet/efreet_cache_test \
tests/efreet/efreet_icon_cache_dump \
tests/efreet/efreet_user_dir \
tests/efreet/compare/efreet_alloc \
tests/efreet/compare/efreet_menu_alloc
# efreet_test
tests_efreet_efreet_test_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_test_LDADD = \
$(EFREET_COMMON_USER_LIBADD) \
lib/efreet/libefreet_mime.la
tests_efreet_efreet_test_SOURCES = \
tests/efreet/ef_test.h \
tests/efreet/ef_data_dirs.c \
tests/efreet/ef_icon_theme.c \
tests/efreet/ef_ini.c \
tests/efreet/ef_utils.c \
tests/efreet/ef_desktop.c \
tests/efreet/ef_menu.c \
tests/efreet/ef_mime.c \
tests/efreet/main.c
# efreet_spec_test
tests_efreet_efreet_spec_test_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_spec_test_LDADD = $(EFREET_COMMON_USER_LIBADD)
tests_efreet_efreet_spec_test_SOURCES = \
tests/efreet/efreet_spec_test.c
# efreet_cache_test
tests_efreet_efreet_cache_test_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_cache_test_LDADD = $(EFREET_COMMON_USER_LIBADD)
tests_efreet_efreet_cache_test_SOURCES = \
tests/efreet/ef_cache.c
# efreet_icon_cache_dump
tests_efreet_efreet_icon_cache_dump_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_icon_cache_dump_LDADD = $(EFREET_COMMON_USER_LIBADD)
tests_efreet_efreet_icon_cache_dump_SOURCES = \
tests/efreet/efreet_icon_cache_dump.c
# efreet_user_dir
tests_efreet_efreet_user_dir_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
tests_efreet_efreet_user_dir_LDADD = $(EFREET_COMMON_USER_LIBADD)
tests_efreet_efreet_user_dir_SOURCES = \
tests/efreet/efreet_user_dir.c
# efreet_alloc
tests_efreet_compare_efreet_alloc_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
tests_efreet_compare_efreet_alloc_LDADD = $(EFREET_COMMON_USER_LIBADD)
tests_efreet_compare_efreet_alloc_SOURCES = \
tests/efreet/compare/efreet_alloc.c \
tests/efreet/compare/comp.h
# efreet_menu_alloc
tests_efreet_compare_efreet_menu_alloc_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS)
tests_efreet_compare_efreet_menu_alloc_LDADD = $(EFREET_COMMON_USER_LIBADD)
tests_efreet_compare_efreet_menu_alloc_SOURCES = \
tests/efreet/compare/efreet_menu_alloc.c \
tests/efreet/compare/comp.h
efreettestdir = $(datadir)/efreet/test
efreettest_DATA = \
tests/efreet/data/test.ini \
tests/efreet/data/long.ini \
tests/efreet/data/test.desktop \
tests/efreet/data/test_type.desktop \
tests/efreet/data/test.menu \
tests/efreet/data/test_menu_slash_bad.menu \
tests/efreet/data/entry.png \
tests/efreet/data/entry \
tests/efreet/data/preferences.menu \
tests/efreet/data/test_garbage
efreettestsubdir = $(datadir)/efreet/test/sub
efreettestsub_DATA = \
tests/efreet/data/sub/test.desktop
check_PROGRAMS += tests/efreet/efreet_suite
tests_efreet_efreet_suite_SOURCES = \
tests/efreet/efreet_suite.c \
tests/efreet/efreet_test_efreet.c \
tests/efreet/efreet_test_efreet_cache.c
tests_efreet_efreet_suite_CPPFLAGS = $(EFREET_COMMON_CPPFLAGS) @CHECK_CFLAGS@
tests_efreet_efreet_suite_LDADD = $(EFREET_COMMON_USER_LIBADD) @CHECK_LIBS@
endif

View File

@ -37,7 +37,7 @@ static Eina_Hash *comment = NULL;
static Eina_Hash *exec = NULL;
static int
cache_add(const char *path, const char *file_id, int priority __UNUSED__, int *changed)
cache_add(const char *path, const char *file_id, int priority EINA_UNUSED, int *changed)
{
Efreet_Desktop *desk;
char *ext;

View File

@ -38,7 +38,7 @@ static void desktop_changes_monitor_add(const char *path);
/* internal */
static Eina_Bool
icon_cache_update_cache_cb(void *data __UNUSED__)
icon_cache_update_cache_cb(void *data EINA_UNUSED)
{
char file[PATH_MAX];
int prio;
@ -103,7 +103,7 @@ cache_icon_update(Eina_Bool flush)
}
static Eina_Bool
desktop_cache_update_cache_cb(void *data __UNUSED__)
desktop_cache_update_cache_cb(void *data EINA_UNUSED)
{
char file[PATH_MAX];
int prio;
@ -141,7 +141,7 @@ desktop_cache_update_cache_cb(void *data __UNUSED__)
}
static Eina_Bool
cache_exe_data_cb(void *data __UNUSED__, int type __UNUSED__, void *event)
cache_exe_data_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
Ecore_Exe_Event_Data *ev;
@ -169,7 +169,7 @@ cache_exe_data_cb(void *data __UNUSED__, int type __UNUSED__, void *event)
}
static Eina_Bool
cache_exe_del_cb(void *data __UNUSED__, int type __UNUSED__, void *event)
cache_exe_del_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
{
Ecore_Exe_Event_Del *ev;
@ -188,7 +188,7 @@ cache_exe_del_cb(void *data __UNUSED__, int type __UNUSED__, void *event)
}
static void
icon_changes_cb(void *data __UNUSED__, Ecore_File_Monitor *em __UNUSED__,
icon_changes_cb(void *data EINA_UNUSED, Ecore_File_Monitor *em EINA_UNUSED,
Ecore_File_Event event, const char *path)
{
/* TODO: If we get a stale symlink, we need to rerun cache creation */
@ -290,7 +290,7 @@ icon_changes_listen(void)
}
static void
desktop_changes_cb(void *data __UNUSED__, Ecore_File_Monitor *em __UNUSED__,
desktop_changes_cb(void *data EINA_UNUSED, Ecore_File_Monitor *em EINA_UNUSED,
Ecore_File_Event event, const char *path)
{
const char *ext;

View File

@ -26,14 +26,14 @@ static Ecore_Timer *shutdown = NULL;
static int clients = 0;
static Eina_Bool
do_shutdown(void *data __UNUSED__)
do_shutdown(void *data EINA_UNUSED)
{
quit();
return ECORE_CALLBACK_CANCEL;
}
static void
disconnected(void *context __UNUSED__, EDBus_Connection *connection __UNUSED__, void *event_info __UNUSED__)
disconnected(void *context EINA_UNUSED, EDBus_Connection *connection EINA_UNUSED, void *event_info EINA_UNUSED)
{
INF("disconnected");
quit();
@ -56,7 +56,7 @@ client_name_owner_changed_cb(void *data, const char *bus, const char *old_id, co
}
static EDBus_Message *
do_register(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_Message *message)
do_register(const EDBus_Service_Interface *ifc EINA_UNUSED, const EDBus_Message *message)
{
EDBus_Message *reply;
const char *lang;
@ -82,7 +82,7 @@ do_register(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_Message *
}
static EDBus_Message *
add_desktop_dirs(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_Message *message)
add_desktop_dirs(const EDBus_Service_Interface *ifc EINA_UNUSED, const EDBus_Message *message)
{
EDBus_Message_Iter *array = NULL;
const char *dir;
@ -102,7 +102,7 @@ add_desktop_dirs(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_Mess
}
static EDBus_Message *
add_icon_dirs(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_Message *message)
add_icon_dirs(const EDBus_Service_Interface *ifc EINA_UNUSED, const EDBus_Message *message)
{
EDBus_Message_Iter *array = NULL;
const char *dir;
@ -122,7 +122,7 @@ add_icon_dirs(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_Message
}
static EDBus_Message *
build_desktop_cache(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_Message *message __UNUSED__)
build_desktop_cache(const EDBus_Service_Interface *ifc EINA_UNUSED, const EDBus_Message *message EINA_UNUSED)
{
const char *lang;
@ -138,7 +138,7 @@ build_desktop_cache(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_M
}
static EDBus_Message *
add_icon_exts(const EDBus_Service_Interface *ifc __UNUSED__, const EDBus_Message *message)
add_icon_exts(const EDBus_Service_Interface *ifc EINA_UNUSED, const EDBus_Message *message)
{
EDBus_Message_Iter *array = NULL;
const char *ext;
@ -192,7 +192,7 @@ static const EDBus_Service_Interface_Desc desc = {
};
static void
on_name_request(void *data __UNUSED__, const EDBus_Message *msg, EDBus_Pending *pending __UNUSED__)
on_name_request(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
{
unsigned int reply;

View File

@ -9,9 +9,15 @@
*/
/**
* @mainpage The Efreet Library
* @page efreet_main Efreet
*
* @section intro Introduction
* @section toc Table of Contents
*
* @li @ref efreet_main_intro
* @li @ref efreet_main_compiling
* @li @ref efreet_main_next_steps
*
* @section efreet_main_intro Introduction
*
* Efreet is a library designed to help apps work several of the
* Freedesktop.org standards regarding Icons, Desktop files and Menus. To
@ -24,6 +30,45 @@
* @li FDO URI Specification
* @li Shared Mime Info Specification
* @li Trash Specification
*
* @section efreet_main_compiling How to compile
*
* Efreet 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 @c pkg-config script
* outputs. Mime and Thrash are separated modules. For example, to
* compile with mime support:
*
* Compiling C or C++ files into object files:
*
* @verbatim
gcc -c -o main.o main.c `pkg-config --cflags efreet efreet-mime`
@endverbatim
*
* Linking object files into a binary executable:
*
* @verbatim
gcc -o my_application main.o `pkg-config --libs efreet efreet-mime`
@endverbatim
*
* See @ref pkgconfig
*
* @section efreet_main_next_steps Next Steps
*
* After you understood what Efreet is and installed it in your system
* you should proceed understanding the programming interface.
*
* Recommended reading:
*
* @li @ref Efreet_Base for base directory specification (XDG variables).
* @li @ref Efreet_Desktop to access .desktop files
* @li @ref Efreet_Menu to access menus of .desktop files
* @li @ref Efreet_Mime to identify files based on extension or header.
* @li @ref Efreet_Trash to access file trash implementation.
* @li @ref Efreet_Ini for parsing INI-like key-value files.
* @li @ref Efreet_Uri for URI parsing and encoding.
* @li @ref Efreet_Utils general utilities.
*
*/
#include <Eina.h>

View File

@ -9,6 +9,8 @@
* Freedesktop.org Shared Mime Info standard.
* Efreet_Mime.h provides all of the necessary headers and
* includes to work with Efreet_Mime.
*
* @ingroup Efreet
* @{
*/

View File

@ -37,6 +37,8 @@ extern "C" {
* @addtogroup Efreet_Trash Efreet_Trash: The XDG Trash Specification
* Efreet_Trash.h provides all of the necessary headers and includes to
* work with Efreet_Trash.
*
* @ingroup Efreet
* @{
*/

View File

@ -342,7 +342,7 @@ efreet_fsetowner(int fd)
}
#else
EAPI void
efreet_fsetowner(int fd __UNUSED__)
efreet_fsetowner(int fd EINA_UNUSED)
{
}
#endif
@ -362,7 +362,7 @@ efreet_setowner(const char *path)
}
#else
EAPI void
efreet_setowner(const char *path __UNUSED__)
efreet_setowner(const char *path EINA_UNUSED)
{
}
#endif

View File

@ -6,6 +6,7 @@
* specification.
* @addtogroup Efreet_Base Efreet_Base: The XDG Base Directory Specification
* functions
* @ingroup Efreet
*
* @see http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
* @see http://0pointer.de/blog/projects/tmp.html

View File

@ -1056,7 +1056,7 @@ efreet_cache_util_names(const char *key)
}
static void
on_send_register(void *data __UNUSED__, const EDBus_Message *msg, EDBus_Pending *pending __UNUSED__)
on_send_register(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
{
const char *errname, *errmsg;
Eina_Bool exists;
@ -1079,7 +1079,7 @@ on_send_register(void *data __UNUSED__, const EDBus_Message *msg, EDBus_Pending
}
static void
desktop_cache_update(void *context __UNUSED__, const EDBus_Message *msg)
desktop_cache_update(void *context EINA_UNUSED, const EDBus_Message *msg)
{
Eina_Bool update;
@ -1100,7 +1100,7 @@ desktop_cache_update(void *context __UNUSED__, const EDBus_Message *msg)
}
static void
icon_cache_update(void *context __UNUSED__, const EDBus_Message *msg)
icon_cache_update(void *context EINA_UNUSED, const EDBus_Message *msg)
{
Efreet_Event_Cache_Update *ev = NULL;
Efreet_Old_Cache *d = NULL;

View File

@ -884,7 +884,7 @@ efreet_desktop_generic_fields_save(Efreet_Desktop *desktop, Efreet_Ini *ini)
* @brief Parses out an X- key from @a node and stores in @a desktop
*/
static Eina_Bool
efreet_desktop_x_fields_parse(const Eina_Hash *hash __UNUSED__, const void *key, void *value, void *fdata)
efreet_desktop_x_fields_parse(const Eina_Hash *hash EINA_UNUSED, const void *key, void *value, void *fdata)
{
Efreet_Desktop * desktop = fdata;
@ -907,7 +907,7 @@ efreet_desktop_x_fields_parse(const Eina_Hash *hash __UNUSED__, const void *key,
* @brief Stores an X- key from @a node and stores in @a ini
*/
static Eina_Bool
efreet_desktop_x_fields_save(const Eina_Hash *hash __UNUSED__, const void *key, void *value, void *fdata)
efreet_desktop_x_fields_save(const Eina_Hash *hash EINA_UNUSED, const void *key, void *value, void *fdata)
{
Efreet_Ini *ini = fdata;
efreet_ini_string_set(ini, key, value);

View File

@ -7,6 +7,7 @@
* FDO desktop entry specificiation.
* @addtogroup Efreet_Desktop Efreet_Desktop: The FDO Desktop Entry
* Specification functions and structures
* @ingroup Efreet
*
* @{
*/

View File

@ -225,9 +225,9 @@ efreet_desktop_command_progress_get(Efreet_Desktop *desktop, Eina_List *files,
static void *
efreet_desktop_exec_cb(void *data,
Efreet_Desktop *desktop __UNUSED__,
Efreet_Desktop *desktop EINA_UNUSED,
char *exec,
int remaining __UNUSED__)
int remaining EINA_UNUSED)
{
ecore_exe_run(exec, data);
free(exec);
@ -766,8 +766,8 @@ efreet_desktop_command_file_free(Efreet_Desktop_Command_File *file)
static void
efreet_desktop_cb_download_complete(void *data, const char *file __UNUSED__,
int status __UNUSED__)
efreet_desktop_cb_download_complete(void *data, const char *file EINA_UNUSED,
int status EINA_UNUSED)
{
Efreet_Desktop_Command_File *f;
@ -794,10 +794,10 @@ efreet_desktop_cb_download_complete(void *data, const char *file __UNUSED__,
static int
efreet_desktop_cb_download_progress(void *data,
const char *file __UNUSED__,
const char *file EINA_UNUSED,
long int dltotal, long int dlnow,
long int ultotal __UNUSED__,
long int ulnow __UNUSED__)
long int ultotal EINA_UNUSED,
long int ulnow EINA_UNUSED)
{
Efreet_Desktop_Command_File *dcf;

View File

@ -790,7 +790,7 @@ efreet_icon_fallback_lookup_path_path(Efreet_Cache_Fallback_Icon *icon, const ch
}
static void
efreet_cache_icon_dirs_add_cb(void *data __UNUSED__)
efreet_cache_icon_dirs_add_cb(void *data EINA_UNUSED)
{
efreet_cache_icon_dirs_add(efreet_extra_icon_dirs);
}

View File

@ -8,6 +8,7 @@
* @addtogroup Efreet_Icon Efreet_Icon: The FDO Icon Theme
* Specification functions and structures
*
* @ingroup Efreet
* @{
*/

View File

@ -559,7 +559,7 @@ efreet_ini_unescape(const char *str)
}
static Eina_Bool
efreet_ini_section_save(const Eina_Hash *hash __UNUSED__, const void *key, void *value, void *fdata)
efreet_ini_section_save(const Eina_Hash *hash EINA_UNUSED, const void *key, void *value, void *fdata)
{
FILE *f = fdata;
@ -569,7 +569,7 @@ efreet_ini_section_save(const Eina_Hash *hash __UNUSED__, const void *key, void
}
static Eina_Bool
efreet_ini_value_save(const Eina_Hash *hash __UNUSED__, const void *key, void *value, void *fdata)
efreet_ini_value_save(const Eina_Hash *hash EINA_UNUSED, const void *key, void *value, void *fdata)
{
FILE *f = fdata;

View File

@ -6,6 +6,7 @@
* @file efreet_ini.h
* @brief A simple and fast INI parser
* @addtogroup Efreet_Ini Efreet_Ini: An INI parser
* @ingroup Efreet
*
* @{
*/

View File

@ -1027,7 +1027,7 @@ efreet_menu_handle_app_dir(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
* @brief Handles the DefaultAppDirs
*/
static int
efreet_menu_handle_default_app_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *xml __UNUSED__)
efreet_menu_handle_default_app_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *xml EINA_UNUSED)
{
Eina_List *prepend = NULL;
Eina_List *dirs;
@ -1097,7 +1097,7 @@ efreet_menu_handle_directory_dir(Efreet_Menu_Internal *parent, Efreet_Xml *xml)
* @brief Handles the DefaultDirectoryDirs tag
*/
static int
efreet_menu_handle_default_directory_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *xml __UNUSED__)
efreet_menu_handle_default_directory_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *xml EINA_UNUSED)
{
Eina_List *dirs;
char *dir;
@ -1846,7 +1846,7 @@ efreet_menu_handle_legacy_dir_helper(Efreet_Menu_Internal *root,
* @brief Handles the KDELegacyDirs tag
*/
static int
efreet_menu_handle_kde_legacy_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *xml __UNUSED__)
efreet_menu_handle_kde_legacy_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *xml EINA_UNUSED)
{
Eina_List *l;
const char *dir;

View File

@ -7,6 +7,7 @@
* Menu Specification.
* @addtogroup Efreet_Menu Efreet_Menu: The FDO Desktop Menu Specification
* functions and structures
* @ingroup Efreet
*
* @{
*/

View File

@ -567,9 +567,9 @@ efreet_mime_load_magics(Eina_List *datadirs, const char *datahome)
* the globs are updated.
*/
static void
efreet_mime_cb_update_file(void *data __UNUSED__,
Ecore_File_Monitor *monitor __UNUSED__,
Ecore_File_Event event __UNUSED__,
efreet_mime_cb_update_file(void *data EINA_UNUSED,
Ecore_File_Monitor *monitor EINA_UNUSED,
Ecore_File_Event event EINA_UNUSED,
const char *path)
{
Eina_List *datadirs = NULL;

View File

@ -13,6 +13,7 @@
* @brief Contains methods and defines that are private to the Efreet
* implementaion
* @addtogroup Efreet_Private Efreet_Private: Private methods and defines
* @ingroup Efreet
*
* @{
*/

View File

@ -5,6 +5,7 @@
* @file efreet_uri.h
* @brief Contains the methods used to support the FDO URI specification.
* @addtogroup Efreet_Uri Efreet_Uri: The FDO URI Specification functions
* @ingroup Efreet
* @{
*/

View File

@ -6,6 +6,7 @@
* @brief Contains utility functions to ease usage of Efreet.
* FDO desktop entry specificiation.
* @addtogroup Efreet_Utils Efreet utilities for FDO
* @ingroup Efreet
*
* @{
*/

View File

@ -5,7 +5,12 @@
* @internal
* @file efreet_xml.h
* @brief A simple and fast XML parser
* @addtogroup Efreet_Xml Efreet_Xml: An XML parser
* @addtogroup Efreet_Xml Efreet_Xml: An XML parser (private)
* @ingroup Efreet
*
* Consider using @ref Eina_Simple_XML_Group instead.
*
* @private
*
* @{
*/

View File

Before

Width:  |  Height:  |  Size: 648 B

After

Width:  |  Height:  |  Size: 648 B

View File

@ -0,0 +1,8 @@
MAINTAINERCLEANFILES = Makefile.in
testdir = $(pkgdatadir)/test/sub
test_DATA = \
test.desktop
EXTRA_DIST = $(test_DATA)

View File

@ -158,7 +158,7 @@ check(void)
}
static Eina_Bool
icon_handler_cb(void *data __UNUSED__, int event_type __UNUSED__, void *event __UNUSED__)
icon_handler_cb(void *data EINA_UNUSED, int event_type EINA_UNUSED, void *event EINA_UNUSED)
{
icon_cb = EINA_TRUE;
if (icon_cb && desktop_cb)
@ -170,7 +170,7 @@ icon_handler_cb(void *data __UNUSED__, int event_type __UNUSED__, void *event __
}
static Eina_Bool
desktop_handler_cb(void *data __UNUSED__, int event_type __UNUSED__, void *event __UNUSED__)
desktop_handler_cb(void *data EINA_UNUSED, int event_type EINA_UNUSED, void *event EINA_UNUSED)
{
desktop_cb = EINA_TRUE;
if (icon_cb && desktop_cb)
@ -182,7 +182,7 @@ desktop_handler_cb(void *data __UNUSED__, int event_type __UNUSED__, void *event
}
int
main(int argc __UNUSED__, char **argv __UNUSED__)
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
{
Ecore_Event_Handler *icon_handler;
Ecore_Event_Handler *desktop_handler;

View File

@ -17,7 +17,7 @@ ef_cb_desktop_parse(void)
Eina_List *l;
int ret = 1;
desktop = efreet_desktop_get(PKG_DATA_DIR"/test/test.desktop");
desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop");
if (!desktop)
{
printf("No desktop found.\n");
@ -80,7 +80,7 @@ ef_cb_desktop_file_id(void)
Efreet_Desktop *desktop;
int ret = 1;
desktop = efreet_desktop_get(PKG_DATA_DIR"/test/test.desktop");
desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop");
if (desktop)
{
const char *id;
@ -92,10 +92,10 @@ ef_cb_desktop_file_id(void)
char *prefix;
char *expected;
} tests[] = {
{PKG_DATA_DIR"/test/", 0, NULL, "test.desktop"},
{PKG_DATA_DIR"/", 0, NULL, "test-test.desktop"},
{PKG_DATA_DIR"/", 1, NULL, "test.desktop"},
{PKG_DATA_DIR"/", 1, "prefix", "prefix-test.desktop"},
{PACKAGE_DATA_DIR"/efreet/test/", 0, NULL, "test.desktop"},
{PACKAGE_DATA_DIR"/efreet/", 0, NULL, "test-test.desktop"},
{PACKAGE_DATA_DIR"/efreet/", 1, NULL, "test.desktop"},
{PACKAGE_DATA_DIR"/efreet/", 1, "prefix", "prefix-test.desktop"},
{NULL, 0, NULL, NULL}
};
@ -126,7 +126,7 @@ ef_cb_desktop_save(void)
Efreet_Desktop *desktop;
printf("\n");
desktop = efreet_desktop_get(PKG_DATA_DIR"/test/test.desktop");
desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop");
if (!desktop)
{
printf("Failed to get Desktop file\n");
@ -330,8 +330,8 @@ ef_cb_desktop_command_get(void)
}
static void *
_cb_command(void *data, Efreet_Desktop *desktop __UNUSED__,
char *exec, int remaining __UNUSED__)
_cb_command(void *data, Efreet_Desktop *desktop EINA_UNUSED,
char *exec, int remaining EINA_UNUSED)
{
Test_Info *info = data;
char *expected;
@ -356,7 +356,7 @@ _cb_command(void *data, Efreet_Desktop *desktop __UNUSED__,
}
static void *
cb_type_parse(Efreet_Desktop *desktop __UNUSED__, Efreet_Ini *ini)
cb_type_parse(Efreet_Desktop *desktop EINA_UNUSED, Efreet_Ini *ini)
{
const char *val;
val = efreet_ini_string_get(ini, "X-Test");
@ -376,7 +376,7 @@ ef_cb_desktop_type_parse(void)
my_type = efreet_desktop_type_add("My_Type", cb_type_parse, NULL,
(Efreet_Desktop_Type_Free_Cb)free);
desktop = efreet_desktop_get(PKG_DATA_DIR"/test/test_type.desktop");
desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test_type.desktop");
if (!desktop)
{
printf("No desktop found.\n");

View File

@ -58,7 +58,7 @@ ef_cb_efreet_icon_theme(void)
}
static Eina_Bool
_hash_keys(Eina_Hash *hash __UNUSED__, const char *key, void *list)
_hash_keys(Eina_Hash *hash EINA_UNUSED, const char *key, void *list)
{
Eina_List **l = list;

View File

@ -12,7 +12,7 @@ ef_cb_ini_parse(void)
putenv("LC_ALL=en_US");
ini = efreet_ini_new(PKG_DATA_DIR"/test/test.ini");
ini = efreet_ini_new(PACKAGE_DATA_DIR"/efreet/test/test.ini");
if (!ini)
{
printf("efreet_ini_parse() Failed to initialize Efreet_Ini\n");
@ -115,7 +115,7 @@ ef_cb_ini_long_line(void)
{NULL, 0}
};
ini = efreet_ini_new(PKG_DATA_DIR"/test/long.ini");
ini = efreet_ini_new(PACKAGE_DATA_DIR"/efreet/test/long.ini");
if (!ini)
{
printf("Ini failed to parse.\n");
@ -162,7 +162,7 @@ ef_cb_ini_garbage(void)
Efreet_Ini *ini;
int ret = 1;
ini = efreet_ini_new(PKG_DATA_DIR"/test/test_garbage");
ini = efreet_ini_new(PACKAGE_DATA_DIR"/efreet/test/test_garbage");
if (!ini)
{
printf("Ini failed to parse.\n");

View File

@ -32,7 +32,7 @@ ef_cb_menu_get(void)
Efreet_Menu *menu;
menu = efreet_menu_get();
// menu = efreet_menu_parse(PKG_DATA_DIR"/test/test.menu");
// menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu");
if (!menu)
{
printf("efreet_menu_get() returned NULL\n");
@ -50,7 +50,7 @@ ef_cb_menu_with_slashes(void)
{
Efreet_Menu *menu;
menu = efreet_menu_parse(PKG_DATA_DIR"/test/test_menu_slash_bad.menu");
menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test_menu_slash_bad.menu");
if (menu)
{
printf("efreet_menu_get() didn't return NULL\n");
@ -67,7 +67,7 @@ ef_cb_menu_save(void)
int ret;
// menu = efreet_menu_get();
menu = efreet_menu_parse(PKG_DATA_DIR"/test/test.menu");
menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu");
if (!menu)
{
printf("efreet_menu_get() returned NULL\n");
@ -86,7 +86,7 @@ ef_cb_menu_edit(void)
Efreet_Desktop *desktop;
// menu = efreet_menu_get();
menu = efreet_menu_parse(PKG_DATA_DIR"/test/test.menu");
menu = efreet_menu_parse(PACKAGE_DATA_DIR"/efreet/test/test.menu");
if (!menu)
{
printf("efreet_menu_get() returned NULL\n");
@ -98,7 +98,7 @@ ef_cb_menu_edit(void)
printf("\n");
#endif
desktop = efreet_desktop_get(PKG_DATA_DIR"/test/test.desktop");
desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/efreet/test/test.desktop");
if (!desktop)
{
efreet_menu_free(menu);

View File

@ -19,10 +19,10 @@ ef_mime_cb_get(void)
char *file;
char *mime;
} files[] = {
{PKG_DATA_DIR"/test/test_type.desktop", "application/x-desktop"},
{PKG_DATA_DIR"/test/entry.png", "image/png"},
{PKG_DATA_DIR"/test/entry", "image/png"},
{PKG_DATA_DIR"/test/sub", "inode/directory"},
{PACKAGE_DATA_DIR"/efreet/test/test_type.desktop", "application/x-desktop"},
{PACKAGE_DATA_DIR"/efreet/test/entry.png", "image/png"},
{PACKAGE_DATA_DIR"/efreet/test/entry", "image/png"},
{PACKAGE_DATA_DIR"/efreet/test/sub", "inode/directory"},
{NULL, NULL}
};
double start;

View File

@ -6,7 +6,7 @@
static void dump(Efreet_Menu *menu, const char *path);
int
main(int argc __UNUSED__, char **argv __UNUSED__)
main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
{
Efreet_Menu *menu;