Skip to content

Commit ff7c2ca

Browse files
committed
sdbus_async: Add Profile interface
Bluez D-Bus Profile API [1] defines two interfaces Profile Manager and Profile. However, profile_api.py in python-sdbus-bluez defines only Profile Manager interface. Add the Profile interface definition. [1] https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/profile-api.txt Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>
1 parent e1d4dca commit ff7c2ca

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

sdbus_async/bluez/profile_api.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,34 @@ async def unregister_profile(
4848
profile_path: str,
4949
) -> None:
5050
raise NotImplementedError
51+
52+
class ProfileInterfaceAsync(
53+
DbusInterfaceCommonAsync,
54+
interface_name='org.bluez.Profile1',
55+
):
56+
57+
@dbus_method_async()
58+
async def release(
59+
self,
60+
) -> None:
61+
raise NotImplementedError
62+
63+
@dbus_method_async(
64+
input_signature='oha{sv}',
65+
)
66+
async def new_connection(
67+
self,
68+
device: str,
69+
fd: int,
70+
fd_properties: Dict[str, Tuple[str, Any]],
71+
) -> None:
72+
raise NotImplementedError
73+
74+
@dbus_method_async(
75+
input_signature='o',
76+
)
77+
async def request_disconnection(
78+
self,
79+
device: str,
80+
) -> None:
81+
raise NotImplementedError

0 commit comments

Comments
 (0)