[PATCH 1/6] bluetooth: Add reference count for bluetooth utils

2010-09-12 Thread Zhenhua Zhang
Add bluetooth_ref()/bluetooth_unref() to support reference count in bluetooth utils. --- plugins/bluetooth.c | 62 +-- 1 files changed, 45 insertions(+), 17 deletions(-) diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index

[PATCH 2/6] bluetooth: Add Btio library for DUN

2010-09-12 Thread Zhenhua Zhang
Btio library is the low level socket API for BT RFCOMM connection. We share the same library among BlueZ, Obex and oFono. So make sure you synchronize to other two projects when you make changes to btio.[ch]. --- Makefile.am |8 +- btio/btio.c | 1299

[PATCH 3/6] bluetooth: Add bluetooth server support for DUN

2010-09-12 Thread Zhenhua Zhang
It watches Bluetooth adapter property changes and addes DUN record to listen DUN client connection request. --- plugins/bluetooth.c | 379 +++ plugins/bluetooth.h | 14 ++ 2 files changed, 393 insertions(+), 0 deletions(-) diff --git

[PATCH 4/6] modem: Add method to get modem by path

2010-09-12 Thread Zhenhua Zhang
Return modem instance by searching modem path. --- include/modem.h |1 + src/modem.c | 15 +++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/include/modem.h b/include/modem.h index 8f8119e..600e875 100644 --- a/include/modem.h +++ b/include/modem.h @@ -36,6

[PATCH 6/6] emulator: Add emulator atom in oFono

2010-09-12 Thread Zhenhua Zhang
DUN server could create emulator and use GAtServer to talk AT commands to DUN client side. --- Makefile.am|4 +- include/emulator.h | 41 ++ plugins/dun_gw.c |8 +++ src/emulator.c | 121 src/ofono.h

[PATCH 0/6]Add DUN emulator in oFono

2010-09-12 Thread Zhenhua Zhang
Hi, I rebased the 1st series of DUN server patches with latest git tree and use bio library for BT RFCOMM connection. The btio library is exactly the same as the copies in bluez and obex. Comments are welcome! Regards, Zhenhua ___ ofono mailing list

[PATCH 5/6] dun_gw: Add DUN server plugin for oFono

2010-09-12 Thread Zhenhua Zhang
DUN server plug-in watches ofono modem status. When the modem comes to ONLINE state, it registers itself on Bluetooth adapter and want for incoming DUN connection. --- Makefile.am |3 + plugins/dun_gw.c | 141 ++ 2 files changed, 144