Skip to content

Commit

Permalink
Disabling unsupported Bindgen spec for browser target
Browse files Browse the repository at this point in the history
  • Loading branch information
nhachicha committed May 10, 2023
1 parent d96d7fb commit 6dbb354
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions bindgen/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ enums:
- Error
- Superseded
- AwaitingMark
WatchStreamState:
cppName: app::WatchStream::State
values:
- NEED_DATA
- HAVE_EVENT
- HAVE_ERROR
# WatchStreamState:
# cppName: app::WatchStream::State
# values:
# - NEED_DATA
# - HAVE_EVENT
# - HAVE_ERROR

# These types are handled specially. They must be structs with a single fields named "value".
keyTypes:
Expand Down Expand Up @@ -588,7 +588,7 @@ records:
cppName: app::App::Config
fields:
app_id: std::string
transport: SharedGenericNetworkTransport
# transport: SharedGenericNetworkTransport
base_url: util::Optional<std::string>
local_app_name: util::Optional<std::string>
local_app_version: util::Optional<std::string>
Expand Down Expand Up @@ -625,7 +625,7 @@ classes:
has_binding_context: '(r: Realm) -> bool'
set_binding_context: '(r: SharedRealm, methods: BindingContext)'
get_or_create_object_with_primary_key: '(t: TableRef, pk: Mixed) -> std::pair<Obj, bool>'
make_network_transport: '(runRequest: (request: const Request&, callback: util::UniqueFunction<(response: Response&&)>&&) off_thread) -> SharedGenericNetworkTransport'
# make_network_transport: '(runRequest: (request: const Request&, callback: util::UniqueFunction<(response: Response&&)>&&) off_thread) -> SharedGenericNetworkTransport'
delete_data_for_object: '(realm: SharedRealm, object_type: StringData)'
is_empty_realm: '(realm: SharedRealm) -> bool'
base64_decode: '(input: StringData) -> BinaryData'
Expand All @@ -637,7 +637,7 @@ classes:
erase_subscription: '(subs: MutableSyncSubscriptionSet&, sub_to_remove: const SyncSubscription&) -> bool'
# This is added due to DescriptorOrdering not being exposed
get_results_description: '(results: const Results&) -> StringData'
feed_buffer: '(ws: WatchStream&, buffer: BinaryData)'
# feed_buffer: '(ws: WatchStream&, buffer: BinaryData)'
# Converts char* and length to a combined string_view argument to callback.
# TODO: Consider making preverify_ok a bool.
make_ssl_verify_callback: '(callback: (server_address: const std::string&, server_port: int, pem_data: std::string_view, preverify_ok: int, depth: int) off_thread -> bool) -> SSLVerifyCallback'
Expand Down Expand Up @@ -1156,15 +1156,15 @@ classes:
call_function: '(user: const SharedSyncUser&, name: std::string, args: EJsonArray, service_name: util::Optional<std::string>, cb: AsyncCallback<(result: Nullable<const EJson*>, err: util::Optional<AppError>)>)'
make_streaming_request: '(user: SharedSyncUser, name: std::string, args: bson::BsonArray, service_name: util::Optional<std::string>) -> Request'

WatchStream:
cppName: app::WatchStream
constructors:
make: ()
properties:
state: WatchStreamState
error: AppError
methods:
next_event: '() -> bson::BsonDocument'
# WatchStream:
# cppName: app::WatchStream
# constructors:
# make: ()
# properties:
# state: WatchStreamState
# error: AppError
# methods:
# next_event: '() -> bson::BsonDocument'

PushClient:
cppName: app::PushClient
Expand Down Expand Up @@ -1304,8 +1304,8 @@ classes:
make_frozen: '(version: VersionID) -> SharedScheduler'
make_default: '() -> SharedScheduler'
set_default_factory: '(factory: () -> SharedScheduler)'
GenericNetworkTransport:
cppName: app::GenericNetworkTransport
sharedPtrWrapped: SharedGenericNetworkTransport
methods:
send_request_to_server: '(request: Request&&, completionBlock: util::UniqueFunction<(response: const Response&)>&&)'
# GenericNetworkTransport:
# cppName: app::GenericNetworkTransport
# sharedPtrWrapped: SharedGenericNetworkTransport
# methods:
# send_request_to_server: '(request: Request&&, completionBlock: util::UniqueFunction<(response: const Response&)>&&)'

0 comments on commit 6dbb354

Please sign in to comment.