@@ -33,11 +33,11 @@ Include and link libmongoc in your C program
33
33
Include mongoc.h
34
34
^^^^^^^^^^^^^^^^
35
35
36
- All libmongoc's functions and types are available in one header file. Simply include ``mongoc.h ``:
36
+ All libmongoc's functions and types are available in one header file. Simply include ``mongoc/mongoc .h ``:
37
37
38
38
.. code-block :: c
39
39
40
- #include <mongoc.h>
40
+ #include <mongoc/mongoc .h>
41
41
42
42
CMake
43
43
'''''
@@ -348,7 +348,7 @@ When finished, ensure that allocated structures are freed by using their respect
348
348
.. code-block :: c
349
349
350
350
#include <bson/bson.h>
351
- #include <mongoc.h>
351
+ #include <mongoc/mongoc .h>
352
352
#include <stdio.h>
353
353
354
354
int
@@ -431,7 +431,7 @@ This first example uses an empty query specifier to find all documents in the da
431
431
.. code-block :: c
432
432
433
433
#include <bson/bson.h>
434
- #include <mongoc.h>
434
+ #include <mongoc/mongoc .h>
435
435
#include <stdio.h>
436
436
437
437
int
@@ -488,7 +488,7 @@ To look for a specific document, add a specifier to ``query``. This example adds
488
488
.. code-block :: c
489
489
490
490
#include <bson/bson.h>
491
- #include <mongoc.h>
491
+ #include <mongoc/mongoc .h>
492
492
#include <stdio.h>
493
493
494
494
int
@@ -547,9 +547,8 @@ Using the "mydb" database, the following example inserts an example document int
547
547
548
548
.. code-block :: c
549
549
550
- #include <bcon.h>
551
550
#include <bson/bson.h>
552
- #include <mongoc.h>
551
+ #include <mongoc/mongoc .h>
553
552
#include <stdio.h>
554
553
555
554
int
@@ -645,7 +644,7 @@ The following code inserts a sample document into the database "mydb" and collec
645
644
.. code-block :: c
646
645
647
646
#include <bson/bson.h>
648
- #include <mongoc.h>
647
+ #include <mongoc/mongoc .h>
649
648
#include <stdio.h>
650
649
651
650
int
@@ -725,7 +724,7 @@ Counting the number of documents in a MongoDB collection is similar to performin
725
724
.. code-block :: c
726
725
727
726
#include <bson/bson.h>
728
- #include <mongoc.h>
727
+ #include <mongoc/mongoc .h>
729
728
#include <stdio.h>
730
729
731
730
int
@@ -790,8 +789,7 @@ This example executes the `collStats <http://docs.mongodb.org/manual/reference/c
790
789
.. code-block :: c
791
790
792
791
#include <bson/bson.h>
793
- #include <bcon.h>
794
- #include <mongoc.h>
792
+ #include <mongoc/mongoc.h>
795
793
#include <stdio.h>
796
794
797
795
int
0 commit comments