diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-12-21 21:50:23 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-12-21 21:50:36 -0500 |
commit | fe831a749421470c6c1c8e842a785d7fc3c4ac9b (patch) | |
tree | 0843542c5953cf9bd7031a120df622def3657ab1 /connection.h | |
parent | bf967b469f21f915931853d53a3a7108054cf29e (diff) | |
download | wayland-fe831a749421470c6c1c8e842a785d7fc3c4ac9b.tar.gz wayland-fe831a749421470c6c1c8e842a785d7fc3c4ac9b.tar.xz wayland-fe831a749421470c6c1c8e842a785d7fc3c4ac9b.zip |
Move protocol metadata to wayland-protocol.[ch].
This lets us share the metadata between server and client and we
can now use a va_arg marshalling function for sending client
requets.
Diffstat (limited to 'connection.h')
-rw-r--r-- | connection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/connection.h b/connection.h index a9a0d71..68d6396 100644 --- a/connection.h +++ b/connection.h @@ -23,6 +23,8 @@ #ifndef _CONNECTION_H_ #define _CONNECTION_H_ +#include <stdarg.h> + struct wl_connection; #define WL_CONNECTION_READABLE 0x01 @@ -39,5 +41,7 @@ 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); #endif |