- 30 Aug, 2013 3 commits
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
If an interface has a destructor but no 'destroy' method we used to not emit a destroy method. Now with the fix for missing destroy requests for wl_pointer etc we need to emit the local wl_*_destroy always.
-
Kristian Høgsberg authored
We missed destroy requests in the 1.0 protocol and since the scanner generates local-only *_destroy requests in that case we can't add destroy requests without breaking protocol. A client needs to verify that the server provides a version 3 seat to use the protocol destructor so the name needs to be something else than wl_*_destroy. v2 (Rob Bradford): Rebased, bumped the protocol versions and added since attributes to the requests.
-
- 19 Aug, 2013 4 commits
-
-
Jason Ekstrand authored
This commit adds support for language bindings on the client half of the library. The idea is the same as for server-side dispatchers. Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Jason Ekstrand authored
This commit adds support for server-side languages bindings. This is done in two ways: 1. Adding a wl_resource_set_dispatcher function that corresponds to wl_resource_set_interface. The only difference between the two functions is that the new version takes a dispatcher along with the implementation, data, and destructor. This allows for runtime calling of native language functions for callbacks instead of having to generate function pointers. 2. Adding versions of wl_resource_post_event and wl_resource_queue_event that take an array of wl_argument instead of a variable argument list. This allows for easier run-time argument conversion and removes the need for libffi-based calling of variadic functions. Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Jason Ekstrand authored
There have been a lot of questions asked lately about versioning of interfaces and protocol objects. This addition to the documentation should clear up some of those questions. Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Jason Ekstrand authored
The method described of alocation IDs has been wrong at least since version 1.0. This commit updates it to correspond to the way IDs are chosen in versions >= 1.0. Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
- 15 Aug, 2013 1 commit
-
-
Peter Hutterer authored
When generating HTML, don't split once we're into subjections. This generates a single page for each protocol interface instead of the previous separate pages for requests, events and enums. No effect on the rest of the HTML configuration.
-
- 13 Aug, 2013 1 commit
-
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
- 12 Aug, 2013 2 commits
-
-
Rob Bradford authored
This is the mirror function to wl_proxy_add_listener and is useful inside client libraries to differentiate events on listeners for which multiple proxies have been created.
-
Rob Bradford authored
This macro allows you to correctly iterate through a list of resources handling the opaque nature of this type.
-
- 09 Aug, 2013 8 commits
-
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
Bryce W. Harrington authored
Signed-off-by:
Bryce Harrington <b.harrington@samsung.com>
-
- 08 Aug, 2013 1 commit
-
-
Tomeu Vizoso authored
-
- 07 Aug, 2013 4 commits
-
-
Peter Hutterer authored
If wayland-scanner.pc can't be found the variables end up being set irrespectively, leaving the user with odd compiler errors about missing headers, etc.
-
Peter Hutterer authored
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
Peter Hutterer authored
wayland-scanner without arguments prints out usage. With help or --help it waits for stdin to supply something which isn't quite as informative as printing out the help. This patch also moves the strcmp for args up to have all of them in one location.
-
Kristian Høgsberg authored
We just declare struct wl_display manually instead.
-
- 06 Aug, 2013 3 commits
-
-
Tomeu Vizoso authored
-
Kristian Høgsberg authored
We we're using wl_event_loop_add_idle() here, but if we're failing because of OOM, that will typically also fail. Instead, use the existing client->error flag, which will break out of the event handling loop and shut down the client.
-
Kristian Høgsberg authored
If we can't allocate a closure, don't just silently continue. Set client->error so we shut down the client when we're done processing events.
-
- 29 Jul, 2013 2 commits
-
-
Jiergir Ogoerg authored
We're supposed to return number of events dispatched on success, not 0. Refactor to avoid goto and just return ret.
-
Tomeu Vizoso authored
-
- 13 Jul, 2013 4 commits
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
Instead, return -1 on out-of-memory. errno will be set to ENOMEM by the failing malloc.
-
Kristian Høgsberg authored
Failing with an error message and error code is little nicer. I doubt we'll hit this case much, but it makes the static analysis happy.
-
Mariusz Ceier authored
Functions like wl_argument_from_va_list expect from get_next_argument, to initialize details->type but when the signature is empty or contains only version (like in desktop-shell-protocol.c in weston) it is left uninitialized. This patch fixes it, by initializing details->type with '\0' value, signaling end of arguments. Signed-off-by:
Mariusz Ceier <mceier+wayland@gmail.com>
-
- 09 Jul, 2013 6 commits
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
We can't do that there, we have to make sure it stays a valid fd until the application calls wl_display_disconnect(). Otherwise the application may end up poll()ing on a stale or wrong fd in case another part of the application (or another thread) triggered a fatal error.
-
Kristian Høgsberg authored
Getting no data from the socket is not an error condition. This may happen in case of calling prepare_read() and then read_events() with no other pending readers and no data in the socket. In general, read_events() may not queue up events in the given event queue. From a given threads point of view it doesn't matter whether events were read and put in a different event queue or no events were read at all.
-
Neil Roberts authored
If EOF is encountered while reading from the Wayland socket, make wl_display_read_events() return -1 so that it will be treated as an error. The documentation for this function states that it will set errno when there is an error so it additionally makes up an errno of EPIPE. If we don't do this then when the compositor quits the Wayland socket will be become ready for reading but wl_display_dispatch will do nothing which typically makes the application take up 100% CPU. In particular eglSwapBuffers will likely get stuck in an infinite busy loop because it repeatedly calls wl_display_dispatch_queue while it waits for the frame callback. https://bugzilla.gnome.org/show_bug.cgi?id=703892
-
Kristian Høgsberg authored
This patch introduces wl_global_create() and wl_global_destroy() as replacements for wl_display_add_global() and wl_display_remove_global(). The add/remove_global API did not allow a compositor to indicate the implemented version of a global, it just took the version from the interface meta data. The problem is that the meta data (which lives in libwayland-server.so) can get out of sync with a compositor implementation. The compositor will then advertise a higher version of a global than what it actually implements. The new API lets a compositor pass in a version when it registers a global, which solves the problem. The add/remove API is deprecated with this patch and will be removed.
-
- 03 Jul, 2013 1 commit
-
-
Daiki Ueno authored
To allow user program to include wayland-scanner.m4 in tarball, move the path variables from it into wayland-scanner.pc.
-