summaryrefslogtreecommitdiff
path: root/src/wayland-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland-private.h')
-rw-r--r--src/wayland-private.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/wayland-private.h b/src/wayland-private.h
index 7f8c12c..67e8783 100644
--- a/src/wayland-private.h
+++ b/src/wayland-private.h
@@ -94,23 +94,12 @@ int wl_connection_flush(struct wl_connection *connection);
int wl_connection_read(struct wl_connection *connection);
int wl_connection_write(struct wl_connection *connection, const void *data, size_t count);
int wl_connection_queue(struct wl_connection *connection,
const void *data, size_t count);
-union wl_argument {
- int32_t i;
- uint32_t u;
- wl_fixed_t f;
- const char *s;
- struct wl_object *o;
- uint32_t n;
- struct wl_array *a;
- int32_t h;
-};
-
struct wl_closure {
int count;
const struct wl_message *message;
uint32_t opcode;
uint32_t sender_id;
union wl_argument args[WL_CLOSURE_MAX_ARGS];
@@ -160,12 +149,15 @@ enum wl_closure_invoke_flag {
WL_CLOSURE_INVOKE_SERVER = (1 << 1)
};
void
wl_closure_invoke(struct wl_closure *closure, uint32_t flags,
struct wl_object *target, uint32_t opcode, void *data);
+void
+wl_closure_dispatch(struct wl_closure *closure, wl_dispatcher_func_t dispatcher,
+ struct wl_object *target, uint32_t opcode);
int
wl_closure_send(struct wl_closure *closure, struct wl_connection *connection);
int
wl_closure_queue(struct wl_closure *closure, struct wl_connection *connection);
void
wl_closure_print(struct wl_closure *closure, struct wl_object *target, int send);