nirenjan
f5331cdef3
Use localtime_r instead of localtime
2021-08-03 13:04:46 -07:00
nirenjan
e968656672
Fix Cflags and add libx52util.pc
2021-08-03 12:53:26 -07:00
nirenjan
446fec3b9f
Add libx52io pkgconfig file
2021-08-03 12:50:09 -07:00
nirenjan
f6cfc59cb6
Fix libx52 pkgconfig file
2021-08-03 12:42:15 -07:00
nirenjan
dc72e43f1e
Squashed 'lib/pinelog/' changes from bdee493..27a5eab
...
27a5eab Use localtime_r instead of localtime
git-subtree-dir: lib/pinelog
git-subtree-split: 27a5eab8b75c18d13ec0b69c01deaa82c996cf57
2021-08-03 11:26:06 -07:00
nirenjan
d9c1c80163
Merge commit 'dc72e43f1e43a0149c48a684d3b5fd40441ef83c'
2021-08-03 11:26:06 -07:00
nirenjan
699f663df3
Use TEST_DEF as a function macro, instead of #if/#endif blocks
2021-08-02 10:35:37 -07:00
nirenjan
3efdce5abe
Fix make distcheck
2021-08-01 23:56:37 -07:00
nirenjan
38917ed6e5
Add documentation for x52d
2021-08-01 23:47:24 -07:00
nirenjan
78e4f3334f
Merge branch 'daemon'
2021-08-01 03:01:24 -07:00
nirenjan
e358aa9688
Update ChangeLog.md
2021-08-01 03:00:21 -07:00
nirenjan
2cdf22b8c1
Remove dependency on faketime
2021-07-30 13:31:00 -07:00
nirenjan
dbd683a98b
Add vendor command test cases
...
This change adds test cases to validate the `raw` command in x52cli.
2021-07-30 12:02:02 -07:00
nirenjan
377aea90b5
Remove spurious test cases
...
Prior to this change, the tests file contained every test that was in
the original script based test suite. However, we don't need to test
every single scenario within libx52, since those are already handled in
the libx52 specific tests. This also causes a slow compilation, since
the tests are written as a series of macros, and the result is a 2000+
line file before preprocessing.
This change removes some of the spurious test cases, and simply checks
that the parameters passed to the corresponding libx52 function are as
expected for a few test cases.
2021-07-30 11:48:14 -07:00
nirenjan
9047485204
Include CLI tests file into distribution
2021-07-30 03:09:21 -07:00
nirenjan
23ff7c7202
Don't use TESTS when updating check_PROGRAMS
2021-07-30 03:04:12 -07:00
nirenjan
51913094cb
Use cmocka to test CLI
2021-07-30 03:03:16 -07:00
nirenjan
abdf47d721
Delete obsolete files
2021-07-29 23:55:07 -07:00
nirenjan
ac68ee07e5
Use non-recursive Automake
2021-07-29 23:53:21 -07:00
nirenjan
23fa0daf4f
Move evtest to top level
2021-07-29 22:26:15 -07:00
nirenjan
a94b079cf5
Move x52test to top level
2021-07-29 22:14:48 -07:00
nirenjan
711e4385c1
Move x52cli to top level
2021-07-29 22:11:19 -07:00
nirenjan
3b2378a54b
Move libusbx52 to top level
2021-07-29 21:57:19 -07:00
nirenjan
7f30863e5d
Move libx52io to top level
2021-07-29 21:51:11 -07:00
nirenjan
34adeaec45
Move libx52util to top level
2021-07-29 21:47:07 -07:00
nirenjan
e3bccd3ac3
Move libx52 to top level
2021-07-29 21:41:07 -07:00
nirenjan
0eeab91a8d
Remove libx52 as a dependency of libx52util
2021-07-29 21:23:00 -07:00
nirenjan
8db1be2ba8
Squashed 'lib/pinelog/' changes from 321d9aa..bdee493
...
bdee493 Add preprocessor definition to disable traces
5b2686a Fix pinelog builds on MacOS
48bd049 Merge commit '9fa1a428a45eabff0122e199a687068f0e6280dd' into daemon
68d5aae Update README to include destructor attribute
git-subtree-dir: lib/pinelog
git-subtree-split: bdee493f0357eb0f3f6d4b792140de78999c828e
2021-07-27 17:02:49 -07:00
nirenjan
7a4d63adc1
Merge commit '8db1be2ba8dc66d3abf69a8360990c659bf28f16' into daemon
2021-07-27 17:02:49 -07:00
nirenjan
06b8d15dda
Make stringification function names similar to libx52io
2021-07-27 09:34:57 -07:00
nirenjan
50906b0a92
Ensure x52d.conf is included in the distribution tarball
2021-07-27 03:07:52 -07:00
nirenjan
009fba0151
Install x52d.conf to sysconfdir
2021-07-27 02:26:32 -07:00
nirenjan
386174d2a4
Update package version
2021-07-27 02:18:35 -07:00
nirenjan
d003e7f7c4
Make daemon use libx52 stringification functions
2021-07-27 02:13:59 -07:00
nirenjan
018852a012
Add stringification functions to libx52
2021-07-27 02:00:39 -07:00
nirenjan
77606ae906
Use lookup table to implement *_strerror
2021-07-27 01:35:31 -07:00
nirenjan
602071612d
Add DoxygenLayout.xml to distribution
2021-07-26 17:07:11 -07:00
nirenjan
f422202ec8
Update translations and logs for setting config parameters
2021-07-26 11:02:38 -07:00
nirenjan
bd2dbbb9cc
Make thread startup and shutdown logs as INFO
2021-07-26 10:30:29 -07:00
nirenjan
52232b1a14
Stop device threads on daemon termination
2021-07-26 10:12:23 -07:00
nirenjan
e0d15961e0
Add signal handlers to handle termination and reload
2021-07-25 15:39:20 -07:00
nirenjan
e4d1b6aff2
Add update thread enable flag
...
Prior to this change, the update thread was only checking on
device_update_needed. However, this causes an issue when calling any of
the set methods where the update thread fires, fails to find a device,
and signals the acquisition thread every 50 ms, since the update flag
was never cleared.
This change adds a thread enable flag for the update thread. The update
thread will check that both the thread enable flag and the update needed
flag are set before proceeding with the call to libx52_update.
2021-07-25 08:42:33 -07:00
nirenjan
9941234bbe
Replace printf with PINELOG_DEBUG in main
2021-07-25 08:42:12 -07:00
nirenjan
9970a8edc4
Fix key names for clock formats in default configuration file
2021-07-23 14:31:58 -07:00
nirenjan
2cecd1890a
Allow set_led_state calls to ignore unsupported feature
2021-07-23 14:31:14 -07:00
nirenjan
bd682cd5c7
Add LED state and brightness functionality
2021-07-23 14:24:22 -07:00
nirenjan
88955418b8
Fix trace log to print section.key
2021-07-23 14:23:11 -07:00
nirenjan
0fa638fa16
Add support for clock and date format
2021-07-23 13:43:21 -07:00
nirenjan
499cad666f
Add clock update functionality
2021-07-23 10:13:18 -07:00
nirenjan
ae13480717
Allow libx52 calls to return TRY_AGAIN
...
Some libx52 APIs, notably the clock related ones, can return
LIBX52_ERROR_TRY_AGAIN. This is not a real error, but it is useful
information. It indicates to the application that there is no change
applied to the internal state, and that it should wait until trying
again.
Given that the clock thread calls the libx52_set_clock method every
second, treating the TRY_AGAIN state as a failure and logging it causes
a lot of spurious noise in the logs. This change ensures that the API
returns a real error before logging it.
2021-07-23 09:43:02 -07:00