nixpkgs/pkgs/applications/window-managers/weston/screenshooter-client-protocol_h.patch
Carles Pagès ec99d9603c Weston: add patches to fix the build.
The patches fix two issues:
 - screenshooter-client-protocol.h missing from tarball
 - missing flags for include paths and definitions
I had to add auto* as inputs to be able to call autoreconf, as one patch
modifies a Makefile.am. Both issues are already reported upstream.
2012-12-07 12:10:14 +01:00

72 lines
1.7 KiB
Diff

diff --git a/clients/screenshooter-client-protocol.h b/clients/screenshooter-client-protocol.h
new file mode 100644
index 0000000..8782ca1
--- /dev/null
+++ b/clients/screenshooter-client-protocol.h
@@ -0,0 +1,66 @@
+#ifndef SCREENSHOOTER_CLIENT_PROTOCOL_H
+#define SCREENSHOOTER_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 screenshooter;
+
+extern const struct wl_interface screenshooter_interface;
+
+struct screenshooter_listener {
+ /**
+ * done - (none)
+ */
+ 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
+
+static inline void
+screenshooter_set_user_data(struct screenshooter *screenshooter, void *user_data)
+{
+ wl_proxy_set_user_data((struct wl_proxy *) screenshooter, user_data);
+}
+
+static inline void *
+screenshooter_get_user_data(struct screenshooter *screenshooter)
+{
+ return wl_proxy_get_user_data((struct wl_proxy *) screenshooter);
+}
+
+static inline void
+screenshooter_destroy(struct screenshooter *screenshooter)
+{
+ wl_proxy_destroy((struct wl_proxy *) screenshooter);
+}
+
+static inline void
+screenshooter_shoot(struct screenshooter *screenshooter, struct wl_output *output, struct wl_buffer *buffer)
+{
+ wl_proxy_marshal((struct wl_proxy *) screenshooter,
+ SCREENSHOOTER_SHOOT, output, buffer);
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif