Merge "Replacing X specific commands with Evas / Wayland calls" into 2.0alpha-wayland
[profile/ivi/ui-gadget-1.git] / client / ug-client.h
1 /*
2  *  UI Gadget
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jayoun Lee <airjany@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #ifndef __UG_CLIENT_H__
23 #define __UG_CLIENT_H__
24
25 #include <Elementary.h>
26 #include <ui-gadget.h>
27 #include <bundle.h>
28
29 #if !defined(PACKAGE)
30 #define PACKAGE "ug-client"
31 #endif
32
33 #if !defined(LOCALEDIR)
34 #define LOCALEDIR "/usr/share/locale"
35 #endif
36
37 #if !defined(EDJDIR)
38 #define EDJDIR "/usr/share/edje/ug-client"
39 #endif
40
41 #define EDJ_FILE EDJDIR "/" PACKAGE ".edj"
42 #define GRP_MAIN "main"
43
44 struct appdata {
45         Evas_Object *win;
46         Evas_Object *ly_main;
47
48         ui_gadget_h ug;
49         const char *name;
50         int is_frameview;
51
52         bundle *data;
53         service_h request;
54 };
55
56 #endif                          /* __UG_CLIENT_H__ */