2 * Copyright © 2010-2011 Intel Corporation
3 * Copyright © 2008-2011 Kristian Høgsberg
4 * Copyright © 2013 TOYOTA MOTOR CORPORATION.
6 * Permission to use, copy, modify, distribute, and sell this software and
7 * its documentation for any purpose is hereby granted without fee, provided
8 * that the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of the copyright holders not be used in
11 * advertising or publicity pertaining to distribution of the software
12 * without specific, written prior permission. The copyright holders make
13 * no representations about the suitability of this software for any
14 * purpose. It is provided "as is" without express or implied warranty.
16 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
17 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
18 * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
20 * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
21 * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
22 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 * @brief Public functions in ico_window_mgr Weston plugin
30 #ifndef _ICO_WINDOW_MGR_H_
31 #define _ICO_WINDOW_MGR_H_
33 /* surface image buffer in wl_shm_pool */
34 struct ico_uifw_image_buffer {
35 uint32_t magich; /* Magic number, fixed "UIFH"(no NULL terminate)*/
36 uint32_t surfaceid; /* surface id */
37 uint32_t settime; /* buffer set time(set by weston) */
38 uint32_t width; /* width */
39 uint32_t height; /* height */
40 uint32_t reftime; /* buffer refer time(set by app) */
41 uint32_t res; /* (unused) */
42 uint32_t magict; /* Magic number, fixed "UIFT"(no NULL terminate)*/
43 unsigned char image[4]; /* surface image(variable length) */
46 #define ICO_UIFW_IMAGE_BUFFER_MAGICH "UIFH"
47 #define ICO_UIFW_IMAGE_BUFFER_MAGICT "UIFT"
49 #endif /*_ICO_WINDOW_MGR_H_*/