]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolve: several follow-ups for resolving service via varlink
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 17 Feb 2024 21:50:39 +0000 (06:50 +0900)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Feb 2024 21:13:07 +0000 (22:13 +0100)
commitc6c7c461a319ec29c6eeeacebc1ecd02bccb4f92
treecedf7ce69d108e5cbefbdfb9fe283af88baddbf5
parentd0a0059c214905595ffc9b0348ec8dfa88b49b6d
resolve: several follow-ups for resolving service via varlink

Follow-ups for e1634bb8321c5534a8e5d16b474c7e9d43ef3baa.

- Allow to call the method without "name" and "type".
- Allow to specify SD_RESOLVE_NO_TXT and SD_RESOLVE_NO_ADDRESS.
- Allow to provide multiple services, and fix memory leak.
- Rearrange the return value format.
- Encode TXT field with octescape() to make the field matches with the
  io.systemd.Resolve.Monitor interface.

Fixes #31371.
src/resolve/resolved-varlink.c
src/shared/varlink-io.systemd.Resolve.c
test/units/testsuite-75.sh