2 * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include <Elementary.h>
21 static int result_cb(int ret, int pid, void *data)
23 printf("Client: Return %d (%d)\n", ret, pid);
28 static Eina_Bool shortcut_add_cb(void *data)
32 ret = add_to_home_shortcut("pkgname", "MyName", 0, "/usr/bin/true", "/opt/share/image/what.png", result_cb, NULL);
33 printf("Client: shortcut_add_to_home returns: %d\n", ret);
35 ret = add_to_home_dynamicbox("pkgname", "MyName", 0, "/usr/bin/true", "/opt/share/image/what.png", 1.0f, result_cb, NULL);
36 printf("Client: shortcut_add_to_home_with_period returns: %d\n", ret);
38 return ECORE_CALLBACK_RENEW;
41 int elm_main(int argc, char *argv[])
45 timer = ecore_timer_add(3.0f, shortcut_add_cb, NULL);
47 printf("Failed to add a timer\n");