summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* configure.ac: Bump version to 1.0.61.0.61.0Kristian Høgsberg2013-03-221-1/+1
|
* protocol: remove implicit attach semanticsPekka Paalanen2013-03-211-11/+8
| | | | | | | | | | | | | | | | | | | | | | To match the Weston commit e7144fd175d1d68b91aa0cec7ab63381b79385a9: Author: Kristian Høgsberg <krh@bitplanet.net> Date: Mon Mar 4 12:11:41 2013 -0500 compositor: Only send release event in response to wl_surface.attach Remove the implicit attach semantics from wl_surface.commit and .attach. Before, if you did this on a wl_surface: attach, commit, commit, you would receive wl_buffer.release for both commits. After this change, you will only receive wl_buffer.release for the first commit. To get a second release, the same buffer must be attached again. There is no need for the implicit attach on the second commit. If the compositor needs the wl_buffer for repainting, it will not release it to begin with. If the compositor does not need to keep the wl_buffer around for repainting, it will not need it for a new commit either. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* client: Invoke new_id closure arguments as pointers instead of integersJonas Ådahl2013-03-216-12/+23
| | | | | | | | | | | | | | | This commit adds a flags parameter to wl_closure_invoke(). The so far added flags are ment to specify if the invokation is client side or server side. When on the server side, closure arguments of type 'new_id' should be invoked as a integer id while on the client side they should be invoked as a pointer to a proxy object. This fixes a bug happening when the address of a client side 'new_id' proxy object did not fit in a 32 bit integer. krh: Squashed test suite compile fix from Jason Ekstrand. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
* client: Check reference count only for destroyed proxiesJonas Ådahl2013-03-211-3/+3
| | | | | | | | | | | | | | | | | | | The llvm static analyzer tool reported "Use of memory after it is freed" in dispatch_event() because the proxy is used after being freed if the reference count reaches zero without the destroyed flag being set. This would never happen in practice because the owner of the proxy object always holds a reference until calling wl_proxy_destroy() which would also set the destroyed flag. Since this is the case, it is safe to do the reference count check only if the destroyed flag is set, as it can never reach zero if not. This commit doesn't change the behavior of the function, but makes the static analyzer more happy. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=61385 Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
* configure.ac: Use wayland_version macro in bug urlKristian Høgsberg2013-03-211-1/+1
|
* Stylistic nitpickingKristian Høgsberg2013-03-071-5/+5
| | | | No space between '!' and its argument, prefer i++ over ++i.
* Clean up and refactor wl_closure and associated functionsJason Ekstrand2013-03-074-352/+399
| | | | | | | | | | | | | | | | | | | | | | | | | The primary purpose of this patch is to clean up wl_closure and separate closure storage, libffi, and the wire format. To that end, a number of changes have been made: - The maximum number of closure arguments has been changed from a magic number to a #define WL_CLOSURE_MAX_ARGS - A wl_argument union has been added for storing a generalized closure argument and wl_closure has been converted to use wl_argument instead of the combination of libffi, the wire format, and a dummy extra buffer. As of now, the "extra" field in wl_closure should be treated as bulk storage and never direclty referenced outside of wl_connection_demarshal. - Everything having to do with libffi has been moved into wl_closure_invoke and the convert_arguments_to_ffi helper function. - Everything having to do with the wire format has been restricted to wl_connection_demarshal and the new static serialize_closure function. The wl_closure_send and wl_closure_queue functions are now light wrappers around serialize_closure. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* client: add wl_proxy_get_class()Pekka Paalanen2013-03-072-0/+13
| | | | | | | This is a useful shorthand for client application debugging macros, since you can ask the object class from the object itself. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* scanner: Fix 'destroy)' typo in check for destroy request presenceKristian Høgsberg2013-03-071-1/+1
| | | | | | This is there to enforce that we don't have interfaces with a destroy request that isn't a destructor. The check never worked because of the typo, but we also don't have any interfaces like that.
* scanner: remove list_length in favor of wl_list_lengthRan Benita2013-03-071-14/+2
|
* configure.ac: Bump version to 1.0.51.0.5Kristian Høgsberg2013-02-141-2/+2
| | | | Also update the bug URL to point to the right component and version.
* Make sure that man page xml files are always distedArmin K2013-02-141-4/+3
|
* README: Fix typosSiddharth Heroor2013-02-141-3/+3
| | | | Signed-off-by: Siddharth Heroor <heroor@gmail.com>
* tests: Add a help message for the test runnerKristian Høgsberg2013-02-141-1/+22
| | | | | In case we forget the name of the test case or typo it, the test runner will now list the test cases in the test binary.
* queue-test: WEXITSTATUS() is undefined if WIFEXITED() is falseKristian Høgsberg2013-02-141-2/+3
| | | | | | If a child process dies from a signal, WIFEXITED() returns false and WEXITSTATUS() isn't well-defined. In this case, if the client segfaults, the status is 134 and WEXITSTATUS(134) is EXIT_SUCCESS, so we mask the error.
* connection.c: Align pointer extra storage correctlyKristian Høgsberg2013-02-141-4/+18
| | | | | | Most extra data are just pointers, but in case of fds we store an int in the extra space. That can cause un-aligned access to pointers on 64 bit architectures. Make sure we always align pointer storage correctly.
* configure.ac: Bump version to 1.0.41.0.4Kristian Høgsberg2013-01-241-1/+1
|
* gitignore: add test-suite filesDavid Herrmann2013-01-242-1/+7
| | | | | | | The *.log and *.trs files should be ignored by git as well as the GNU autotools ./test-driver helper script. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
* event-loop: fix returning the destroy-signal listenerDavid Herrmann2013-01-241-1/+1
| | | | | | | We need to actually return the destroy-listener, otherwise the return value is undefined. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
* Add a destroy signal to the wl_event_loop objectJason Ekstrand2013-01-153-0/+84
|
* test/event-loop: Check readable state on a pipeQuentin Glidic2013-01-111-1/+6
| | | | | When redirecting stdout to a non-readable file makes the test fail as a false negative
* Added a destroy signal to the wl_display object.Jason Ekstrand2013-01-114-0/+106
| | | | Added a destroy signal to the wl_display object.
* configure.ac: Bump version to 1.0.31.0.3Kristian Høgsberg2012-12-141-1/+1
|
* client: remove two unused function pointer typedefsPekka Paalanen2012-12-121-3/+0
| | | | | | | | | | | | | | The need for wl_display_update_func_t was removed in commit 53d24713a31d59d9534c1c1a84a7ad46f44ee95f Author: Kristian Høgsberg <krh@bitplanet.net> Date: Thu Oct 4 16:54:22 2012 -0400 Change filedescriptor API to be thread safe and wl_callback_func_t does not seem to have ever been used in the first place. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* tests: rename temporary filesPekka Paalanen2012-12-031-2/+2
| | | | | | | | | This is libwayland, not weston, so call the temporary files wayland-tests-*, not weston-tests-*. This is a candidate for the stable branch. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* tests: Don't leave temporary files behindSven Joachim2012-12-031-0/+2
| | | | Signed-off-by: Sven Joachim <svenjoac@gmx.de>
* man, configure.ac: Only generate man pages if we can do it offlineJonas Ådahl2012-12-032-2/+19
| | | | | | | | Instead of relying on downloading the stylesheet from the Internet for generating man pages, only generate them if the stylesheet is available locally. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
* doc: Only generate Wayland documentation if xsltproc was foundJonas Ådahl2012-12-031-0/+2
| | | | | | | Instead of failing to generate documentation because xsltproc doesn't exist, don't try to generate at all. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
* configure.ac: Bump version to 1.0.21.0.2Kristian Høgsberg2012-11-301-1/+1
|
* client: Update libtool version for new entry pointsKristian Høgsberg2012-11-301-0/+1
| | | | | We've added wl_display_dispatch_queue_pending, so update the libtool library current and age fields accordingly.
* client: Add \since tag for wl_display_dispatch_queue_pending() documentationKristian Høgsberg2012-11-301-0/+1
|
* pkgconfig: Use configure provided directoriesQuentin Glidic2012-11-273-12/+12
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=57630
* scanner: Fix wrong restriction on since fieldAnder Conselvan de Oliveira2012-11-271-1/+1
| | | | | | The scanner would not allow two consecutive requests on an interface to have the same since number, so if a new version of an interface added two new request the version number would have to be increased by two.
* client: Don't cancel a roundtrip when any event is receivedJonas Ådahl2012-11-271-1/+4
| | | | | | | | | | | | | Since wl_display_dispatch() returns the number of processed events or -1 on error, only cancel the roundtrip if an -1 is returned. This also fixes a potential memory corruption bug happening when wl_display_roundtrip() does an early return and the callback later writes to the then out of scope stack allocated `done' parameter. Introduced by 33b7637b4500a682018b503837b8aca9afae36f2. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
* doc: Fix typosTiago Vignatti2012-11-232-3/+3
| | | | Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
* client: Add an entry point for dispatching a queue without blockingAnder Conselvan de Oliveira2012-11-232-0/+21
| | | | | | | | On the client side EGL, all the wl_buffer.release events need to be processed before buffer allocation, otherwise a third buffer might be allocated unnecessarily. However, the buffer allocation should not block in the case no event was received. In order to do that, a non-blocking queue dispatch function is needed.
* debug: Allow WAYLAND_DEBUG=server/client for server/client side only debugKristian Høgsberg2012-11-212-2/+2
| | | | | | | By default the server will dump protocol for both the server and its clients when run with WAYLAND_DEBUG=1. That's still the case, but it now also understands WAYLAND_DEBUG=client or WAYLAND_DEBUG=server, which will only enable debug dumping on either client or server side.
* configure.ac: Bump version to 1.0.11.0.1Kristian Høgsberg2012-11-191-1/+1
|
* doc: Fix out-of-source build so distcheck works againKristian Høgsberg2012-11-191-7/+7
| | | | | | The amount of generated files and hacks over hacks in the doc/ directory is getting out of hand and we need a better solution. For now, just get distcheck back to working.
* Fix distcheck by adding back protocol/Makefile.amKristian Høgsberg2012-11-193-1/+3
| | | | | | | 5909dddc78573774bd3a93c280831a7d18d82994 removed protocol/Makefile.am which meant protocol/wayland.xml no longer got included in the tarball. Add back protocol/Makefile.am and configure.ac bits and add protocol to subdirs in Makefile.am to fix this.
* protocol: Fix copy and paste summaryKristian Høgsberg2012-11-191-1/+1
|
* protocol: Add summary description for wl_data_device_managerKristian Høgsberg2012-11-191-0/+8
|
* client: Fix source comment typosMartin Olsson2012-11-141-3/+3
|
* doc: Fix incorrectly formatted section headerTiago Vignatti2012-11-121-1/+3
| | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=56719 Reported-by: Petr Gladkikh <PetrGlad@gmail.com> Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
* doc: Update .gitignoreTiago Vignatti2012-11-122-0/+2
| | | | Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
* doc: Set publican to quiet modeTiago Vignatti2012-11-121-1/+1
| | | | Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
* doc: Remove unused css and xslt for the protocolTiago Vignatti2012-11-125-256/+1
| | | | | | | This was added previously (commit 015c42e1) when we didn't have docbook formatted documentation. Now it became quite useless. Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
* doc: Auto-generate API methods and classes documentationTiago Vignatti2012-11-122-16/+52
| | | | | | | | There's work to do still for giving a prettier style on the documentation, for instance splitting paragraphs correctly and printing the detailed description of the methods as well. Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
* doc: doxygen: Interpret the first line comment as the briefTiago Vignatti2012-11-121-1/+1
| | | | Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
* tests: Add out of order delete_id queue testsJonas Ådahl2012-11-071-12/+96
| | | | | | | | Verify that when receiving the first of two synchronization callback events, destroying the second one doesn't cause any errors even if the delete_id event is handled out of order. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>