Skip to content

Commit 21fb47b

Browse files
committed
CDRIVER-1030 document mongoc_host_list_t
1 parent 4510ce2 commit 21fb47b

File tree

4 files changed

+41
-4
lines changed

4 files changed

+41
-4
lines changed

doc/mongoc_cursor_get_host.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mongoc_cursor_get_host (mongoc_cursor_t *cursor,
2222
<title>Parameters</title>
2323
<table>
2424
<tr><td><p>cursor</p></td><td><p>A <code xref="mongoc_cursor_t">mongoc_cursor_t</code>.</p></td></tr>
25-
<tr><td><p>host</p></td><td><p>A mongoc_host_list_t.</p></td></tr>
25+
<tr><td><p>host</p></td><td><p>A <code xref="mongoc_host_list_t">mongoc_host_list_t</code>.</p></td></tr>
2626
</table>
2727
</section>
2828

doc/mongoc_host_list_t.page

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0"?>
2+
3+
<page id="mongoc_host_list_t"
4+
type="guide"
5+
style="class"
6+
xmlns="http://projectmallard.org/1.0/"
7+
xmlns:api="http://projectmallard.org/experimental/api/"
8+
xmlns:ui="http://projectmallard.org/experimental/ui/">
9+
<info>
10+
<link type="guide" xref="index#api-reference" />
11+
</info>
12+
<title>mongoc_host_list_t</title>
13+
<section id="description">
14+
<title>Synopsis</title>
15+
<code mime="text/x-csrc"><![CDATA[typedef struct
16+
{
17+
mongoc_host_list_t *next;
18+
char host [BSON_HOST_NAME_MAX + 1];
19+
char host_and_port [BSON_HOST_NAME_MAX + 7];
20+
uint16_t port;
21+
int family;
22+
void *padding [4];
23+
} mongoc_host_list_t;
24+
]]></code>
25+
</section>
26+
27+
<section id="desc">
28+
<title>Description</title>
29+
<p>The host and port of a MongoDB server. Can be part of a linked list: for example the return value of <code xref="mongoc_uri_get_hosts">mongoc_uri_get_hosts</code> when multiple hosts are provided in the MongoDB URI.</p>
30+
</section>
31+
32+
<section id="seealso">
33+
<title>See Also</title>
34+
<p><code xref="mongoc_uri_get_hosts">mongoc_uri_get_hosts</code> and <code xref="mongoc_cursor_get_host">mongoc_cursor_get_host</code>.</p>
35+
</section>
36+
37+
</page>

doc/mongoc_server_description_host.page

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mongoc_server_description_host (const mongoc_server_description_t *description);
3333

3434
<section id="return">
3535
<title>Returns</title>
36-
<p>A reference to the given server description's mongoc_host_list_t.</p>
36+
<p>A reference to the given server description's <code xref="mongoc_host_list_t">mongoc_host_list_t</code>.</p>
3737
</section>
3838

3939
</page>

doc/mongoc_uri_get_hosts.page

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ mongoc_uri_get_hosts (const mongoc_uri_t *uri);
2626

2727
<section id="description">
2828
<title>Description</title>
29-
<p>Fetches a linked list of hosts that were defined in the URI (the comman separated host section).</p>
29+
<p>Fetches a linked list of hosts that were defined in the URI (the comma-separated host section).</p>
3030
</section>
3131

3232
<section id="return">
3333
<title>Returns</title>
34-
<p>A linked list of hosts that should not be modified or freed.</p>
34+
<p>A linked list of <code xref="mongoc_host_list_t">mongoc_host_list_t</code> structures that should not be modified or freed.</p>
3535
</section>
3636

3737
</page>

0 commit comments

Comments
 (0)