Skip to content

Commit

Permalink
[bindgen] follow up to #7300 (#7623)
Browse files Browse the repository at this point in the history
  • Loading branch information
kneth authored Apr 26, 2024
1 parent 0d73fdd commit bec09f8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions bindgen/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ headers:
- "realm/object-store/sync/app.hpp"
- "realm/object-store/sync/sync_manager.hpp"
- "realm/object-store/sync/sync_session.hpp"
- "realm/object-store/sync/app_user.hpp"
- "realm/object-store/sync/sync_user.hpp"
- "realm/object-store/sync/mongo_collection.hpp"
- "realm/util/bson/bson.hpp"
Expand Down Expand Up @@ -231,7 +232,7 @@ enums:
values:
- NoEncryption
- Encryption
- NoMetadata
- InMemory

LoggerLevel:
cppName: util::Logger::Level
Expand Down Expand Up @@ -301,7 +302,7 @@ enums:
- download

SyncUserState:
cppName: UserState
cppName: SyncUser::State
values:
- LoggedOut
- LoggedIn
Expand Down Expand Up @@ -1215,12 +1216,12 @@ classes:
state: SyncUserState
sync_manager: SharedSyncManager
methods:
access_token_refresh_required: bool
request_log_out: '(cb: AsyncCallback<(err: std::optional<AppError>)>&&)'
access_token_refresh_required: '() -> bool'
# request_log_out: '(cb: AsyncCallback<(err: std::optional<AppError>)>&&)'
request_refresh_user: '(cb: AsyncCallback<(err: std::optional<AppError>)>&&)'
request_refresh_location: '(cb: AsyncCallback<(err: std::optional<AppError>)>&&)'
request_access_token: '(cb: AsyncCallback<(err: std::optional<AppError>)>&&)'
track_realm: '(std::string_view)'
track_realm: '(path: std::string_view)'
create_file_action: '(action: SyncFileAction, original_path: std::string_view, requested_recovery_dir: std::optional<std::string>, partition_value: std::string_view) -> std::string'

User:
Expand All @@ -1238,8 +1239,9 @@ classes:
app: SharedApp
methods:
log_out: ()
subscribe: '(observer: (user: IgnoreArgument<const app::User&>)) -> UserSubscriptionToken'
subscribe: '(observer: (user: IgnoreArgument<const User&>)) -> UserSubscriptionToken'
unsubscribe: '(token: UserSubscriptionToken)'
path_for_realm: '(config: SyncConfig&, custom_file_name: std::optional<std::string>&) -> std::string'

UserProfile:
cppName: app::UserProfile
Expand Down Expand Up @@ -1297,6 +1299,7 @@ classes:
make_streaming_request: '(user: SharedUser, name: std::string, args: bson::BsonArray, service_name: std::optional<std::string>) -> Request'
update_base_url: '(base_url: std::optional<std::string>, cb: AsyncCallback<(err: std::optional<AppError>)>&&)'
get_base_url: '() const -> std::string'
immediately_run_file_actions: '(realm_path: std::string) -> bool'

WatchStream:
cppName: app::WatchStream
Expand Down Expand Up @@ -1357,7 +1360,7 @@ classes:
set_timeouts: '(timeouts: SyncClientTimeouts)'
reconnect: ()
wait_for_sessions_to_terminate: ()
get_existing_active_session: '(path: const std::string&) -> SharedSyncSession'
get_existing_active_session: '(path: const std::string&) -> Nullable<SharedSyncSession>'
get_all_sessions_for: '(user: const SyncUser&) -> std::vector<SharedSyncSession>'

ThreadSafeReference: {}
Expand Down

0 comments on commit bec09f8

Please sign in to comment.