summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/teamwork_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_wl2/teamwork_protocol.h')
-rw-r--r--src/lib/ecore_wl2/teamwork_protocol.h128
1 files changed, 0 insertions, 128 deletions
diff --git a/src/lib/ecore_wl2/teamwork_protocol.h b/src/lib/ecore_wl2/teamwork_protocol.h
deleted file mode 100644
index 129aa2d..0000000
--- a/src/lib/ecore_wl2/teamwork_protocol.h
+++ /dev/null
@@ -1,128 +0,0 @@
1#ifndef TEAMWORK_CLIENT_PROTOCOL_H
2#define TEAMWORK_CLIENT_PROTOCOL_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <stdint.h>
9#include <stddef.h>
10#include "wayland-client.h"
11
12struct wl_client;
13struct wl_resource;
14
15struct wl_surface;
16struct zwp_teamwork;
17
18extern const struct wl_interface zwp_teamwork_interface;
19
20struct zwp_teamwork_listener {
21 /**
22 * fetching_uri - (none)
23 * @surface: (none)
24 * @uri: (none)
25 */
26 void (*fetching_uri)(void *data,
27 struct zwp_teamwork *zwp_teamwork,
28 struct wl_surface *surface,
29 const char *uri);
30 /**
31 * completed_uri - (none)
32 * @surface: (none)
33 * @uri: (none)
34 * @valid: 1 if uri can be displayed, else 0
35 */
36 void (*completed_uri)(void *data,
37 struct zwp_teamwork *zwp_teamwork,
38 struct wl_surface *surface,
39 const char *uri,
40 int32_t valid);
41 /**
42 * fetch_info - (none)
43 * @surface: (none)
44 * @uri: (none)
45 * @progress: percentage of download
46 */
47 void (*fetch_info)(void *data,
48 struct zwp_teamwork *zwp_teamwork,
49 struct wl_surface *surface,
50 const char *uri,
51 uint32_t progress);
52};
53
54static inline int
55zwp_teamwork_add_listener(struct zwp_teamwork *zwp_teamwork,
56 const struct zwp_teamwork_listener *listener, void *data)
57{
58 return wl_proxy_add_listener((struct wl_proxy *) zwp_teamwork,
59 (void (**)(void)) listener, data);
60}
61
62#define ZWP_TEAMWORK_PRELOAD_URI 0
63#define ZWP_TEAMWORK_ACTIVATE_URI 1
64#define ZWP_TEAMWORK_DEACTIVATE_URI 2
65#define ZWP_TEAMWORK_OPEN_URI 3
66
67#define ZWP_TEAMWORK_PRELOAD_URI_SINCE_VERSION 1
68#define ZWP_TEAMWORK_ACTIVATE_URI_SINCE_VERSION 1
69#define ZWP_TEAMWORK_DEACTIVATE_URI_SINCE_VERSION 1
70#define ZWP_TEAMWORK_OPEN_URI_SINCE_VERSION 1
71
72static inline void
73zwp_teamwork_set_user_data(struct zwp_teamwork *zwp_teamwork, void *user_data)
74{
75 wl_proxy_set_user_data((struct wl_proxy *) zwp_teamwork, user_data);
76}
77
78static inline void *
79zwp_teamwork_get_user_data(struct zwp_teamwork *zwp_teamwork)
80{
81 return wl_proxy_get_user_data((struct wl_proxy *) zwp_teamwork);
82}
83
84static inline uint32_t
85zwp_teamwork_get_version(struct zwp_teamwork *zwp_teamwork)
86{
87 return wl_proxy_get_version((struct wl_proxy *) zwp_teamwork);
88}
89
90static inline void
91zwp_teamwork_destroy(struct zwp_teamwork *zwp_teamwork)
92{
93 wl_proxy_destroy((struct wl_proxy *) zwp_teamwork);
94}
95
96static inline void
97zwp_teamwork_preload_uri(struct zwp_teamwork *zwp_teamwork, struct wl_surface *surface, const char *uri)
98{
99 wl_proxy_marshal((struct wl_proxy *) zwp_teamwork,
100 ZWP_TEAMWORK_PRELOAD_URI, surface, uri);
101}
102
103static inline void
104zwp_teamwork_activate_uri(struct zwp_teamwork *zwp_teamwork, struct wl_surface *surface, const char *uri, wl_fixed_t x, wl_fixed_t y)
105{
106 wl_proxy_marshal((struct wl_proxy *) zwp_teamwork,
107 ZWP_TEAMWORK_ACTIVATE_URI, surface, uri, x, y);
108}
109
110static inline void
111zwp_teamwork_deactivate_uri(struct zwp_teamwork *zwp_teamwork, struct wl_surface *surface, const char *uri)
112{
113 wl_proxy_marshal((struct wl_proxy *) zwp_teamwork,
114 ZWP_TEAMWORK_DEACTIVATE_URI, surface, uri);
115}
116
117static inline void
118zwp_teamwork_open_uri(struct zwp_teamwork *zwp_teamwork, struct wl_surface *surface, const char *uri)
119{
120 wl_proxy_marshal((struct wl_proxy *) zwp_teamwork,
121 ZWP_TEAMWORK_OPEN_URI, surface, uri);
122}
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif