libx52/daemon
nirenjan 5fecdd3929 feat: Generate identifiers for communication
In order to improve security around the command processing, I plan to
upgrade the communication protocol to use a fixed structure with an
optional payload. As a first pass on this, I added a script to generate
the IDs automatically from the configuration, as well as a script to map
the module names and log levels to integer IDs.

This also replaces the manual lmap_* and array_get_index lookup tables,
so I don't have to always deal with creating an entry in constants.h and
command.c and making sure they are in sync.
2026-04-22 09:02:17 -07:00
..
tests Add test case for setting unknown configuration value 2022-09-22 22:14:44 -07:00
client.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
client.h refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
clock.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
clock.h refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
comm_client.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
comm_internal.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
command.c feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
command.h refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
config.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
config.def feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
config.h feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
config_dump.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
config_parser.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
config_registry.json feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
constants.h feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
crc32.c feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
crc32.h feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
crc32_test.c feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
daemon.dox Update daemon documentation to include notify socket 2022-09-21 20:08:58 -07:00
daemon_control.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
device.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
device.h refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
io.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
io.h refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
keyboard_layout.c feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
keyboard_layout.h feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
layout_format.h feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
layout_load.c feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
layout_load_test.c feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
layout_usage_allowlist.c feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
layout_usage_allowlist.h feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
layout_usage_allowlist_test.c feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
led.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
main.c feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
meson.build feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
module_defs.py feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
mouse.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
mouse.h refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
mouse_handler.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
mouse_test.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
name-id-map.c feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
name-id-map.h feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
notify.c refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
notify.h refactor: Rename daemon sources to remove x52d_ prefix 2026-04-03 23:50:18 -07:00
protocol.dox Update daemon protocol documentation 2023-01-04 10:07:20 -08:00
test_daemon_comm.py feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
x52d.conf feat: Add layout file parsing to x52d 2026-04-04 23:16:51 -07:00
x52d.service.in Revert "Enable verbose logging in systemd service" 2021-10-05 22:38:34 -07:00
x52d_gen_module.py feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
x52d_map_config.py feat: Generate identifiers for communication 2026-04-22 09:02:17 -07:00
x52dcomm-internal.h Move common socket code into x52d_comm_internal.c 2023-01-04 08:42:47 -08:00