Skip to contentSkip to conversation

Telephony plugin framework

Bluez-devel Alok 2 participants 2 messages Apr 22, 2008 Bluetooth drivers

lore
Share & tools
lore

Alok

author
#0 lore raw

Marcel/Johan,

Here is the summary of the telephony plugin framework discussion we had on IRC. Can you please verify it?

1. 'hcid' maintains a list of 'telephony devices'[a GList]. it also exports methods to create, destroy, update these devices.

2. 'hcid' also maintains a list of 'telephony drivers'[a GList]. it also exports methods to register, unregister these drivers.

3. 'hcid' exports telephony methods. (which will be called by the services).

4. A service(example: audio) will register a telephony device with 'hcid' using 'register_telephony_device()'.

5. A telephony plugin will register a telephony driver with 'hcid' using 'register_telephony_driver()'.

6. Once the driver is registered, it scans through the list of devices, and if a suitable registered device is found (matches the driver name to device name, like in the linux kernel), it calls the 'probe' of the driver.

Question. What information does the 'struct device' going to hold? In linux device driver senario, it holds the resource (IRQ, memory etc) information.

7. The probe function can initializes the telephony subsystem. It also registers a structure of "callbacks" with hcid. These callbacks are function pointers to the C functions in the plugin which interact with the telephony system.

8. These callbacks will allow services to call functions in the plugin(via hcid).

9. But to allow the plugin to notify the services (a response to a previously issued command or issuing a new command to the audio service), it uses a hcid exported function 'update_telephony_status(telephony_device)'.

10. The service will take action on the changed status of the device.

-Alok.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw
Quoted 2 lines · Alok

1. 'hcid' maintains a list of 'telephony devices'[a GList]. it also exports methods to create, destroy, update these devices.

Sorry, I'm not a regular participant in this thread so I may not be understanding something: which devices qualify to be "telephony devices"? Only those that announce availability of a HSP service? Is an A2DP headphone forever disqualified (unless it has dual HSP capability which some of them do)?

I assume the SDP thread in hcid will take care of registering the qualifying devices.

James F. Carter Voice 310 825 2897 FAX 310 206 6673
UCLA-Mathnet; 6115 MSA; 405 Hilgard Ave.; Los Angeles, CA, USA 90095-1555
Email: [email protected] http://www.math.ucla.edu/~jimc (q.v. for PGP key)

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel