1. 25 Apr, 2012 4 commits
    • Pekka Paalanen's avatar
      os: wrap epoll_create · b2eaf870
      Pekka Paalanen authored
      Some system C libraries do not have epoll_create1() nor EPOLL_CLOEXEC,
      provide a fallback.
      
      Add tests for the wrapper.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
      b2eaf870
    • Pekka Paalanen's avatar
      os: wrap recvmsg(MSG_CMSG_CLOEXEC) · 35d5053c
      Pekka Paalanen authored
      Some system C libraries do not have MSG_CMSG_CLOEXEC. This flag would
      automatically set O_CLOEXEC flag on any received file descriptors.
      
      Provide a fallback that does it manually. If setting CLOEXEC fails, the
      file descriptor is closed immediately, which will lead to failures but
      avoid leaks. However, setting CLOEXEC is not really expected to fail
      occasionally.
      
      Add tests for the wrapper. The setup is copied from connection-test.c.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
      35d5053c
    • Pekka Paalanen's avatar
      os: wrap F_DUPFD_CLOEXEC · 1463a41f
      Pekka Paalanen authored
      Some system C libraries do not have F_DUPFD_CLOEXEC. Provide a fallback.
      
      Add tests for the new wl_os_dupfd_cloexec() wrapper.
      
      Add per-wrapper call counters in os_wrappers-test.c. Makes it easier to
      determine the minimum required number of wrapped calls.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
      1463a41f
    • Pekka Paalanen's avatar
      os: define SOCK_CLOEXEC on Linux · 3b29783d
      Pekka Paalanen authored
      If it's not already defined, and we are on Linux, #define it. This gets
      rid of a load of #ifdefs. This should also allow to use it when the
      kernel supports it, but the libc does not define it.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
      3b29783d
  2. 20 Apr, 2012 3 commits
  3. 19 Apr, 2012 3 commits
  4. 12 Apr, 2012 1 commit
    • Neil Roberts's avatar
      Add a public header for the version number · 18a770c8
      Neil Roberts authored
      This adds a public header so that applications can get the Wayland
      version number at compile time. This can be used to make applications
      that support compiling against multiple versions of Wayland.
      
      There is a separate installed header called cogl-version.h which gets
      included by both wayland-client.h and wayland-server.h
      
      The canonical place for the version number is the configure.ac script
      which splits it into three separate m4 defines for the major, minor
      and micro version. These are copied into the generated
      wayland-version.h header using AC_SUBST. There is also a string form
      of the complete version number.
      
      The version number is now also automatically copied into the two .pc
      files.
      
      Because the major, minor and micro parts are required it is no longer
      possible to leave the version number as 'master' when building from
      git. Most projects seem to immediately bump the git repo to a fake
      version number (usually odd) after making a release so that there is
      always a relative number that can be used for comparison. This patch
      sets the git version to 0.99.0 under the assumption that the next
      release will be 1.0.0.
      18a770c8
  5. 31 Aug, 2011 1 commit
    • Kristian H. Kristensen's avatar
      Remove the wl_visual interface · c640571c
      Kristian H. Kristensen authored
      The visual interface was meant to be a generic mechanism for
      specifying the content of a buffer.  It goes back to before we had the
      buffer factory interfaces (like wl_drm and wl_shm) and we wanted to
      keep it open-ended enough that yuv, png or even svg buffer or so would
      be possible.
      
      Now that we have the buffer abstraction, we can add different buffer
      types by introducing new interfaces that create buffers.  It only
      makes sense to leave it to those interfaces to specify the contents of
      the buffers.
      
      For wl_shm, this means that we now just specify the pixel format using
      an enum.  For EGL buffers, the exact pixel formats are controlled by
      the implementation (part of wl_drm and similar), and from the client
      point of view, everything is controlled using EGLConfigs.
      c640571c
  6. 12 Aug, 2011 1 commit
  7. 18 Apr, 2011 1 commit
  8. 09 Feb, 2011 1 commit
  9. 08 Feb, 2011 1 commit
  10. 07 Feb, 2011 1 commit
    • Benjamin Franzke's avatar
      Add wayland-egl.h · 66cea0ad
      Benjamin Franzke authored
      This header defines native EGL wayland types and affiliated
      initialization, processing and destruction routines.
      EGL implementations must implement this API in order to allow
      applications using this native types for the EGL implementation.
      66cea0ad