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
+++
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
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
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
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
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
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