]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document sd_id128_string_equal()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Jun 2022 09:02:54 +0000 (11:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Jun 2022 08:35:27 +0000 (10:35 +0200)
man/rules/meson.build
man/sd-id128.xml

index 48da2f8f8c1ccadb3c45ccc35b8c201fc47ca01e..b1d1c5d59545cb3588a462f27710e69c92fead6b 100644 (file)
@@ -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', [], ''],
index 566cc2b595bfa0a4c9757f0847789773c6e4791f..c869943ad721e1bb1a9f5aa6a7b41588eec99648 100644 (file)
@@ -28,6 +28,7 @@
     <refname>SD_ID128_NULL</refname>
     <refname>SD_ID128_UUID_FORMAT_STR</refname>
     <refname>sd_id128_equal</refname>
+    <refname>sd_id128_string_equal</refname>
     <refname>sd_id128_in_set</refname>
     <refname>sd_id128_in_set_sentinel</refname>
     <refname>sd_id128_in_setv</refname>
         <paramdef>sd_id128_t <parameter>b</parameter></paramdef>
       </funcprototype>
 
+      <funcprototype>
+        <funcdef>int <function>sd_id128_string_equal</function></funcdef>
+        <paramdef>const char *<parameter>a</parameter></paramdef>
+        <paramdef>sd_id128_t <parameter>b</parameter></paramdef>
+      </funcprototype>
+
       <funcprototype>
         <funcdef>int <function>sd_id128_is_null</function></funcdef>
         <paramdef>sd_id128_t <parameter>id</parameter></paramdef>
@@ -200,6 +207,10 @@ int main(int argc, char **argv) {
   return 0;
 }</programlisting>
 
+    <para><function>sd_id128_string_equal()</function> is similar to <function>sd_id128_equal()</function>,
+    but the first ID is formatted as <type>const char*</type>. The same restrictions apply as to the first
+    argument of <function>sd_id128_from_string()</function>.</para>
+
     <para><function>sd_id128_is_null()</function> checks if an ID consists of only <constant>NUL</constant>
     bytes:</para>