summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-10-08better wl_array supportbetter-arrayKristian Høgsberg1-14/+34
2013-10-07protocol: Mark wl_keyboard.keys array as having uint elementsKristian Høgsberg1-1/+2
This is the only array in the core protocol; specify the element type.
2013-10-07scanner: Add support for specifying and verifying array element typeKristian Høgsberg1-21/+60
2013-10-07scanner: Mark fail() as a no-return functionKristian Høgsberg2-1/+8
2013-10-07scanner: Handle unrecognized invocation modeKristian Høgsberg1-1/+3
Print usage if we don't recognize the invocation mode. Also fixes uninitialized variable warning.
2013-10-02configure.ac: Bump version to 1.2.92Kristian Høgsberg1-1/+1
2013-09-25client: Fix handling display->reader_count if poll failsNeil Roberts1-1/+3
In wl_display_dispatch_queue, if poll fails then it would previously return immediately and leak a reference in display->reader_count. Then if the application ignores the error and tries to read again it will block forever. This can happen for example if the poll fails with EINTR which the application might consider to be a recoverable error. This patch makes it cancel the read so the reader_count will be decremented when poll fails.
2013-09-22configure.ac: Bump version to 1.2.91Kristian Høgsberg1-1/+1
2013-09-21Export the Wayland protocol XML fileJason Ekstrand3-1/+5
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
2013-09-21tests: add wl_resource testsMarek Ch2-1/+170
2013-09-21tests: add unit tests for wl_signalMarek Ch2-1/+117
Test wl_signal initialization, adding and getting listeners and emitting
2013-09-21tests: extended message when leak in test is detectedMarek Ch1-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.
2013-09-21client: fix an inconsistency in documentationChang Liu1-1/+1
The errno is set to EAGAIN when there are undispatched events, according to L1066 of wayland-client.c.
2013-09-21doc: Slight tweaks to wl_listenerAaron Faanes1-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.
2013-09-21utils: Document wl_container_ofAaron Faanes1-0/+35
2013-09-21doc: Create \comment alias for C-style commentsAaron Faanes1-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>
2013-09-16doc: Include wayland-util.* for doxygen outputAaron Faanes1-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.
2013-09-16wayland-server: Improve wording for wl_signal_get's docAaron Faanes1-1/+1
The old description was a bit vague; this commit hopefully improves describing what is returned.
2013-09-16utils: Add doxygen for wayland-util.hAaron Faanes1-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.
2013-09-16utils: Reference some useful methods in wl_signal's doxygenAaron Faanes1-1/+6
This commit adds a bit more detail on the lifecycle of a signal.
2013-09-16wayland-server: Document wl_listenerAaron Faanes1-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.
2013-09-11gitignore: add ./compileChang Liu1-0/+1
./compile is a GNU autotools helper script and should be ignored by git
2013-09-11wayland-server: Add a wl_resource_for_each_safe macroRob Bradford1-0/+8
A version of wl_resource_for_each that is safe for iteration when items in the list are removed.
2013-09-11utils: tweak wl_list for better doxygen outputAaron Faanes1-2/+3
2013-09-11wayland-server: Document wl_signalAaron Faanes1-0/+37
2013-09-11wayland-server: Fix a uninitialized warning from clangAaron Faanes1-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.
2013-08-30configure.ac: Bump version to 1.2.90 for master branchKristian Høgsberg1-1/+1
2013-08-30scanner: Emit wl_*_destroy stub even if interface has a destructorKristian Høgsberg1-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.
2013-08-30protocol: Add release requests for wl_pointer, wl_keyboard, and wl_touchKristian Høgsberg1-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.
2013-08-19Add support for client-side language bindingsJason Ekstrand2-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>
2013-08-19Add support for server-side language bindingsJason Ekstrand5-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>
2013-08-19doc: Add a section on interface and protocol object versioningJason Ekstrand1-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>
2013-08-19doc: Update the ID alocation sectionJason Ekstrand1-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>
2013-08-15publican: only split chapters and top-level sections onto separate pagesPeter Hutterer1-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.
2013-08-12protocol: Improve a bit of grammar for wl_surface::attach descriptionBryce W. Harrington1-2/+2
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-12wayland-client: Add wl_proxy_get_listenerRob Bradford2-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.
2013-08-12wayland-server: Add a wl_resource_for_each macroRob Bradford1-0/+5
This macro allows you to correctly iterate through a list of resources handling the opaque nature of this type.
2013-08-08protocol: Fix pluralization of user in popup_done descriptionBryce W. Harrington1-1/+1
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-08protocol: Improve grammar for set class descriptionBryce W. Harrington1-3/+3
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-08protocol: Add missing d to 'x an y'Bryce W. Harrington1-2/+2
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-08protocol: Fix typo by removing a redundant 'a'Bryce W. Harrington1-1/+1
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-08client: Improve spelling and grammar in commentsBryce W. Harrington1-6/+6
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-08publican: Fix grammar several places in Protocol docsBryce W. Harrington1-5/+5
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-08publican: Drop unneeded 'of'Bryce W. Harrington1-1/+1
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-08publican: Cleanup Preface's grammar.Bryce W. Harrington1-7/+6
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-08server: Release additional_shm_formats array at display destructionTomeu Vizoso1-0/+2
2013-08-07scanner: check for wayland-scanner.pc before using variablesPeter Hutterer1-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.
2013-08-07scanner: expand help stringPeter Hutterer1-0/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-08-07scanner: support help and --helpPeter Hutterer1-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.
2013-08-07Don't include wayland-server.h in wayland-private.hKristian Høgsberg1-1/+2
We just declare struct wl_display manually instead.