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)
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");
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`
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");
</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>