Skip to content

Commit a34b0a8

Browse files
committed
CXX-618 Export validateBSON method
1 parent 412fe24 commit a34b0a8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/SConscript.client

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ clientHeaders = [
220220
'mongo/bson/bson.h',
221221
'mongo/bson/bson_db.h',
222222
'mongo/bson/bson_field.h',
223+
'mongo/bson/bson_validate.h',
223224
'mongo/bson/bsonelement.h',
224225
'mongo/bson/bsonmisc.h',
225226
'mongo/bson/bsonobj.h',

src/mongo/bson/bson.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969

7070
#include "mongo/client/autolib.h"
7171

72+
#include "mongo/bson/bson_validate.h"
7273
#include "mongo/bson/bsonelement.h"
7374
#include "mongo/bson/bsonobj.h"
7475
#include "mongo/bson/bsonobjbuilder.h"

src/mongo/bson/bson_validate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "mongo/base/status.h"
2121
#include "mongo/base/string_data.h"
2222
#include "mongo/bson/bsontypes.h"
23+
#include "mongo/client/export_macros.h"
2324
#include "mongo/platform/cstdint.h"
2425

2526
namespace mongo {
@@ -29,7 +30,6 @@ namespace mongo {
2930
* @param maxLength - maxLength of buffer
3031
* this is NOT the bson size, but how far we know the buffer is valid
3132
*/
32-
Status validateBSON( const char* buf, uint64_t maxLength );
33+
MONGO_CLIENT_API Status MONGO_CLIENT_FUNC validateBSON( const char* buf, uint64_t maxLength );
3334

3435
}
35-

0 commit comments

Comments
 (0)