[PATCH] gatserver: Don't free twice after user disconnect

2010-07-04 Thread Zhenhua Zhang
It's possible to free gatserver in user disconnect function. So we should not free it again. --- gatchat/gatserver.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index 3fa26a0..c63f04b 100644 --- a/gatchat/gatserver.c +++

[PATCH 3/6] dun_gw: Add DUN emulator plugin

2010-07-04 Thread Zhenhua Zhang
It implements DUN server role and register itself as agent to BlueZ interface. --- Makefile.am |3 + plugins/dun_gw.c | 274 ++ 2 files changed, 277 insertions(+), 0 deletions(-) create mode 100644 plugins/dun_gw.c diff --git

[PATCH 5/6] emulator: Add test case for ofono emulator

2010-07-04 Thread Zhenhua Zhang
Add gatchat/test-emulator to test DUN emulator. 1. Start ofonod and power on phonesim modem. 2. Run gatchat/test-emulator. It could find dun emulator and create pty terminal. Use minicom to talk to the DUN emulator. --- Makefile.am |7 +- gatchat/test-emulator.c | 654

[PATCH 6/6] dun_gw: Probe emulator when we have new adapter

2010-07-04 Thread Zhenhua Zhang
Create emulator when we receive Bluetooth adapter property changes. In order to do that, we iterate all active modems. If it has GPRS atom and has not associated DUN emulator yet, create new emulator for it. --- include/emulator.h |4 plugins/dun_gw.c | 29

[PATCH 0/6] Add oFono DUN emulator

2010-07-04 Thread Zhenhua Zhang
Hi, This series are the initial patches for ofono DUN emulator. 1. src/emulator.c handles emulator create, remove, enable, disable and etc.. 2. plugins/dun_gw.c is the plugin similar to hfp.c. It's the interface with BlueZ serial DUN agent. 3. gatchat/test-emulator.c is the test case to test

[PATCH 1/6] emulator: Add ofono_emulator framework

2010-07-04 Thread Zhenhua Zhang
Each type of emulator can be register through emulator drivers statically. When modem powers up, oFono probes emulator driver to create emulator for each modem. --- Makefile.am|4 +- include/dbus.h |1 + include/emulator.h | 63 src/emulator.c | 271

[PATCH 2/6] bluetooth: Add register service for bluetooth

2010-07-04 Thread Zhenhua Zhang
Add bluetooth_register_service() and bluetooth_unregister_service() where bluetooth profiles plugins like DUN GW can register themselves per adapter. It shares existing bluetooth framework to listen bluetooth events (new adapters, bluetoothd shutdown, etc..) --- plugins/bluetooth.c | 125