Skip to content

Commit 7e70b2b

Browse files
committed
Add ippFile tests and fix IPP file reader code in test.
1 parent a5438f5 commit 7e70b2b

4 files changed

Lines changed: 342 additions & 127 deletions

File tree

cups/http.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2583,7 +2583,9 @@ httpWait(http_t *http, // I - HTTP connection
25832583
//
25842584
// 'httpWrite()' - Write data to a HTTP connection.
25852585
//
2586-
// TODO: Expand this documentation to talk about chunking.
2586+
// This function writes data to a HTTP connection. When using chunking or
2587+
// content coding, specifying a "length" of `0` will complete the current HTTP
2588+
// request/response message.
25872589
//
25882590

25892591
ssize_t // O - Number of bytes written

cups/ipp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ extern size_t ippAttributeString(ipp_attribute_t *attr, char *buffer, size_t bu
540540
extern bool ippContainsInteger(ipp_attribute_t *attr, int value) _CUPS_PUBLIC;
541541
extern bool ippContainsString(ipp_attribute_t *attr, const char *value) _CUPS_PUBLIC;
542542
extern ipp_attribute_t *ippCopyAttribute(ipp_t *dst, ipp_attribute_t *attr, bool quickcopy) _CUPS_PUBLIC;
543-
extern bool ippCopyAttributes(ipp_t *dst, ipp_t *src, bool quickcopy, ipp_copy_cb_t cb, void *context) _CUPS_PUBLIC;
543+
extern bool ippCopyAttributes(ipp_t *dst, ipp_t *src, bool quickcopy, ipp_copy_cb_t cb, void *cb_data) _CUPS_PUBLIC;
544544
extern char *ippCopyCredentialsString(ipp_attribute_t *attr) _CUPS_PUBLIC;
545545
extern cups_array_t *ippCreateRequestedArray(ipp_t *request) _CUPS_PUBLIC;
546546

0 commit comments

Comments
 (0)