Skip to content

Commit

Permalink
CXX-618 Export validateBSON method
Browse files Browse the repository at this point in the history
  • Loading branch information
acmorrow committed Jul 6, 2015
1 parent 412fe24 commit a34b0a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/SConscript.client
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ clientHeaders = [
'mongo/bson/bson.h',
'mongo/bson/bson_db.h',
'mongo/bson/bson_field.h',
'mongo/bson/bson_validate.h',
'mongo/bson/bsonelement.h',
'mongo/bson/bsonmisc.h',
'mongo/bson/bsonobj.h',
Expand Down
1 change: 1 addition & 0 deletions src/mongo/bson/bson.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@

#include "mongo/client/autolib.h"

#include "mongo/bson/bson_validate.h"
#include "mongo/bson/bsonelement.h"
#include "mongo/bson/bsonobj.h"
#include "mongo/bson/bsonobjbuilder.h"
Expand Down
4 changes: 2 additions & 2 deletions src/mongo/bson/bson_validate.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "mongo/base/status.h"
#include "mongo/base/string_data.h"
#include "mongo/bson/bsontypes.h"
#include "mongo/client/export_macros.h"
#include "mongo/platform/cstdint.h"

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

}

0 comments on commit a34b0a8

Please sign in to comment.