From: Zbigniew Jędrzejewski-Szmek Date: Mon, 13 Jun 2022 09:02:54 +0000 (+0200) Subject: man: document sd_id128_string_equal() X-Git-Tag: v252-rc1~751^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=944c1243307ce002be2b297c45c59cb8d2c13c3a;p=thirdparty%2Fsystemd.git man: document sd_id128_string_equal() --- diff --git a/man/rules/meson.build b/man/rules/meson.build index 48da2f8f8c1..b1d1c5d5954 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -137,6 +137,7 @@ manpages = [ 'sd_id128_in_setv', 'sd_id128_is_allf', 'sd_id128_is_null', + 'sd_id128_string_equal', 'sd_id128_t'], ''], ['sd-journal', '3', [], ''], diff --git a/man/sd-id128.xml b/man/sd-id128.xml index 566cc2b595b..c869943ad72 100644 --- a/man/sd-id128.xml +++ b/man/sd-id128.xml @@ -28,6 +28,7 @@ SD_ID128_NULL SD_ID128_UUID_FORMAT_STR sd_id128_equal + sd_id128_string_equal sd_id128_in_set sd_id128_in_set_sentinel sd_id128_in_setv @@ -75,6 +76,12 @@ sd_id128_t b + + int sd_id128_string_equal + const char *a + sd_id128_t b + + int sd_id128_is_null sd_id128_t id @@ -200,6 +207,10 @@ int main(int argc, char **argv) { return 0; } + sd_id128_string_equal() is similar to sd_id128_equal(), + but the first ID is formatted as const char*. The same restrictions apply as to the first + argument of sd_id128_from_string(). + sd_id128_is_null() checks if an ID consists of only NUL bytes: