Skip to content

Commit

Permalink
Support for x-provided-by Pull pattern (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
pahearn73 committed Jul 26, 2024
1 parent 8cf00de commit 45854ec
Show file tree
Hide file tree
Showing 14 changed files with 2,665 additions and 1,378 deletions.
6 changes: 3 additions & 3 deletions core/main/src/bootstrap/start_fbgateway_step.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ impl FireboltGatewayStep {
async fn init_handlers(&self, state: PlatformState, extn_methods: Methods) -> Methods {
let mut methods = Methods::new();

// TODO: Ultimately this should be able to register all provider below, for now just does
// AcknowledgeChallenge and PinChallenge.
ProviderRegistrar::register(&state, &mut methods);
// TODO: Ultimately this may be able to register all providers below, for now just does
// those included by build_provider_relation_sets().
ProviderRegistrar::register_methods(&state, &mut methods);

let _ = methods.merge(DeviceRPCProvider::provide_with_alias(state.clone()));
let _ = methods.merge(WifiRPCProvider::provide_with_alias(state.clone()));
Expand Down
4 changes: 2 additions & 2 deletions core/main/src/firebolt/handlers/discovery_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ impl DiscoveryServer for DiscoveryImpl {
&self.state,
FireboltCap::Short(ENTITY_INFO_CAPABILITY.into()).as_str(),
String::from("entityInfo"),
ENTITY_INFO_EVENT,
String::from(ENTITY_INFO_EVENT),
ctx,
request,
)
Expand Down Expand Up @@ -697,7 +697,7 @@ impl DiscoveryServer for DiscoveryImpl {
&self.state,
FireboltCap::Short(PURCHASED_CONTENT_CAPABILITY.into()).as_str(),
String::from("purchasedContent"),
PURCHASED_CONTENT_EVENT,
String::from(PURCHASED_CONTENT_EVENT),
ctx,
request,
)
Expand Down
2 changes: 1 addition & 1 deletion core/main/src/firebolt/handlers/keyboard_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ impl KeyboardImpl {
&self.platform_state,
String::from(KEYBOARD_PROVIDER_CAPABILITY),
method,
event_name,
String::from(event_name),
ctx,
request,
)
Expand Down
4 changes: 2 additions & 2 deletions core/main/src/firebolt/handlers/lcm_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ impl LifecycleManagementImpl {
&self.state,
FireboltCap::short("app:lifecycle").as_str(),
method.into(),
event_name,
String::from(event_name),
ctx,
request,
)
.await;

Ok(ListenerResponse {
listening: listen,
event: event_name.into(),
event: String::from(event_name),
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/main/src/firebolt/handlers/localization_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl LocalizationImpl {
// TODO update with Firebolt Cap in later effort
"xrn:firebolt:capability:localization:locale".into(),
method.into(),
event_name,
String::from(event_name),
ctx,
request,
)
Expand Down
Loading

0 comments on commit 45854ec

Please sign in to comment.