Blame view

protocol/weston-screenshooter-client-protocol.h 2.85 KB
a902b0089   신재종   fork clone_app so...
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
100
101
102
103
104
105
106
107
108
109
110
111
112
  /* Generated by wayland-scanner 1.19.0 */
  
  #ifndef WESTON_SCREENSHOOTER_CLIENT_PROTOCOL_H
  #define WESTON_SCREENSHOOTER_CLIENT_PROTOCOL_H
  
  #include <stdint.h>
  #include <stddef.h>
  #include "wayland-client.h"
  
  #ifdef  __cplusplus
  extern "C" {
  #endif
  
  /**
   * @page page_weston_screenshooter The weston_screenshooter protocol
   * @section page_ifaces_weston_screenshooter Interfaces
   * - @subpage page_iface_weston_screenshooter -
   */
  struct weston_screenshooter;
  struct wl_buffer;
  struct wl_output;
  
  #ifndef WESTON_SCREENSHOOTER_INTERFACE
  #define WESTON_SCREENSHOOTER_INTERFACE
  /**
   * @page page_iface_weston_screenshooter weston_screenshooter
   * @section page_iface_weston_screenshooter_api API
   * See @ref iface_weston_screenshooter.
   */
  /**
   * @defgroup iface_weston_screenshooter The weston_screenshooter interface
   */
  extern const struct wl_interface weston_screenshooter_interface;
  #endif
  
  /**
   * @ingroup iface_weston_screenshooter
   * @struct weston_screenshooter_listener
   */
  struct weston_screenshooter_listener
  {
  	/**
  	 */
  	void (*done)(void                   *data,
  			struct weston_screenshooter *weston_screenshooter);
  };
  
  /**
   * @ingroup iface_weston_screenshooter
   */
  static inline int
  weston_screenshooter_add_listener(struct weston_screenshooter *weston_screenshooter,
  		const struct weston_screenshooter_listener *listener, void *data)
  {
  	return wl_proxy_add_listener((struct wl_proxy *) weston_screenshooter,
  				   (void(* *) (void))listener, data);
  }
  
  #define WESTON_SCREENSHOOTER_SHOOT 0
  
  /**
   * @ingroup iface_weston_screenshooter
   */
  #define WESTON_SCREENSHOOTER_DONE_SINCE_VERSION 1
  
  /**
   * @ingroup iface_weston_screenshooter
   */
  #define WESTON_SCREENSHOOTER_SHOOT_SINCE_VERSION 1
  
  /** @ingroup iface_weston_screenshooter */
  static inline void
  weston_screenshooter_set_user_data(struct weston_screenshooter *weston_screenshooter, void *user_data)
  {
  	wl_proxy_set_user_data((struct wl_proxy *) weston_screenshooter, user_data);
  }
  
  /** @ingroup iface_weston_screenshooter */
  static inline void *
  weston_screenshooter_get_user_data(struct weston_screenshooter *weston_screenshooter)
  {
  	return wl_proxy_get_user_data((struct wl_proxy *) weston_screenshooter);
  }
  
  static inline uint32_t
  weston_screenshooter_get_version(struct weston_screenshooter *weston_screenshooter)
  {
  	return wl_proxy_get_version((struct wl_proxy *) weston_screenshooter);
  }
  
  /** @ingroup iface_weston_screenshooter */
  static inline void
  weston_screenshooter_destroy(struct weston_screenshooter *weston_screenshooter)
  {
  	wl_proxy_destroy((struct wl_proxy *) weston_screenshooter);
  }
  
  /**
   * @ingroup iface_weston_screenshooter
   */
  static inline void
  weston_screenshooter_shoot(struct weston_screenshooter *weston_screenshooter, struct wl_output *output, struct wl_buffer *buffer)
  {
  	wl_proxy_marshal((struct wl_proxy *) weston_screenshooter,
  			WESTON_SCREENSHOOTER_SHOOT, output, buffer);
  }
  
  #ifdef  __cplusplus
  }
  #endif
  
  #endif