Skip to content

Commit 354f3be

Browse files
committed
CDRIVER-2152 mistakes in GridFS file docs
1 parent b66a2f7 commit 354f3be

File tree

5 files changed

+5
-32
lines changed

5 files changed

+5
-32
lines changed

doc/api.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ API Reference
4343
mongoc_ssl_opt_t
4444
mongoc_stream_buffered_t
4545
mongoc_stream_file_t
46-
mongoc_stream_gridfs_t
4746
mongoc_stream_socket_t
4847
mongoc_stream_t
4948
mongoc_stream_tls_t

doc/mongoc_gridfs_file_t.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ This structure is NOT thread-safe and should only be used from one thread at a t
5656
mongoc_gridfs_file_set_metadata
5757
mongoc_gridfs_file_tell
5858
mongoc_gridfs_file_writev
59+
mongoc_stream_gridfs_new
5960

6061
Related
6162
-------

doc/mongoc_stream_gridfs_new.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ Parameters
1616

1717
* ``file``: A :symbol:`mongoc_gridfs_file_t`.
1818

19-
This function shall create a new :symbol:`mongoc_gridfs_file_t`. This function does not transfer ownership of ``file``. Therefore, ``file`` must remain valid for the lifetime of this stream.
19+
This function shall create a new :symbol:`mongoc_stream_t` to read from and write to a GridFS file. GridFS files are created with :symbol:`mongoc_gridfs_create_file` or :symbol:`mongoc_gridfs_create_file_from_stream`.
20+
21+
This function does not transfer ownership of ``file``. Therefore, ``file`` must remain valid for the lifetime of this stream.
2022

2123
Returns
2224
-------
2325

24-
A newly allocated :symbol:`mongoc_stream_gridfs_t` if successful, otherwise ``NULL``.
25-
26+
A newly allocated :symbol:`mongoc_stream_t` if successful, otherwise ``NULL``.

doc/mongoc_stream_gridfs_t.rst

Lines changed: 0 additions & 25 deletions
This file was deleted.

doc/mongoc_stream_t.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,3 @@ See Also
5252
:doc:`mongoc_stream_socket_t`
5353

5454
:doc:`mongoc_stream_tls_t`
55-
56-
:doc:`mongoc_stream_gridfs_t`
57-

0 commit comments

Comments
 (0)