libiphb:master commitshttps://git.sailfishos.org/mer-core/libiphb/commits/master2019-01-23T08:54:01+00:00https://git.sailfishos.org/mer-core/libiphb/commit/62091c5308361cc72afada555f60f4ad3ee7e4f3Merge branch 'jb24119' into 'master'2019-01-23T08:54:01+00:00Tomi Leppänentomi.leppanen@jolla.com
Add libiphb-doc subpackage. JB#24119
See merge request <a href="/mer-core/libiphb/merge_requests/2" data-original="mer-core/libiphb!2" data-link="false" data-link-reference="false" data-project="704" data-merge-request="3476" data-project-path="mer-core/libiphb" data-iid="2" data-mr-title="Add libiphb-doc subpackage. JB#24119" data-reference-type="merge_request" data-container="body" data-placement="bottom" title="" class="gfm gfm-merge_request">mer-core/libiphb!2</a>https://git.sailfishos.org/mer-core/libiphb/commit/5426a4241257f396b3026cae541e9061d8ec638a[packaging] Add libiphb-doc subpackage. Contributes to JB#241192019-01-17T11:15:49+02:00Tomi Leppänentomi.leppanen@jolla.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="289"><a href="https://git.sailfishos.org/tomin" title="tomi.leppanen@jolla.com"><img alt="Tomi Leppänen's avatar" src="https://secure.gravatar.com/avatar/0df4adc670391e2835efab21333d9eab?s=32&amp;d=identicon" class="avatar s16 avatar-inline" title="Tomi Leppänen"></a><a href="https://git.sailfishos.org/tomin" title="tomi.leppanen@jolla.com">Tomi Leppänen</a> &lt;<a href="mailto:tomi.leppanen@jolla.com" title="tomi.leppanen@jolla.com">tomi.leppanen@jolla.com</a>&gt;</span>https://git.sailfishos.org/mer-core/libiphb/commit/ede77207e0765a710eab914cab530c8b2e5eac5aBump libiphb version to 1.2.52018-04-04T08:48:03+03:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/5522136d6198e2bbff0a7477cc684352b13d6bceMerge branch 'jb38500_unique_dsme_msg_identifiers' into 'master'2018-04-04T05:45:41+00:00spiiroinsimo.piiroinen@jollamobile.com
Make dsme message type identifiers unique
See merge request <a href="/mer-core/libiphb/merge_requests/1" data-original="mer-core/libiphb!1" data-link="false" data-link-reference="false" data-project="704" data-merge-request="2570" data-project-path="mer-core/libiphb" data-iid="1" data-mr-title="Make dsme message type identifiers unique" data-reference-type="merge_request" data-container="body" data-placement="bottom" title="" class="gfm gfm-merge_request">!1</a>https://git.sailfishos.org/mer-core/libiphb/commit/6649493ec3d7b7f62a3f13be482175fd3f088d7d[dsme] Make dsme message type identifiers unique. JB#385002018-03-29T15:00:29+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
There were non-unique dsme message type identifiers:
0x00000320 = SET_THERMAL_STATUS = BATTERY_EMPTY_IND
0x00000506 = PROCESSWD_PING = PROCESSWD_PONG
Add how-to instructions in every header that defines message types to
make it less likely that similar problems arise again in the future.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="99"><a href="https://git.sailfishos.org/spiiroin" title="simo.piiroinen@jollamobile.com"><img alt="spiiroin's avatar" src="https://secure.gravatar.com/avatar/24d5606cc6128281712262f693ccaacd?s=32&amp;d=identicon" class="avatar s16 avatar-inline" title="spiiroin"></a><a href="https://git.sailfishos.org/spiiroin" title="simo.piiroinen@jollamobile.com">Simo Piiroinen</a> &lt;<a href="mailto:simo.piiroinen@jollamobile.com" title="simo.piiroinen@jollamobile.com">simo.piiroinen@jollamobile.com</a>&gt;</span>https://git.sailfishos.org/mer-core/libiphb/commit/5db3ab70268933369fbfc90e8ca3fd00b774c66bBump libiphb version to 1.2.42015-06-01T17:55:36+03:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/5838b942651b7a778fa9b7cc9ed81357ce0f5f12Merge pull request #12 from spiiroin/mer1005_enable_extra_warnings2015-06-01T17:52:29+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
Enable extra compilation warningshttps://git.sailfishos.org/mer-core/libiphb/commit/4e8ee2f1005ed9cc7e58959d01b4bf859152fcefFix timeout calculations in iphb_wait2()2015-05-18T16:17:57+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
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#1005https://git.sailfishos.org/mer-core/libiphb/commit/e63c2b671d7faeb51917bcf8a011622186f57066Fix warnings about missing structure initializers2015-05-18T15:44:18+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
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#1005https://git.sailfishos.org/mer-core/libiphb/commit/e379fe885d3ee2c09a4ab9dad529f88986eeb35fFix warnings about unused callback function parameters2015-05-18T15:34:21+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
The parameters are unused on purpose and can be ignored.
[compilation] Fix warnings about unused parameters. Contributes to MER#1005https://git.sailfishos.org/mer-core/libiphb/commit/84e311061ad25d6bd9fc000541c3afaa7299f2b5Enable extra compilation warnings2015-05-18T15:30:50+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
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#1005https://git.sailfishos.org/mer-core/libiphb/commit/2d8cf23265ee91d53e619564751d90e1caedc505Bump libiphb version to 1.2.32015-03-15T11:50:38+02:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/f44357599d1c2db83667f578576605a7aaff7247Merge pull request #11 from spiiroin/jb26919_remove_yaml2015-03-15T11:48:21+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
Remove old spectacle cruft.
... and package content changes to be dealt separately if/when needed.https://git.sailfishos.org/mer-core/libiphb/commit/4d30dc9286473e1ab136a8e87655dc6a8bade0d4[packaging] Remove old spectacle cruft. Fixes JB#269192015-03-15T00:10:13+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
We don't use spectacle anymore.
Remove the yaml-file and associated cruft.https://git.sailfishos.org/mer-core/libiphb/commit/8089d1ce8eb55c2aeb753f59ea6eb2f03ee6f411Bump libiphb version to 1.2.22015-03-03T14:54:11+02:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/1ad0783eb29aaa672b4681250932a87a4aee9d8bMerge pull request #10 from spiiroin/jb26784_remove_broken_test2015-03-03T14:51:35+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
Remove unuseful extra long wait from ranged waits testhttps://git.sailfishos.org/mer-core/libiphb/commit/39b733a3137172c16c8f12bd3d5213d8f4c205edRemove unuseful extra long wait from ranged waits test2015-03-03T11:16:52+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
The code was used during implementation of passing long delay times to
daemon side and got committed accidentally. Now it makes the test case
fail every time and take ages to reach completion.
Remove extra long wakeup timer that has no chances of triggering.
[libiphb] Remove unuseful extra long wait from ranged waits test. Fixes JB#26784https://git.sailfishos.org/mer-core/libiphb/commit/f6497488fe6ef4b85895e6d70644fd34ef5bc795Bump libiphb version to 1.2.12014-09-23T08:47:15+03:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/0b34973256cb95ced3a13c0d529ac8d70b455cbaMerge pull request #9 from spiiroin/empty_wait_cancels2014-09-23T08:28:44+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
Allow canceling of iphb wakeups by iphb_wait() with zero wakeup rangehttps://git.sailfishos.org/mer-core/libiphb/commit/61874d7a1c68c045ae325504b08b193f6ca8e06fAllow canceling of iphb wakeups by iphb_wait() with zero wakeup range2014-09-22T11:56:39+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
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#20629https://git.sailfishos.org/mer-core/libiphb/commit/ae3c7722befe9697ec4e4211e78e4dab381c7becBump libiphb version to 1.2.02014-03-24T12:42:36+02:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/0a5423f83b386f890c4afc19263c57470d446283Merge pull request #8 from spiiroin/licenses2014-03-24T11:33:59+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
Use LGPLv2.1https://git.sailfishos.org/mer-core/libiphb/commit/5e356e2eee6424606c5529ceb709f437ca1445a2Set COPYING to GNU Lesser General Public License, version 2.12014-03-24T11:21:09+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
Already in the initial commit every C and python source file refers to
LGPL v2.1. There is no code that refers to GPL.
Replaced existing COPYING file that contained GPL license with LGPL v2.1
license text retrieved from:
<a href="https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt" rel="nofollow noreferrer noopener" target="_blank">https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</a>
[libiphb] Set COPYING to GNU Lesser General Public License, version 2.1https://git.sailfishos.org/mer-core/libiphb/commit/a23c871807aee67ca5fdfc2db309e07fb1edd270Use LGPLv2.1 license for hbtest32014-03-24T11:21:08+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
The license was supposed to be the same as the other code has,
i.e. "LGPLv2.1". Due to copy paste error "LGPLv2" got applied.
[tests] Use LGPLv2.1 license for hbtest3https://git.sailfishos.org/mer-core/libiphb/commit/4c532acaf7243b9fa952aeaf7c1f0dce1d77f3b3Merge pull request #7 from spiiroin/32bit_iphb_ranges2014-03-24T11:19:48+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
Support 32bit iphb wakeup rangeshttps://git.sailfishos.org/mer-core/libiphb/commit/aa6ffa7483ddbc7cbff3aa447f886d26fd4a2ce2Clarify why the request version field is set to one2014-03-21T18:23:21+02:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/a7a7472b7159e8b283e578465cfc026c41a3dea1Update hbtest3 to use the 32bit iphb wakeup ranges2014-03-21T17:36:53+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
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.https://git.sailfishos.org/mer-core/libiphb/commit/2b43bf7ce6344063ffd7c39f2c48f23e8cddab7dSupport 32bit iphb wakeup ranges2014-03-21T16:37:13+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
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#16116https://git.sailfishos.org/mer-core/libiphb/commit/fd2d0f70d3b2c6ecb023b812d1d2728c19f12c1bMerge pull request #6 from spiiroin/dsme_internal_wakeups2013-11-22T00:54:22-08:00Simo Piiroinensimo.piiroinen@jollamobile.com
Add wakeup field to iphb wait request datahttps://git.sailfishos.org/mer-core/libiphb/commit/dae40050a0a04c70dbd42786515e301ce3bb076eAdd wakeup field to iphb wait request data2013-11-21T14:56:09+02:00Simo Piiroinensimo.piiroinen@jollamobile.com
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 datahttps://git.sailfishos.org/mer-core/libiphb/commit/620b46c1fe2da5ecbdd0f3fb0ebf41b72fd41b53Bump libiphb version to 1.0.22013-10-10T18:31:23+03:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/8f5c41e169d0919a9d8ce8c7abb8bab2400bae14Merge pull request #5 from spiiroin/time_source2013-10-10T08:16:06-07:00Simo Piiroinensimo.piiroinen@jollamobile.com
Use system time for timing wakeupshttps://git.sailfishos.org/mer-core/libiphb/commit/36cf1a48fe22d3c3066d8a9c98c82cbd286a0b59Use system time for timing wakeups2013-10-10T15:47:15+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
Monotonic time might not advance in suspend.
System time could change during test.
Choose lesser of the two evils.
[tests] Use system time for timing wakeupshttps://git.sailfishos.org/mer-core/libiphb/commit/7186422bd83d10bc7e7c9b87db76fb2b53a99418Adjust timing of overlapping wakeups test case2013-10-10T15:40:45+03:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/0e6517f1b6b22aacf3cab69e0debd52892b7e2f1Bump libiphb version to 1.0.12013-06-07T09:27:42+03:00Simo Piiroinensimo.piiroinen@jollamobile.comhttps://git.sailfishos.org/mer-core/libiphb/commit/3806fa0486c5b1ffb2a6235293dce89ba96e8cddMerge pull request #4 from mkosola/master2013-06-06T23:19:14-07:00Simo Piiroinensimo.piiroinen@jollamobile.com
Add tests.xmlhttps://git.sailfishos.org/mer-core/libiphb/commit/774b32f344eaa338454f37831eaa84c8cffdd844Add tests xml for automated tests2013-06-06T10:50:23+03:00Matti Kosolamatti.kosola@jollamobile.com
[tests] Add tests.xml
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="56"><a href="https://git.sailfishos.org/mkosola" title="matti.kosola@jollamobile.com"><img alt="Matti Kosola's avatar" src="https://secure.gravatar.com/avatar/42739390a27c08e9ca0a1683d599b239?s=32&amp;d=identicon" class="avatar s16 avatar-inline" title="Matti Kosola"></a><a href="https://git.sailfishos.org/mkosola" title="matti.kosola@jollamobile.com">Matti Kosola</a> &lt;<a href="mailto:matti.kosola@jollamobile.com" title="matti.kosola@jollamobile.com">matti.kosola@jollamobile.com</a>&gt;</span>https://git.sailfishos.org/mer-core/libiphb/commit/588da8eb98c8525485762c991466d2cdc1e7e929Merge pull request #3 from spiiroin/hbtest32013-06-06T00:03:44-07:00Matti Kosolamatti.kosola@jollamobile.com
Add new utility for testing iphb timershttps://git.sailfishos.org/mer-core/libiphb/commit/8bcf64b742f77d0e0b529bf1b5b5177bee15aa56Apply a less strict version check for the spec file2013-06-05T16:08:39+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
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 filehttps://git.sailfishos.org/mer-core/libiphb/commit/dd9755749d87b9989dd5e9ed0dd6f30486f271eaAdd new utility for testing iphb timers2013-06-05T16:06:09+03:00Simo Piiroinensimo.piiroinen@jollamobile.com
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