8cc546c4315635fe390872b00bb97c413610b693
[platform/core/api/player.git] / include / player_display.h
1 /*
2 * Copyright (c) 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 #ifndef __TIZEN_MEDIA_PLAYER_WLCLIENT_H__
18 #define __TIZEN_MEDIA_PLAYER_WLCLIENT_H__
19 #include <stdio.h>
20 #include <tbm_bufmgr.h>
21 #include <tizen-extension-client-protocol.h>
22 #include <wayland-client.h>
23 #include <mm_types.h>
24 #include <mm_debug.h>
25 #include "player.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 typedef struct {
32         struct wl_display *display;
33         struct wl_registry *registry;
34         struct tizen_surface *tz_surface;
35         struct tizen_resource *tz_resource;
36 } wl_client;
37
38 int _wl_client_create(wl_client ** wlclient);
39 int _wl_client_get_wl_window_wl_surface_id(wl_client * wlclient, struct wl_surface *surface, struct wl_display *display);
40 void _wl_client_finalize(wl_client * wlclient);
41 #ifdef __cplusplus
42 }
43 #endif
44 #endif  /* __TIZEN_MEDIA_PLAYER_WLCLIENT_H__ */