1. 18 Jul, 2019 2 commits
  2. 02 May, 2019 1 commit
    • Antonio Borneo's avatar
      log: remove "%m" from format strings by using strerror(errno) · 39578636
      Antonio Borneo authored
      The printf() format specifier "%m" is a glibc extension to print
      the string returned by strerror(errno). While supported by other
      libraries (e.g. uClibc and musl), it is not widely portable.
      In Weston code the format string is often passed to a logging
      function that calls other syscalls before the conversion of "%m"
      takes place. If one of such syscall modifies the value in errno,
      the conversion of "%m" will incorrectly report the error string
      corresponding to the new value of errno.
      Remove all the occurrences of the specifier "%m" in Weston code
      by using directly the string returned by strerror(errno).
      While there, fix some minor indentation issue.
      Signed-off-by: Antonio Borneo's avatarAntonio Borneo <borneo.antonio@gmail.com>
  3. 18 Apr, 2019 1 commit
    • Pekka Paalanen's avatar
      Rename compositor.h to libweston/libweston.h · 3d5d9476
      Pekka Paalanen authored
      The main idea is to make libweston users use the form
       #include <libweston/libweston.h>
      instead of the plain
       #include <compositor.h>
      which is prone to name conflicts. This is reflected both in the installed
      files, and the internal header search paths so that Weston would use the exact
      same form as an external project using libweston would.
      The public headers are moved under a new top-level directory include/ to make
      them clearly stand out as special (public API).
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.com>
  4. 18 Dec, 2018 1 commit
  5. 27 Nov, 2017 1 commit
  6. 26 Jul, 2016 1 commit
  7. 23 Jun, 2016 1 commit
  8. 03 Jun, 2016 1 commit
  9. 19 Nov, 2015 1 commit
  10. 14 Oct, 2015 1 commit
  11. 17 Jul, 2015 1 commit
    • Derek Foreman's avatar
      input: Pass the appropriate pointer type to bindings instead of a seat · 8ae2db5b
      Derek Foreman authored
      Normally we need to check if a seat's [device_type]_count is > 0 before
      we can use the associated pointer.  However, in a binding you're
      guaranteed that the seat has a device of that type.  If we pass in
      that type instead of the seat, it's obvious we don't have to test it.
      The bindings can still get the seat pointer via whatever->seat if they
      need it.
      This is preparation for a follow up patch that prevents direct access
      to seat->device_type pointers, and this will save us a few tests at
      that point.
      Reviewed-by: Jonas Ådahl's avatarJonas Ådahl <jadahl@gmail.com>
      Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
  12. 16 Jun, 2015 2 commits
  13. 15 Jun, 2015 1 commit
  14. 04 Jun, 2015 1 commit
  15. 02 Feb, 2015 1 commit
  16. 12 Dec, 2014 1 commit
  17. 28 Nov, 2014 1 commit
  18. 05 Sep, 2014 1 commit
    • Pekka Paalanen's avatar
      fix asprintf warnings · 974c0940
      Pekka Paalanen authored
      Fix recently introduced compiler warnings:
      desktop-shell/shell.c: In function 'shell_configuration':
      desktop-shell/shell.c:588:10: warning: ignoring return value of
      'asprintf', declared with attribute warn_unused_result [-Wunused-result]
      src/screenshooter.c: In function ‘screenshooter_binding’:
      src/screenshooter.c:291:10: warning: ignoring return value of
      ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
      src/text-backend.c: In function ‘text_backend_configuration’:
      src/text-backend.c:944:10: warning: ignoring return value of ‘asprintf’,
      declared with attribute warn_unused_result [-Wunused-result]
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
  19. 22 Aug, 2014 1 commit
    • Derek Foreman's avatar
      tests: allow running make check without make install · c7210434
      Derek Foreman authored
      desktop shell and weston keyboard both refer to themselves prefixed by
      LIBEXECDIR, however this is only valid once installed.  make check will
      currently either fail or run pre-existing versions.
      This patch adds a way to override that location by setting the env var
      WESTON_BUILD_DIR - which is then set by the test env script so make check
      will test the versions in the build directory regardless of whether they're
      installed or not.
      Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
  20. 08 Aug, 2014 2 commits
  21. 25 Apr, 2014 1 commit
  22. 02 Apr, 2014 2 commits
  23. 20 Jan, 2014 1 commit
  24. 09 Jan, 2014 1 commit
  25. 20 Dec, 2013 1 commit
  26. 17 Dec, 2013 1 commit
  27. 14 Nov, 2013 1 commit
    • Neil Roberts's avatar
      Add calls to wl_shm_buffer_begin/end_access · e505171a
      Neil Roberts authored
      This wraps all accesses to an SHM buffer between wl_shm_buffer_begin
      and end so that wayland-shm can install a handler for SIGBUS and catch
      attempts to pass the compositor a buffer that is too small.
  28. 21 Sep, 2013 1 commit
  29. 15 Aug, 2013 1 commit
  30. 08 Aug, 2013 1 commit
  31. 09 Jul, 2013 1 commit
  32. 03 Jul, 2013 1 commit
  33. 25 Jun, 2013 1 commit
  34. 22 Jun, 2013 1 commit
  35. 14 Jun, 2013 1 commit
  36. 05 Jun, 2013 1 commit
    • Daniel Stone's avatar
      configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS · c228e23b
      Daniel Stone authored
      macros to expose the largest extent of functionality supported by the
      underlying system.  This is required since these macros are often
      limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually
      on some systems hide declarations which are not part of the X/Open spec.
      Since this goes into config.h rather than the command line, ensure all
      source is consistently including config.h before anything else,
      including system libraries.  This doesn't need to be guarded by a
      HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org
      modular transition.
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
      [pq: rebased and converted more files]