summaryrefslogtreecommitdiff
path: root/doc/design.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/design.txt')
-rw-r--r--doc/design.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/design.txt b/doc/design.txt
new file mode 100644
index 0000000..4539c56
--- /dev/null
+++ b/doc/design.txt
@@ -0,0 +1,40 @@
+
+
+ bluez headsetd pulseaudio
+ | | |
+ |<---------------------| |
+ | RegisterProfile | |
+ | |<----------------------|
+ | | RegisterAgent |
+ | | |
+ | | |
+ |--------------------->| |
+ bluetooth | NewConnection |---------------------->|
+ connection | | NewConnection | Agent can choose to
+ | | | manage rfcomm or not
+ | | |
+ | | | A new Headset Device h
+ | | | is made
+ | | |
+ | |<----------------------|
+ | | h.GetTransport | On the new device, we
+ | | | request a transport t.
+ | | |
+ | | |
+ | |<----------------------|
+ | | t.Acquire | We get fd to read/write
+ | | |
+ | | |
+ | |<----------------------|
+ | | t.Release |
+ | | |
+ | | |
+ | |<----------------------|
+ | | h.ReleaseTransport |
+ |--------------------->| |
+ | RequestDisconnection | |
+ | | | Release all transport
+ | |---------------------->|
+ | | RequestDisconnection |
+ | | |
+ | | |