summaryrefslogtreecommitdiffstats
path: root/demo3/horizontal/waltham-server/orig/include/wth-server-weston.h
blob: 50e1b2cae409da948d0321a26951de196d4d73de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/**
 * @licence app begin@
 *
 *
 *  TBD
 *
 *
 * @licence end@
 */
/*******************************************************************************
**                                                                            **
**  SRC-MODULE:                                                               **
**                                                                            **
**  TARGET    : linux                                                         **
**                                                                            **
**  PROJECT   : waltham-server                                                **
**                                                                            **
**  AUTHOR    :                                                               **
**                                                                            **
**                                                                            **
**                                                                            **
**  PURPOSE   : Header file declare macros, extern functions, data types etc  **
**  required to interface with weston compositor at server side               **
**                                                                            **
**  REMARKS   :                                                               **
**                                                                            **
**  PLATFORM DEPENDANT [yes/no]: yes                                          **
**                                                                            **
**  TO BE CHANGED BY USER [yes/no]: no                                        **
**                                                                            **
*******************************************************************************/

#ifndef WALTHAM_SHM_H_
#define WALTHAM_SHM_H_

#include "wth-server-waltham-comm.h"
/**
* wth_server_weston_shm_attach
*
* attach waltham surface data to weston surface
*
* @param names       struct window *window
*                    uint32_t data_sz
*                    void * data
*                    int32_t width
*                    int32_t height
*                    int32_t stride
*                    uint32_t format
* @param value       struct window *window - window info pointer
*                    uint32_t data_sz - buffer data size
*                    void * data - buffer pointer
*                    int32_t width - width
*                    int32_t height -height
*                    int32_t stride -stride information
*                    uint32_t format - buffer data format
* @return            none
*/
void wth_server_weston_shm_attach(struct window *window, uint32_t data_sz, void * data,
       int32_t width, int32_t height, int32_t stride, uint32_t format);

/**
* wth_server_weston_shm_damage
*
* Send weston surface damage
*
* @param names       struct window *window
*
* @param value       struct window *window - window info pointer
*
* @return            none
*/
void wth_server_weston_shm_damage(struct window *window);

/**
* wth_server_weston_shm_commit
*
* Commit weston surface data
*
* @param names       struct window *window
*
* @param value       struct window *window - window info pointer
*
* @return            none
*/
void wth_server_weston_shm_commit(struct window *window);

/**
* wth_server_weston_main
*
* This is the main function which will handle connection to the compositor at server side
*
* @param names        void *data
* @param value        struct window data
* @return             0 on success, -1 on error
*/
int wth_server_weston_main(void *data);


#endif