Skip to content

Commit

Permalink
Add needed spec definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
kiburtse committed Nov 9, 2023
1 parent c0bd442 commit 98be317
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bindgen/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ enums:
cppName: ClientResyncMode
values:
- Manual
- DiscardLocal
- DiscardLocal
- Recover
- RecoverOrDiscard

Expand Down Expand Up @@ -369,7 +369,7 @@ records:
fields:
longitude: double
latitude: double
altitude:
altitude:
type: double
default: std::numeric_limits<double>::quiet_NaN()

Expand All @@ -386,7 +386,7 @@ records:
GeoPolygon:
fields:
points: std::vector<std::vector<GeoPoint>>

RealmConfig:
fields:
path: std::string
Expand Down Expand Up @@ -467,7 +467,7 @@ records:
type: bool
default: false
error_handler: 'Nullable<std::function<(session: SharedSyncSession, error: SyncError) off_thread -> void>>'
custom_http_headers:
custom_http_headers:
type: 'std::map<std::string, std::string>'
default: {}
client_validate_ssl:
Expand All @@ -476,15 +476,15 @@ records:
ssl_trust_certificate_path: util::Optional<std::string>
ssl_verify_callback: Nullable<SSLVerifyCallback>
client_resync_mode:
type: ClientResetMode
type: ClientResetMode
default: ClientResyncMode::Manual;
notify_before_client_reset: 'Nullable<std::function<(before_frozen: SharedRealm) off_thread -> void>>'
notify_after_client_reset: 'Nullable<std::function<(before_frozen: SharedRealm, after: ThreadSafeReference, did_recover: bool) off_thread -> void>>'
cancel_waits_on_nonfatal_error:
type: bool
default: false
proxy_config: util::Optional<SyncProxyConfig>

SyncSubscription:
cppName: sync::Subscription
fields:
Expand Down Expand Up @@ -1131,7 +1131,7 @@ classes:
refresh_token: std::string
device_id: std::string
has_device_id: bool
user_profile: UserProfile
user_profile: UserProfile
identities: std::vector<UserIdentity>
custom_data: util::Optional<bson::BsonDocument>
sync_manager: SharedSyncManager
Expand All @@ -1156,7 +1156,7 @@ classes:
birthday: '() -> util::Optional<std::string>'
min_age: '() -> util::Optional<std::string>'
max_age: '() -> util::Optional<std::string>'
data: '() -> bson::BsonDocument'
data: '() -> bson::BsonDocument'

AppSubscriptionToken:
cppName: app::App::Token
Expand Down Expand Up @@ -1270,7 +1270,7 @@ classes:
methods:
start: '(callback: AsyncCallback<(realm: Nullable<ThreadSafeReference>, error: Nullable<std::exception_ptr>) off_thread>)'
cancel: ()
register_download_progress_notifier: '(callback: (transferred_bytes: uint64_t, transferrable_bytes: uint64_t) off_thread) -> uint64_t'
register_download_progress_notifier: '(callback: (transferred_bytes: uint64_t, transferrable_bytes: uint64_t, progress_estimate: double) off_thread) -> uint64_t'
unregister_download_progress_notifier: '(token: uint64_t)'

SyncSession:
Expand All @@ -1285,7 +1285,7 @@ classes:
methods:
wait_for_upload_completion: '(callback: AsyncCallback<(err: Status) off_thread>)'
wait_for_download_completion: '(callback: AsyncCallback<(err: Status) off_thread>)'
register_progress_notifier: '(callback: (transferred_bytes: uint64_t, transferrable_bytes: uint64_t) off_thread, direction: ProgressDirection, is_streaming: bool) -> uint64_t'
register_progress_notifier: '(callback: (transferred_bytes: uint64_t, transferrable_bytes: uint64_t, progress_estimate: double) off_thread, direction: ProgressDirection, is_streaming: bool) -> uint64_t'
unregister_progress_notifier: '(token: uint64_t)'
register_connection_change_callback: '(callback: (old_state: SyncSessionConnectionState, new_state: SyncSessionConnectionState) off_thread) -> uint64_t'
unregister_connection_change_callback: '(token: uint64_t)'
Expand Down

0 comments on commit 98be317

Please sign in to comment.