summaryrefslogtreecommitdiff
path: root/src/tests/efreet/ef_utils.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-29 23:04:40 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-29 23:04:40 +0000
commit4bc0210bd31ed1de6554441562bd93ea863ee9d9 (patch)
tree5d83be12538f8c8d3816bbf65916ce383d050c2e /src/tests/efreet/ef_utils.c
parent727ddbeaf0c53f31cd62c254fdebe26823d537eb (diff)
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
Diffstat (limited to 'src/tests/efreet/ef_utils.c')
-rw-r--r--src/tests/efreet/ef_utils.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/tests/efreet/ef_utils.c b/src/tests/efreet/ef_utils.c
new file mode 100644
index 0000000000..0647ef0416
--- /dev/null
+++ b/src/tests/efreet/ef_utils.c
@@ -0,0 +1,28 @@
1#include "Efreet.h"
2#include <stdio.h>
3
4int
5ef_cb_utils(void)
6{
7 Efreet_Desktop *desktop;
8 const char *tmp2;
9
10 printf("\n");
11
12 tmp2 = efreet_util_path_to_file_id("/usr/share/applications/this/tmp/test.desktop");
13 if (tmp2) printf("%s\n", tmp2);
14
15 desktop = efreet_util_desktop_file_id_find("kde-kresources.desktop");
16 printf("kde-kresources.desktop: %p\n", desktop);
17 efreet_desktop_free(desktop);
18
19 desktop = efreet_util_desktop_file_id_find("mplayer.desktop");
20 printf("mplayer.desktop: %p\n", desktop);
21 efreet_desktop_free(desktop);
22
23 desktop = efreet_util_desktop_file_id_find("nautilus-computer.desktop");
24 printf("nautilus-computer.desktop: %p\n", desktop);
25 efreet_desktop_free(desktop);
26
27 return 1;
28}