merge with master
[platform/core/appfw/shortcut.git] / test / homescreen.c
1 /*
2  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16 */
17
18 #include <Elementary.h>
19 #include <shortcut.h>
20
21 int shortcut_request_cb(const char *pkgname, const char *name, int type, const char *exec, const char *icon, int pid, double period, void *data)
22 {
23         printf("SERVER: name: %s, type: %d, exec: %s, icon: %s, pid: %d, data: %p, period: %lf\n",
24                 name, type, exec, icon, pid, data, period);
25         return 0;
26 }
27
28 int elm_main(int argc, char *argv[])
29 {
30         shortcut_set_request_cb(shortcut_request_cb, NULL);
31
32         elm_run();
33         elm_shutdown();
34
35         return 0;
36 }
37
38 ELM_MAIN()
39 /* End of a file */
40