Skip to content

Commit

Permalink
Update documentation (Issue #99)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Feb 12, 2025
1 parent b1a512d commit 0d2f5cd
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 29 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ libcups v3.0rc4 (YYYY-MM-DD)
- Added `cupsCopyCredentialsPublicKey` API.
- Added `cupsGetClock` API.
- Added `cupsJWTLoadCredentials` API.
- Updated documentation (Issue #99)
- Updated the `ipptool` utility to support the `--bearer-token` and
`--client-name` options.
- Updated `cupsOAuthGetMetadata` to support Microsoft Azure/Entra OAuth
Expand Down
2 changes: 1 addition & 1 deletion cups/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Library Makefile for libcups.
#
# Copyright © 2021-2024 by OpenPrinting.
# Copyright © 2021-2025 by OpenPrinting.
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
Expand Down
10 changes: 6 additions & 4 deletions cups/cupspm.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: CUPS Programming Manual
author: Michael R Sweet
copyright: Copyright © 2021-2024 by OpenPrinting. All Rights Reserved.
copyright: Copyright © 2021-2025 by OpenPrinting. All Rights Reserved.
version: 3.0.0
...

Expand Down Expand Up @@ -1161,7 +1161,8 @@ ipp_file_t *file = ippFileNew(parent, attr_cb, error_cb, data);
The "parent" IPP data file pointer is typically used to support nested files and
is normally `NULL` for a new file. The "data" argument supplies your
application data to the callbacks. The "attr_cb" callback function is used to
filter IPP attributes; return `true` to include the attribute and `false` to ignore it:
filter IPP attributes; return `true` to include the attribute and `false` to
ignore it:

```c
bool
Expand Down Expand Up @@ -1208,7 +1209,8 @@ token_cb(ipp_file_t *file, void *cb_data, const char *token)
}
```
The "token" parameter contains the token to be processed. The callback can use the [`ippFileReadToken`](@@) function to read additional tokens from the file
The "token" parameter contains the token to be processed. The callback can use
the [`ippFileReadToken`](@@) function to read additional tokens from the file
and the [`ippFileExpandToken`](@@) function to expand any variables in the token
string. Return `false` to stop reading the file and `true` to continue. The
default `NULL` callback reports an unknown token error through the error
Expand Down Expand Up @@ -1256,7 +1258,7 @@ The CUPS 3.x library removes all of the deprecated and obsolete APIs from CUPS
2.x and earlier and makes other naming changes for consistency. As a result,
the CUPS 3.x library is no longer binary compatible with programs compiled
against the CUPS 2.x library and earlier, and some source code may need minor
changes to compile with the new library. This file describes the changes and
changes to compile with the new library. This chapter describes the changes and
how to migrate to the new library.


Expand Down
Binary file removed cups/cupspm.opacity
Binary file not shown.
Binary file modified cups/cupspm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 9 additions & 6 deletions cups/cupspm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions cups/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,14 @@ cupsSendRequest(http_t *http, // I - Connection to server or `CUPS_HTTP_DEFA
//
// 'cupsWriteRequestData()' - Write additional data after an IPP request.
//
// This function is used after @link cupsSendRequest@ to provide a PPD and
// after @link cupsStartDocument@ to provide a document file.
// This function writes a buffer of additional data after an IPP request and is
// used after calling the @link cupsSendRequest@ and/or @link cupsStartDocument@
// functions, typically to send all or part of a document or file. Each call
// appends the given buffer of data to the request, allowing an application to
// stream content to the receiving IPP server.
//
// Call the @link cupsGetResponse@ or @link cupsFinishDestDocument@ functions
// to complete the current request and get the corresponding response.
//

http_status_t // O - `HTTP_STATUS_CONTINUE` if OK or HTTP status on error
Expand Down
Binary file modified doc/cupspm.epub
Binary file not shown.
95 changes: 79 additions & 16 deletions doc/cupspm.html

Large diffs are not rendered by default.

0 comments on commit 0d2f5cd

Please sign in to comment.