diff libervia/server/restricted_bridge.py @ 1516:a3ca1bab6eb1

server, restricted bridge: add new methods and signals to prepare calls implementation: rel 422
author Goffi <goffi@goffi.org>
date Thu, 01 Jun 2023 20:44:57 +0200
parents 106bae41f5c8
children
line wrap: on
line diff
--- a/libervia/server/restricted_bridge.py	Mon May 22 11:57:49 2023 +0200
+++ b/libervia/server/restricted_bridge.py	Thu Jun 01 20:44:57 2023 +0200
@@ -39,9 +39,40 @@
                 "This action is not allowed for service profile"
             )
 
+    async def action_launch(
+        self, callback_id: str, data_s: str, profile: str
+    ) -> str:
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "action_launch", callback_id, data_s, profile
+        )
+
+    async def call_start(self, entity: str, call_data_s: str, profile: str) -> None:
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "call_start", entity, call_data_s, profile
+        )
+
+    async def call_end(self, session_id: str, call_data: str, profile: str) -> None:
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "call_end", session_id, call_data, profile
+        )
+
     async def contacts_get(self, profile):
         return await self.host.bridge_call("contacts_get", profile)
 
+    async def external_disco_get(self, entity, profile):
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "external_disco_get", entity, profile)
+
+    async def ice_candidates_add(self, session_id, media_ice_data_s, profile):
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "ice_candidates_add", session_id, media_ice_data_s, profile
+        )
+
     async def identity_get(self, entity, metadata_filter, use_cache, profile):
         return await self.host.bridge_call(
             "identity_get", entity, metadata_filter, use_cache, profile)