mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
connection: Always malloc closure
This lets us allocate the closure just big enough and is a first step towards a message queue.
This commit is contained in:
parent
1432bd62df
commit
46f9745c10
4 changed files with 62 additions and 65 deletions
|
|
@ -76,19 +76,17 @@ struct wl_closure {
|
|||
ffi_type *types[20];
|
||||
ffi_cif cif;
|
||||
void *args[20];
|
||||
uint32_t buffer[256];
|
||||
uint32_t *start;
|
||||
uint32_t buffer[0];
|
||||
};
|
||||
|
||||
int
|
||||
wl_closure_vmarshal(struct wl_closure *closure,
|
||||
struct wl_object *sender,
|
||||
struct wl_closure *
|
||||
wl_closure_vmarshal(struct wl_object *sender,
|
||||
uint32_t opcode, va_list ap,
|
||||
const struct wl_message *message);
|
||||
|
||||
int
|
||||
struct wl_closure *
|
||||
wl_connection_demarshal(struct wl_connection *connection,
|
||||
struct wl_closure *closure,
|
||||
uint32_t size,
|
||||
struct wl_map *objects,
|
||||
const struct wl_message *message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue