From: Michael Sweet Date: Tue, 4 Jul 2017 13:57:33 +0000 (-0400) Subject: Fix a typo in the CUPS Programming Manual (Issue #5042) X-Git-Tag: v2.2.5~106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db5424ea51f39aed4b7a6ec21db87ec246075fdc;p=thirdparty%2Fcups.git Fix a typo in the CUPS Programming Manual (Issue #5042) --- diff --git a/CHANGES.md b/CHANGES.md index b5a6213724..5d2bedd5df 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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) diff --git a/cups/cupspm.md b/cups/cupspm.md index 3c81a444bd..b7751d85b4 100644 --- a/cups/cupspm.md +++ b/cups/cupspm.md @@ -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` diff --git a/doc/help/cupspm.epub b/doc/help/cupspm.epub index 91b73d947a..53ec281158 100644 Binary files a/doc/help/cupspm.epub and b/doc/help/cupspm.epub differ diff --git a/doc/help/cupspm.html b/doc/help/cupspm.html index d0d660018a..e690588a1f 100644 --- a/doc/help/cupspm.html +++ b/doc/help/cupspm.html @@ -1098,7 +1098,7 @@ if ((attr = ippFindAttribute(response, "printer-state", 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"); @@ -1122,7 +1122,7 @@ if ((attr = ippFindAttribute(response, "printer-state-reasons",

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) equivalent.

+

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 function:

ippDelete(response);