Skip to content

Commit 73dc31f

Browse files
committed
Fix typo in documentation (Issue #113)
1 parent dcdf9fc commit 73dc31f

4 files changed

Lines changed: 29 additions & 4 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ libcups v3.0.0 (YYYY-MM-DD)
66

77
- Added `cupsOAuthGetJWKS` and `cupsOAuthGetUserId` APIs.
88
- Added `httpGetCookieValue` and `httpGetSecurity` APIs.
9+
- Updated documentation (Issue #113)
910
- Updated the `cupsOAuth` APIs to support sharing of some OAuth values between
1011
the system (root) and per-user cache values.
1112
- Updated the `cupsJWTNew` API to accept an optional JSON claims object.
1213
- Updated the `httpSetCookie` API to support multiple "Set-Cookie:" header
1314
values.
14-
- Updated `ippfind` to use `cupsGetClock` API.
15+
- Updated `ippfind` to use the `cupsGetClock` API.
1516
- Fixed return values of `ippDateToTime` when the timezone isn't GMT.
1617
- Fixed a potential timing issue with `cupsEnumDests`.
1718
- Fixed a bug in the Avahi implementation of `cupsDNSSDBrowseNew`.

cups/dest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static void dnssd_error_cb(void *cb_data, const char *message);
152152
// returned unchanged. Adding a new instance of a destination creates
153153
// a copy of that destination's options.
154154
//
155-
// Use the @link cupsSaveDests@ function to save the updated list of
155+
// Use the @link cupsSetDests@ function to save the updated list of
156156
// destinations to the user's lpoptions file.
157157
//
158158

doc/cupspm.epub

194 Bytes
Binary file not shown.

doc/cupspm.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ <h2 class="title">Contents</h2>
524524
<li><a href="#cupsOAuthGetJWKS">cupsOAuthGetJWKS</a></li>
525525
<li><a href="#cupsOAuthGetMetadata">cupsOAuthGetMetadata</a></li>
526526
<li><a href="#cupsOAuthGetTokens">cupsOAuthGetTokens</a></li>
527+
<li><a href="#cupsOAuthGetUserId">cupsOAuthGetUserId</a></li>
527528
<li><a href="#cupsOAuthMakeAuthorizationURL">cupsOAuthMakeAuthorizationURL</a></li>
528529
<li><a href="#cupsOAuthMakeBase64Random">cupsOAuthMakeBase64Random</a></li>
529530
<li><a href="#cupsOAuthSaveClientData">cupsOAuthSaveClientData</a></li>
@@ -1982,7 +1983,7 @@ <h4 class="discussion">Discussion</h4>
19821983
returned unchanged. Adding a new instance of a destination creates
19831984
a copy of that destination's options.<br>
19841985
<br>
1985-
Use the <a href="#cupsSaveDests"><code>cupsSaveDests</code></a> function to save the updated list of
1986+
Use the <a href="#cupsSetDests"><code>cupsSetDests</code></a> function to save the updated list of
19861987
destinations to the user's lpoptions file.</p>
19871988
<h3 class="function"><a id="cupsAddDestMediaOptions">cupsAddDestMediaOptions</a></h3>
19881989
<p class="description">Add the option corresponding to the specified media size.</p>
@@ -5559,11 +5560,13 @@ <h4 class="discussion">Discussion</h4>
55595560
<h3 class="function"><a id="cupsJWTNew">cupsJWTNew</a></h3>
55605561
<p class="description">Create a new, empty JSON Web Token.</p>
55615562
<p class="code">
5562-
<a href="#cups_jwt_t">cups_jwt_t</a> *cupsJWTNew(<span class="reserved">const</span> <span class="reserved">char</span> *type);</p>
5563+
<a href="#cups_jwt_t">cups_jwt_t</a> *cupsJWTNew(<span class="reserved">const</span> <span class="reserved">char</span> *type, <a href="#cups_json_t">cups_json_t</a> *claims);</p>
55635564
<h4 class="parameters">Parameters</h4>
55645565
<table class="list"><tbody>
55655566
<tr><th>type</th>
55665567
<td class="description">JWT type or <code>NULL</code> for default (&quot;JWT&quot;)</td></tr>
5568+
<tr><th>claims</th>
5569+
<td class="description">JSON claims or <code>NULL</code> for empty</td></tr>
55675570
</tbody></table>
55685571
<h4 class="returnvalue">Return Value</h4>
55695572
<p class="description">JWT object</p>
@@ -6213,6 +6216,27 @@ <h4 class="discussion">Discussion</h4>
62136216
and any user ID information can be obtained using the
62146217
<a href="#cupsOAuthCopyRefreshToken"><code>cupsOAuthCopyRefreshToken</code></a> and <a href="#cupsOAuthCopyUserId"><code>cupsOAuthCopyUserId</code></a> functions
62156218
respectively.</p>
6219+
<h3 class="function"><span class="info">&#160;CUPS 2.5&#160;</span><a id="cupsOAuthGetUserId">cupsOAuthGetUserId</a></h3>
6220+
<p class="description">Get the user ID token associated with the given access token.</p>
6221+
<p class="code">
6222+
<a href="#cups_jwt_t">cups_jwt_t</a> *cupsOAuthGetUserId(<span class="reserved">const</span> <span class="reserved">char</span> *auth_uri, <a href="#cups_json_t">cups_json_t</a> *metadata, <span class="reserved">const</span> <span class="reserved">char</span> *access_token);</p>
6223+
<h4 class="parameters">Parameters</h4>
6224+
<table class="list"><tbody>
6225+
<tr><th>auth_uri</th>
6226+
<td class="description">Authorization Server URL</td></tr>
6227+
<tr><th>metadata</th>
6228+
<td class="description">Authorization Server metadata</td></tr>
6229+
<tr><th>access_token</th>
6230+
<td class="description">Access (Bearer) token</td></tr>
6231+
</tbody></table>
6232+
<h4 class="returnvalue">Return Value</h4>
6233+
<p class="description">Identification information or <code>NULL</code> if none</p>
6234+
<h4 class="discussion">Discussion</h4>
6235+
<p class="discussion">This function retrieves the user ID token associated with a given access
6236+
token. The user ID information is cached until the token expires to minimize
6237+
the overhead of communicating with the Authorization Server.
6238+
6239+
</p>
62166240
<h3 class="function"><a id="cupsOAuthMakeAuthorizationURL">cupsOAuthMakeAuthorizationURL</a></h3>
62176241
<p class="description">Make an authorization URL.</p>
62186242
<p class="code">

0 commit comments

Comments
 (0)