summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-varlink/sd-varlink-idl.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sd-varlink: mark functions that can take 'more' flag in IDL structures with ↵Lennart Poettering2024-10-021-23/+45
| | | | | | | | | | | | | | | an explicit flag Let's mark functions that accept the 'more' flag explicitly for that, and validate for this explicitly. This is preparation for https://github.com/varlink/varlink.github.io/issues/26, if we get that one day. Let's make sure that from day #1 we have this info available even if we don't generate this in the IDL for now. Also enables the two flags for all interfaces we export that use the logic.
* terminal-util: split out color macros/helpers into its own headerLennart Poettering2024-07-191-0/+1
| | | | | | | | | This is a lot of stuff, and sometimes quite wild, let's turn this into its own header. All stuff color-related that just generates sequences is now in ansi-color.h (no .c file!), and everything more complex that probes/ineracts with terminals remains in termina-util.[ch]
* sd-json/sd-varlink: downgrade assert() → assert_ret()Lennart Poettering2024-07-161-1/+1
| | | | | | | Our usual rule is that we are more lenient towards misuse for public users of our code than for ourselves. Or in other words: when validating parameters of our public functions (those starting with sd_…) we prefer assert_ret() over assert().
* sd-varlink: make our internal Varlink API public as sd-varlink.[ch]Lennart Poettering2024-07-161-0/+1929
It's time. sd-json was already done earlier in this cycle, let's now make sd-varlink public too. This is mostly just a search/replace job of epical proportions. I left some functions internal (mostly IDL handling), and I turned some static inline calls into regular calls.