aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wayland/session-recovery-client-protocol.h
blob: 24057471fbdf15b208f8f1f090e0d85c86c99aa0 (plain) (blame)
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
#ifndef E_SESSION_RECOVERY_CLIENT_PROTOCOL_H
#define E_SESSION_RECOVERY_CLIENT_PROTOCOL_H

#ifdef  __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stddef.h>
#include "wayland-client.h"

struct wl_client;
struct wl_resource;

struct zwp_e_session_recovery;

extern const struct wl_interface zwp_e_session_recovery_interface;

struct zwp_e_session_recovery_listener {
	/**
	 * uuid - (none)
	 * @uuid: (none)
	 */
	void (*uuid)(void *data,
		     struct zwp_e_session_recovery *zwp_e_session_recovery,
		     const char *uuid);
};

static inline int
zwp_e_session_recovery_add_listener(struct zwp_e_session_recovery *zwp_e_session_recovery,
				    const struct zwp_e_session_recovery_listener *listener, void *data)
{
	return wl_proxy_add_listener((struct wl_proxy *) zwp_e_session_recovery,
				     (void (**)(void)) listener, data);
}

#define ZWP_E_SESSION_RECOVERY_PROVIDE_UUID	0

static inline void
zwp_e_session_recovery_set_user_data(struct zwp_e_session_recovery *zwp_e_session_recovery, void *user_data)
{
	wl_proxy_set_user_data((struct wl_proxy *) zwp_e_session_recovery, user_data);
}

static inline void *
zwp_e_session_recovery_get_user_data(struct zwp_e_session_recovery *zwp_e_session_recovery)
{
	return wl_proxy_get_user_data((struct wl_proxy *) zwp_e_session_recovery);
}

static inline void
zwp_e_session_recovery_destroy(struct zwp_e_session_recovery *zwp_e_session_recovery)
{
	wl_proxy_destroy((struct wl_proxy *) zwp_e_session_recovery);
}

static inline void
zwp_e_session_recovery_provide_uuid(struct zwp_e_session_recovery *zwp_e_session_recovery, const char *uuid)
{
	wl_proxy_marshal((struct wl_proxy *) zwp_e_session_recovery,
			 ZWP_E_SESSION_RECOVERY_PROVIDE_UUID, uuid);
}

#ifdef  __cplusplus
}
#endif

#endif