1. 23 Jan, 2019 1 commit
  2. 17 Jan, 2019 1 commit
  3. 04 Apr, 2018 2 commits
  4. 29 Mar, 2018 1 commit
  5. 01 Jun, 2015 2 commits
  6. 18 May, 2015 4 commits
    • spiiroin's avatar
      Fix timeout calculations in iphb_wait2() · 4e8ee2f1
      spiiroin authored
      The timeout handling in iphb_wait2() mixes signed and unsigned
      integers which causes warnings after enabling -Wextra diagnostics.
      
      Eliminate numeric overflows due to signed/unsigned to a reasonable
      extent.
      
      Refactor the code to use single exit point and make sure that all
      error return paths also set the errno to something relevant.
      
      Add comments that hopefully clarify what the function is doing.
      
      [libiphb] Fix timeout calculations in iphb_wait2(). Fixes MER#1005
      4e8ee2f1
    • spiiroin's avatar
      Fix warnings about missing structure initializers · e63c2b67
      spiiroin authored
      Using structure initializer that does not specify value for every
      field generates a warning unless at least one member is explicitly
      named.
      
      Use named initializers which both makes the code more readable and
      silences the warning.
      
      [compilation] Fix warnings about missing structure initializers. Contributes to MER#1005
      e63c2b67
    • spiiroin's avatar
      Fix warnings about unused callback function parameters · e379fe88
      spiiroin authored
      The parameters are unused on purpose and can be ignored.
      
      [compilation] Fix warnings about unused parameters. Contributes to MER#1005
      e379fe88
    • spiiroin's avatar
      Enable extra compilation warnings · 84e31106
      spiiroin authored
      When libiphb is compiled as a part of another program that uses
      '-W' parameter, it reveals potential problems in libiphb code that
      '-Wall' does not show.
      
      Note: While '-W' is still supported, nowadays '-Wextra' is preferred.
      
      Use -Wextra when building libiphb.
      
      [compilation] Enable extra compilation warnings. Contributes to MER#1005
      84e31106
  7. 15 Mar, 2015 2 commits
  8. 14 Mar, 2015 1 commit
  9. 03 Mar, 2015 3 commits
  10. 23 Sep, 2014 2 commits
  11. 22 Sep, 2014 1 commit
    • spiiroin's avatar
      Allow canceling of iphb wakeups by iphb_wait() with zero wakeup range · 61874d7a
      spiiroin authored
      The daemon side has always assumed that using zero wait window means
      the client wants to cancel the currently programmed wakeup. For some
      reason it was never noticed that the client library does not make the
      request unless a non-zero wait period is defined.
      
      Do not ignore iphb_wait*() requests with zero wait period.
      
      [libiphb] Allow canceling of iphb wakeups by iphb_wait() with zero wakeup range. Fixes JB#20629
      61874d7a
  12. 24 Mar, 2014 5 commits
  13. 21 Mar, 2014 3 commits
    • spiiroin's avatar
      aa6ffa74
    • spiiroin's avatar
      Update hbtest3 to use the 32bit iphb wakeup ranges · a7a7472b
      spiiroin authored
      Use iphb_wait2() instead of iphb_wait().
      
      Add a wakeup that is far enough to need 32bit time spans and make the
      test case fail if it gets triggered during the test execution.
      a7a7472b
    • spiiroin's avatar
      Support 32bit iphb wakeup ranges · 2b43bf7c
      spiiroin authored
      The changes are compatible with pre-existing 16 bit wakeup ranges both
      in API and socket protocol levels.
      
      Adds new function iphb_wait2() that allows
      * using 32bit values for wakeup ranges
      * synchronizing wakeups without forcing resume from suspend
      
      The previously existing iphb_wait() is kept for API compatibility, but
      is now just a wrapper for iphb_wait2().
      
      [libiphb] Support 32bit iphb wakeup ranges. Contributes to JB#16116
      2b43bf7c
  14. 22 Nov, 2013 1 commit
  15. 21 Nov, 2013 1 commit
    • spiiroin's avatar
      Add wakeup field to iphb wait request data · dae40050
      spiiroin authored
      This is used internally within dsme to flag internal wait
      requests that need to wake up from suspend.
      
      [libiphb] Add wakeup field to iphb wait request data
      dae40050
  16. 10 Oct, 2013 4 commits
  17. 07 Jun, 2013 2 commits
  18. 06 Jun, 2013 2 commits
  19. 05 Jun, 2013 2 commits
    • spiiroin's avatar
      Apply a less strict version check for the spec file · 8bcf64b7
      spiiroin authored
      Consider "1.0.0+devel.34.4.gc92e26c" = "1.0.0" to ease making test
      builds in the OBS.
      
      [verify_version] Apply a less strict version check for the spec file
      8bcf64b7
    • spiiroin's avatar
      Add new utility for testing iphb timers · dd975574
      spiiroin authored
      Verify that wakeup patterns are as expected when
      - multiple overlapping mintime-maxtime ranges are used
      - various sizes of global slot wakeups are used
      - global slot wakeup is followed by cpu keepalive period
      
      [tests] Added hbtest3 test tool
      dd975574