forked from enlightenment/enlightenment
Update screenshot protocol for done event.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
d60279b977
commit
c2ff135803
|
@ -14,9 +14,14 @@ static const struct wl_message screenshooter_requests[] = {
|
||||||
{ "shoot", "oo", types + 0 },
|
{ "shoot", "oo", types + 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct wl_message screenshooter_events[] =
|
||||||
|
{
|
||||||
|
{ "done", "", types + 0 },
|
||||||
|
};
|
||||||
|
|
||||||
WL_EXPORT const struct wl_interface screenshooter_interface = {
|
WL_EXPORT const struct wl_interface screenshooter_interface = {
|
||||||
"screenshooter", 1,
|
"screenshooter", 1,
|
||||||
ARRAY_LENGTH(screenshooter_requests), screenshooter_requests,
|
ARRAY_LENGTH(screenshooter_requests), screenshooter_requests,
|
||||||
0, NULL,
|
ARRAY_LENGTH(screenshooter_events), screenshooter_events,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,24 @@ extern "C" {
|
||||||
|
|
||||||
struct wl_client;
|
struct wl_client;
|
||||||
struct wl_resource;
|
struct wl_resource;
|
||||||
|
struct screenshooter;
|
||||||
|
|
||||||
extern const struct wl_interface screenshooter_interface;
|
extern const struct wl_interface screenshooter_interface;
|
||||||
|
|
||||||
|
struct screenshooter_listener
|
||||||
|
{
|
||||||
|
/** done event */
|
||||||
|
void (*done)(void *data, struct screenshooter *screenshooter);
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline int
|
||||||
|
screenshooter_add_listener(struct screenshooter *screenshooter,
|
||||||
|
const struct screenshooter_listener *listener, void *data)
|
||||||
|
{
|
||||||
|
return wl_proxy_add_listener((struct wl_proxy *) screenshooter,
|
||||||
|
(void (**)(void)) listener, data);
|
||||||
|
}
|
||||||
|
|
||||||
#define SCREENSHOOTER_SHOOT 0
|
#define SCREENSHOOTER_SHOOT 0
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
|
|
Loading…
Reference in New Issue