]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix a typo in the CUPS Programming Manual (Issue #5042)
authorMichael Sweet <michael.r.sweet@gmail.com>
Tue, 4 Jul 2017 13:57:33 +0000 (09:57 -0400)
committerMichael Sweet <michael.r.sweet@gmail.com>
Tue, 4 Jul 2017 13:57:33 +0000 (09:57 -0400)
CHANGES.md
cups/cupspm.md
doc/help/cupspm.epub
doc/help/cupspm.html

index b5a621372439da3f5e4d5ab9a1fcd97fb282c008..5d2bedd5dfd17c847d3860b781429520e7ab78ff 100644 (file)
@@ -4,6 +4,7 @@ CHANGES - 2.2.5 - 2017-07-04
 CHANGES IN CUPS V2.2.5
 ----------------------
 
+- Fixed a typo in the CUPS Programming Manual (Issue #5042)
 - Fixed RPM packaging issue (Issue #5043, Issue #5044)
 - Fixed an issue with Chinese localizations on macOS (rdar://32419311)
 
index 3c81a444bd23d3c7a3a1a12a3970ea4985c5aa93..b7751d85b40df533b4dfbf35adf3fcf1658ec23f 100644 (file)
@@ -925,7 +925,7 @@ their values:
                                  IPP_TAG_ENUM)) != NULL)
     {
       printf("printer-state=%s\n",
-             ippTagString("printer-state", ippGetInteger(attr, 0)));
+             ippEnumString("printer-state", ippGetInteger(attr, 0)));
     }
     else
       puts("printer-state=unknown");
@@ -952,7 +952,7 @@ The `ippGetCount` function returns the number of values in an attribute.
 The `ippGetInteger` and `ippGetString` functions return a single integer or
 string value from an attribute.
 
-The `ippTagString` function converts a enum value to its keyword (string)
+The `ippEnumString` function converts a enum value to its keyword (string)
 equivalent.
 
 Once you are done using the IPP response message, free it using the `ippDelete`
index 91b73d947adc713cb0762c4dd2123957a1eddf4b..53ec281158ee77e8ccf88f9c6a8713f0e829cc73 100644 (file)
Binary files a/doc/help/cupspm.epub and b/doc/help/cupspm.epub differ
index d0d660018ad4acd6d090563b0d666e6f130648f7..e690588a1ffc5fa7b53be779cf0cd51e2af9c0d9 100644 (file)
@@ -1098,7 +1098,7 @@ if ((attr = ippFindAttribute(response, &quot;printer-state&quot;,
                              IPP_TAG_ENUM)) != NULL)
 {
   printf(&quot;printer-state=%s\n&quot;,
-         ippTagString(&quot;printer-state&quot;, ippGetInteger(attr, 0)));
+         ippEnumString(&quot;printer-state&quot;, ippGetInteger(attr, 0)));
 }
 else
   puts(&quot;printer-state=unknown&quot;);
@@ -1122,7 +1122,7 @@ if ((attr = ippFindAttribute(response, &quot;printer-state-reasons&quot;,
 </code></pre>
     <p>The <code>ippGetCount</code> function returns the number of values in an attribute.</p>
     <p>The <code>ippGetInteger</code> and <code>ippGetString</code> functions return a single integer or string value from an attribute.</p>
-    <p>The <code>ippTagString</code> function converts a enum value to its keyword (string) equivalent.</p>
+    <p>The <code>ippEnumString</code> function converts a enum value to its keyword (string) equivalent.</p>
     <p>Once you are done using the IPP response message, free it using the <code>ippDelete</code> function:</p>
     <pre><code>ippDelete(response);
 </code></pre>