summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2012-05-22 16:53:50 +0900
committerSung-jae Park <nicesj.park@samsung.com>2012-05-22 19:52:13 +0900
commit1a7eeae27f1a5041ab73515845eefc5ac9605020 (patch)
tree835f97168c0c4a033e6451ae69b63932d80a4709 /test
parentf2a73c6749355acab4c12a0385cbb777965b7992 (diff)
downloadshortcut-1a7eeae27f1a5041ab73515845eefc5ac9605020.tar.gz
shortcut-1a7eeae27f1a5041ab73515845eefc5ac9605020.tar.bz2
shortcut-1a7eeae27f1a5041ab73515845eefc5ac9605020.zip
Add add_to_home_with_period function.
Change-Id: I03921eb7e59d8a7c439d1d4e67038412d7185971
Diffstat (limited to 'test')
-rw-r--r--test/Makefile4
-rw-r--r--test/application.c3
-rw-r--r--test/homescreen.c7
3 files changed, 8 insertions, 6 deletions
diff --git a/test/Makefile b/test/Makefile
index 45201b2..5dfe3d5 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,3 +1,3 @@
all:
- @gcc homescreen.c -o homescreen `pkg-config ecore elementary shortcut --cflags --libs`
- @gcc application.c -o application `pkg-config ecore elementary shortcut --cflags --libs`
+ @gcc homescreen.c -Wall -o homescreen `pkg-config ecore elementary shortcut --cflags --libs`
+ @gcc application.c -Wall -o application `pkg-config ecore elementary shortcut --cflags --libs`
diff --git a/test/application.c b/test/application.c
index 31c3fc9..3680419 100644
--- a/test/application.c
+++ b/test/application.c
@@ -32,6 +32,9 @@ static Eina_Bool shortcut_add_cb(void *data)
ret = shortcut_add_to_home("pkgname", "MyName", 0, "/usr/bin/true", "/opt/share/image/what.png", result_cb, NULL);
printf("Client: shortcut_add_to_home returns: %d\n", ret);
+ ret = shortcut_add_to_home_with_period("pkgname", "MyName", 0, "/usr/bin/true", "/opt/share/image/what.png", 1.0f, result_cb, NULL);
+ printf("Client: shortcut_add_to_home_with_period returns: %d\n", ret);
+
return ECORE_CALLBACK_RENEW;
}
diff --git a/test/homescreen.c b/test/homescreen.c
index fff75dc..a276af2 100644
--- a/test/homescreen.c
+++ b/test/homescreen.c
@@ -18,16 +18,15 @@
#include <Elementary.h>
#include <shortcut.h>
-int shortcut_request_cb(const char *pkgname, const char *name, int type, const char *exec, const char *icon, int pid, void *data)
+int shortcut_request_cb(const char *pkgname, const char *name, int type, const char *exec, const char *icon, int pid, double period, void *data)
{
- printf("SERVER: name: %s, type: %d, exec: %s, icon: %s, pid: %d, data: %p\n",
- name, type, exec, icon, pid, data);
+ printf("SERVER: name: %s, type: %d, exec: %s, icon: %s, pid: %d, data: %p, period: %lf\n",
+ name, type, exec, icon, pid, data, period);
return 0;
}
int elm_main(int argc, char *argv[])
{
- int ret;
shortcut_set_request_cb(shortcut_request_cb, NULL);
elm_run();