Commit graph

22 commits

Author SHA1 Message Date
Kristian Høgsberg
4f14f6e109 Fix integer signedness and fd size confusion 2010-09-07 17:09:01 -04:00
Kristian Høgsberg
f821f5ad93 Demarshal all arguments from protocol buffer 2010-09-07 17:00:34 -04:00
Kristian Høgsberg
6c7c7a909a Keep strings and arrays in the buffer when demarshalling
Avoids the malloc+copy, and is a step towards using the closure for
marshalling too.
2010-09-07 16:01:40 -04:00
Kristian Høgsberg
de0fa3bc64 Send terminating nul character when sending strings 2010-09-07 15:58:29 -04:00
Kristian Høgsberg
9f897988fd Move marshal/demarshal buffer into struct wl_closure 2010-09-07 15:58:29 -04:00
Kristian Høgsberg
f1e7bd384c Add protocol debugging facility 2010-09-07 15:58:29 -04:00
Kristian Høgsberg
45b7789a8b Return a closure object from wl_connection_demarshal
This way we can invoke it multiple times without having to demarshal
and build the cfi every time.
2010-08-30 09:47:36 -04:00
Kristian Høgsberg
3bbbd15c65 Marshall NULL strings without crashing 2010-08-27 22:16:50 -04:00
Kristian Høgsberg
aebeee0bbf Support marshalling of file descriptors 2010-08-27 20:30:22 -04:00
Kristian Høgsberg
d6f4da7927 connection: Factor out circular buffer functionality 2010-08-26 17:44:31 -04:00
Kristian Høgsberg
b049626117 Use sendmsg/recvmsg for socket I/O 2010-08-25 17:11:29 -04:00
Kristian Høgsberg
5b0079aed5 Demarshal robustness fixes 2010-08-09 14:34:11 -04:00
Kristian Høgsberg
c071f4d008 Handle failure to reference a buffer name better 2010-08-05 17:44:31 -04:00
Kristian Høgsberg
c098d8da47 Print more info when demarshal fails 2010-07-28 23:51:05 -04:00
Kristian Høgsberg
f52e03ff47 Import Eric Anholts hash table implementation
Adapted from git://people.freedesktop.org/~anholt/hash_table.
2010-02-26 11:42:59 -05:00
Kristian Høgsberg
3c38fa0c3e Include the currently pressed keys in keyboard focus event. 2009-02-23 22:30:29 -05:00
Kristian Høgsberg
4a35fc2563 Handle marshalling NULL objects. 2009-02-22 20:57:57 -05:00
Kristian Høgsberg
b3131d9268 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.
2008-12-24 19:31:58 -05:00
Kristian Høgsberg
fe831a7494 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.
2008-12-21 21:50:36 -05:00
Kristian Høgsberg
fdea72a078 Handle interrupted system calls in connection code. 2008-12-09 10:48:52 -05:00
Kristian Høgsberg
ffd710e653 Put Wayland under the MIT license. 2008-12-02 15:15:01 -05:00
Kristian Høgsberg
680f1c7025 Split out connection io buffer logic. 2008-11-06 10:51:58 -05:00