summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* configure.ac: Bump version to 1.2.911.2.91Kristian Høgsberg2013-09-221-1/+1
|
* Export the Wayland protocol XML fileJason Ekstrand2013-09-213-1/+5
| | | | Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* tests: add wl_resource testsMarek Ch2013-09-212-1/+170
|
* tests: add unit tests for wl_signalMarek Ch2013-09-212-1/+117
| | | | Test wl_signal initialization, adding and getting listeners and emitting
* tests: extended message when leak in test is detectedMarek Ch2013-09-211-3/+14
| | | | | When memory or fd leak is detected, print how many blocks of memory were allocated and not freed, respectively how many files were opened/unclosed.
* client: fix an inconsistency in documentationChang Liu2013-09-211-1/+1
| | | | | The errno is set to EAGAIN when there are undispatched events, according to L1066 of wayland-client.c.
* doc: Slight tweaks to wl_listenerAaron Faanes2013-09-211-4/+6
| | | | | Prefer \comment over // in code blocks for consistency's sake and keep variable definitions separated by a line from the rest of the body.
* utils: Document wl_container_ofAaron Faanes2013-09-211-0/+35
|
* doc: Create \comment alias for C-style commentsAaron Faanes2013-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since /* */ do not nest, documentation is forced to either use C++ style // comments or some other foreign notation. This commit provides an alias that allows C-style comments to be introduced in code blocks that support aliases. It should be noted that this macro will not work within \code blocks, as Doxygen commands are ignored there. Instead, Doxygen's fenced code blocks (created via ~~~) must be used for proper output. To demonstrate: ~~~ struct example_node { int id; \comment{Other members ...} }; ~~~ will roughly yield the following HTML (excluding syntax highlighting): <pre> struct example_node { int id; /* Other members ... */ }; </pre>
* doc: Include wayland-util.* for doxygen outputAaron Faanes2013-09-161-0/+6
| | | | | | This commit creates a shared file list that is included by both the client and the server for the XML Makefile targets, as classes within util are used by both the client and the server.
* wayland-server: Improve wording for wl_signal_get's docAaron Faanes2013-09-161-1/+1
| | | | | The old description was a bit vague; this commit hopefully improves describing what is returned.
* utils: Add doxygen for wayland-util.hAaron Faanes2013-09-161-0/+5
| | | | | | This is needed for doxygen to generate output for macro definitions, such as wl_container_of, that are contained by this file. Classes like wl_list would be documented regardless.
* utils: Reference some useful methods in wl_signal's doxygenAaron Faanes2013-09-161-1/+6
| | | | This commit adds a bit more detail on the lifecycle of a signal.
* wayland-server: Document wl_listenerAaron Faanes2013-09-161-0/+45
| | | | | This patch takes Kristian's comments into account, adding a demonstration and giving a more thorough idea of how wl_listener is used.
* gitignore: add ./compileChang Liu2013-09-111-0/+1
| | | | ./compile is a GNU autotools helper script and should be ignored by git
* wayland-server: Add a wl_resource_for_each_safe macroRob Bradford2013-09-111-0/+8
| | | | | A version of wl_resource_for_each that is safe for iteration when items in the list are removed.
* utils: tweak wl_list for better doxygen outputAaron Faanes2013-09-111-2/+3
|
* wayland-server: Document wl_signalAaron Faanes2013-09-111-0/+37
|
* wayland-server: Fix a uninitialized warning from clangAaron Faanes2013-09-111-1/+1
| | | | | This warning is unnecessary, since the pointer in question is only used for pointer arithmetic, but setting it explicitly to NULL doesn't hurt.
* configure.ac: Bump version to 1.2.90 for master branchKristian Høgsberg2013-08-301-1/+1
|
* scanner: Emit wl_*_destroy stub even if interface has a destructorKristian Høgsberg2013-08-301-1/+1
| | | | | | | 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.
* protocol: Add release requests for wl_pointer, wl_keyboard, and wl_touchKristian Høgsberg2013-08-301-4/+16
| | | | | | | | | | | 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.
* Add support for client-side language bindingsJason Ekstrand2013-08-192-9/+86
| | | | | | | 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>
* Add support for server-side language bindingsJason Ekstrand2013-08-195-25/+120
| | | | | | | | | | | | | | | | | | 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>
* doc: Add a section on interface and protocol object versioningJason Ekstrand2013-08-191-0/+61
| | | | | | | | 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>
* doc: Update the ID alocation sectionJason Ekstrand2013-08-191-4/+10
| | | | | | | | 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>
* publican: only split chapters and top-level sections onto separate pagesPeter Hutterer2013-08-151-0/+1
| | | | | | | 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.
* protocol: Improve a bit of grammar for wl_surface::attach descriptionBryce W. Harrington2013-08-121-2/+2
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* wayland-client: Add wl_proxy_get_listenerRob Bradford2013-08-122-0/+20
| | | | | | 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.
* wayland-server: Add a wl_resource_for_each macroRob Bradford2013-08-121-0/+5
| | | | | This macro allows you to correctly iterate through a list of resources handling the opaque nature of this type.
* protocol: Fix pluralization of user in popup_done descriptionBryce W. Harrington2013-08-081-1/+1
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* protocol: Improve grammar for set class descriptionBryce W. Harrington2013-08-081-3/+3
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* protocol: Add missing d to 'x an y'Bryce W. Harrington2013-08-081-2/+2
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* protocol: Fix typo by removing a redundant 'a'Bryce W. Harrington2013-08-081-1/+1
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* client: Improve spelling and grammar in commentsBryce W. Harrington2013-08-081-6/+6
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* publican: Fix grammar several places in Protocol docsBryce W. Harrington2013-08-081-5/+5
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* publican: Drop unneeded 'of'Bryce W. Harrington2013-08-081-1/+1
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* publican: Cleanup Preface's grammar.Bryce W. Harrington2013-08-081-7/+6
| | | | Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* server: Release additional_shm_formats array at display destructionTomeu Vizoso2013-08-081-0/+2
|
* scanner: check for wayland-scanner.pc before using variablesPeter Hutterer2013-08-071-0/+2
| | | | | | 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.
* scanner: expand help stringPeter Hutterer2013-08-071-0/+4
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* scanner: support help and --helpPeter Hutterer2013-08-071-6/+23
| | | | | | | | | 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.
* Don't include wayland-server.h in wayland-private.hKristian Høgsberg2013-08-071-1/+2
| | | | We just declare struct wl_display manually instead.
* shm: Add API for renderers to register additional pixel formatsTomeu Vizoso2013-08-064-13/+58
|
* server: Set client->error when we fail to send a closureKristian Høgsberg2013-08-061-14/+4
| | | | | | | 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.
* server: Handle OOM properly when we fail to allocate a send closureKristian Høgsberg2013-08-061-2/+6
| | | | | 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.
* client: Simply wl_display_dispatch_queue_pending() and fix return valueJiergir Ogoerg2013-07-291-7/+4
| | | | | We're supposed to return number of events dispatched on success, not 0. Refactor to avoid goto and just return ret.
* protocol: Copy missing pixel formats from wl_drm to wl_shmTomeu Vizoso2013-07-291-1/+64
|
* Bump version to 1.2.01.2.0Kristian Høgsberg2013-07-131-2/+2
|
* wayland-client: Handle potential NULL-derefKristian Høgsberg2013-07-131-0/+2
| | | | | Instead, return -1 on out-of-memory. errno will be set to ENOMEM by the failing malloc.