mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
Add client side demarshalling for events.
This also consolidates the marshalling code in connection.c and uses the same functions in the server and client for marshalling.
This commit is contained in:
parent
fabd4395ba
commit
b3131d9268
7 changed files with 321 additions and 311 deletions
15
connection.h
15
connection.h
|
|
@ -24,6 +24,7 @@
|
|||
#define _CONNECTION_H_
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "wayland-util.h"
|
||||
|
||||
struct wl_connection;
|
||||
|
||||
|
|
@ -41,7 +42,17 @@ void wl_connection_copy(struct wl_connection *connection, void *data, size_t siz
|
|||
void wl_connection_consume(struct wl_connection *connection, size_t size);
|
||||
int wl_connection_data(struct wl_connection *connection, uint32_t mask);
|
||||
void wl_connection_write(struct wl_connection *connection, const void *data, size_t count);
|
||||
void wl_connection_vmarshal(struct wl_connection *connection, uint32_t id,
|
||||
uint32_t opcode, const char *signature, va_list ap);
|
||||
|
||||
void wl_connection_vmarshal(struct wl_connection *connection,
|
||||
struct wl_object *sender,
|
||||
uint32_t opcode, va_list ap,
|
||||
const struct wl_message *message);
|
||||
|
||||
void wl_connection_demarshal(struct wl_connection *connection,
|
||||
uint32_t size,
|
||||
struct wl_hash *objects,
|
||||
void (*func)(void),
|
||||
void *data, struct wl_object *target,
|
||||
const struct wl_message *message);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue