Skip to content

Commit c82be46

Browse files
committed
Move bson files to core utils
1 parent 7556b53 commit c82be46

18 files changed

+25
-26
lines changed

src/realm/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ set(UTIL_SOURCES
101101
util/random.cpp
102102
util/resource_limits.cpp
103103
util/uri.cpp
104+
util/bson/bson.cpp
105+
util/bson/regular_expression.cpp
104106
)
105107

106108
set(REALM_INSTALL_HEADERS
@@ -272,6 +274,12 @@ set(REALM_NOINST_HEADERS
272274
util/timestamp_formatter.hpp
273275
util/timestamp_logger.hpp
274276
util/value_reset_guard.hpp
277+
util/bson/bson.hpp
278+
util/bson/min_key.hpp
279+
util/bson/max_key.hpp
280+
util/bson/regular_expression.hpp
281+
util/bson/indexed_map.hpp
282+
util/bson/mongo_timestamp.hpp
275283
) # REALM_NOINST_HEADERS
276284

277285
if(NOT MSVC)

src/realm/object-store/CMakeLists.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,7 @@ if(REALM_ENABLE_SYNC)
110110
sync/impl/sync_client.hpp
111111
sync/impl/sync_file.hpp
112112
sync/impl/sync_metadata.hpp
113-
sync/impl/network_reachability.hpp
114-
115-
util/bson/bson.hpp
116-
util/bson/min_key.hpp
117-
util/bson/max_key.hpp
118-
util/bson/regular_expression.hpp
119-
util/bson/indexed_map.hpp
120-
util/bson/mongo_timestamp.hpp)
113+
sync/impl/network_reachability.hpp)
121114

122115
list(APPEND SOURCES
123116
sync/app.cpp
@@ -133,9 +126,7 @@ if(REALM_ENABLE_SYNC)
133126
sync/mongo_database.cpp
134127
sync/push_client.cpp
135128
sync/impl/sync_file.cpp
136-
sync/impl/sync_metadata.cpp
137-
util/bson/bson.cpp
138-
util/bson/regular_expression.cpp)
129+
sync/impl/sync_metadata.cpp)
139130
if(APPLE)
140131
list(APPEND HEADERS
141132
sync/impl/apple/network_reachability_observer.hpp

src/realm/object-store/sync/app_credentials.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
////////////////////////////////////////////////////////////////////////////
1818

1919
#include <realm/object-store/sync/app_credentials.hpp>
20-
#include <realm/object-store/util/bson/bson.hpp>
20+
#include <realm/util/bson/bson.hpp>
2121

2222
namespace realm::app {
2323

src/realm/object-store/sync/app_service_client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef APP_SERVICE_CLIENT_HPP
2020
#define APP_SERVICE_CLIENT_HPP
2121

22-
#include <realm/object-store/util/bson/bson.hpp>
22+
#include <realm/util/bson/bson.hpp>
2323
#include <realm/util/functional.hpp>
2424
#include <realm/util/optional.hpp>
2525

src/realm/object-store/sync/mongo_collection.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef MONGO_COLLECTION_HPP
2020
#define MONGO_COLLECTION_HPP
2121

22-
#include <realm/object-store/util/bson/bson.hpp>
22+
#include <realm/util/bson/bson.hpp>
2323
#include <realm/util/functional.hpp>
2424
#include <realm/util/optional.hpp>
2525

src/realm/object-store/sync/push_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <realm/object-store/sync/app_utils.hpp>
2222
#include <realm/object-store/sync/auth_request_client.hpp>
2323
#include <realm/object-store/sync/generic_network_transport.hpp>
24-
#include <realm/object-store/util/bson/bson.hpp>
24+
#include <realm/util/bson/bson.hpp>
2525

2626
namespace realm::app {
2727

src/realm/object-store/sync/sync_user.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define REALM_OS_SYNC_USER_HPP
2121

2222
#include <realm/object-store/util/atomic_shared_ptr.hpp>
23-
#include <realm/object-store/util/bson/bson.hpp>
23+
#include <realm/util/bson/bson.hpp>
2424
#include <realm/object-store/sync/subscribable.hpp>
2525

2626
#include <realm/util/checked_mutex.hpp>

src/realm/sync/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <realm/sync/client.hpp>
2121
#include <realm/sync/protocol.hpp>
2222
#include <realm/sync/network/network.hpp>
23-
#include <realm/object-store/util/bson/bson.hpp>
23+
#include <realm/util/bson/bson.hpp>
2424

2525
#include <ostream>
2626

src/realm/object-store/util/bson/bson.cpp renamed to src/realm/util/bson/bson.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
**************************************************************************/
1818

19-
#include <realm/object-store/util/bson/bson.hpp>
19+
#include <realm/util/bson/bson.hpp>
2020
#include <realm/util/base64.hpp>
2121
#include <external/json/json.hpp>
2222
#include <sstream>

src/realm/object-store/util/bson/bson.hpp renamed to src/realm/util/bson/bson.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#ifndef REALM_BSON_HPP
2020
#define REALM_BSON_HPP
2121

22-
#include <realm/object-store/util/bson/indexed_map.hpp>
23-
#include <realm/object-store/util/bson/regular_expression.hpp>
24-
#include <realm/object-store/util/bson/min_key.hpp>
25-
#include <realm/object-store/util/bson/max_key.hpp>
26-
#include <realm/object-store/util/bson/mongo_timestamp.hpp>
22+
#include <realm/util/bson/indexed_map.hpp>
23+
#include <realm/util/bson/regular_expression.hpp>
24+
#include <realm/util/bson/min_key.hpp>
25+
#include <realm/util/bson/max_key.hpp>
26+
#include <realm/util/bson/mongo_timestamp.hpp>
2727

2828
#include <realm/binary_data.hpp>
2929
#include <realm/timestamp.hpp>

0 commit comments

Comments
 (0)