Merge "Build and package Layer Management service binaries." into tizen
[profile/ivi/layer-management.git] / LayerManagerPlugins / Renderers / Graphic / include / WindowSystems / WaylandServerinfoServerProtocol.h
1 /***************************************************************************
2  *
3  * Copyright 2010, 2011 BMW Car IT GmbH
4  * Copyright (C) 2011 DENSO CORPORATION and Robert Bosch Car Multimedia Gmbh
5  *
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *        http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  *
20  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
21  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
22  * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
23  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
24  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
25  * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
26  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
27  ****************************************************************************/
28
29 #ifndef WAYLANDSERVERINFOSERVERPROTOCOL_H
30 #define WAYLANDSERVERINFOSERVERPROTOCOL_H
31
32 #ifdef  __cplusplus
33 extern "C" {
34 #endif
35
36 #include <stdint.h>
37 #include <stddef.h>
38 #include "wayland-util.h"
39
40 #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
41
42 struct wl_client;
43 struct wl_resource;
44
45 struct serverinfo;
46
47 extern const struct wl_interface serverinfo_interface;
48
49 struct serverinfo_interface
50 {
51     void (*get_connection_id)(struct wl_client *client,
52                     struct wl_resource *resource);
53 };
54
55 #define SERVERINFO_CONNECTION_ID    0
56
57 #ifdef  __cplusplus
58 }
59 #endif
60
61 #endif /* WAYLANDSERVERINFOSERVERPROTOCOL_H */