#include "wayland-util.h"
#include "wayland-protocol.h"
-static const struct wl_event display_events[] = {
+static const struct wl_message display_events[] = {
{ "invalid_object", "u" },
{ "invalid_method", "uu" },
{ "no_memory", "" },
};
-static const struct wl_method compositor_methods[] = {
+static const struct wl_message compositor_methods[] = {
{ "create_surface", "n" },
{ "commit", "u" }
};
-static const struct wl_event compositor_events[] = {
+static const struct wl_message compositor_events[] = {
{ "acknowledge", "uu" },
{ "frame", "uu" }
};
};
-static const struct wl_method surface_methods[] = {
+static const struct wl_message surface_methods[] = {
{ "destroy", "" },
{ "attach", "uuuuo" },
{ "map", "iiii" },
};
-static const struct wl_event input_device_events[] = {
+static const struct wl_message input_device_events[] = {
{ "motion", "iiii" },
{ "button", "uuiiii" },
{ "key", "uu" },
void *data;
};
-struct wl_method {
+struct wl_message {
const char *name;
const char *signature;
const void **types;
};
-struct wl_event {
- const char *name;
- const char *signature;
-};
-
struct wl_interface {
const char *name;
int version;
int method_count;
- const struct wl_method *methods;
+ const struct wl_message *methods;
int event_count;
- const struct wl_event *events;
+ const struct wl_message *events;
};
#define WL_DISPLAY_INVALID_OBJECT 0
gdk_pixbuf_save(pixbuf, filename, "png", &error, NULL);
}
-static const struct wl_method screenshooter_methods[] = {
+static const struct wl_message screenshooter_methods[] = {
{ "shoot", "", NULL }
};
wl_client_vmarshal(struct wl_client *client, struct wl_object *sender,
uint32_t opcode, va_list ap)
{
- const struct wl_event *event;
+ const struct wl_message *event;
struct wl_object *object;
uint32_t args[32], length, *p, size;
const char *s;
wl_client_demarshal(struct wl_client *client, struct wl_object *target,
uint32_t opcode, size_t size)
{
- const struct wl_method *method;
+ const struct wl_message *method;
ffi_type *types[20];
ffi_cif cif;
uint32_t *p, result;