diff options
author | Frédéric Dalleau <frederic.dalleau@linux.intel.com> | 2011-05-02 17:48:05 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-05-04 21:59:18 -0500 |
commit | bb02dd4070292e1b1f2b0083c657daeb6afab272 (patch) | |
tree | 041b6e72634a81a603dd0cb6d956595df8373eea | |
parent | 81ccae5a97ca1c3d98a77689a03fc38c4c32915a (diff) | |
download | ofono-bb02dd4070292e1b1f2b0083c657daeb6afab272.tar.bz2 |
voicecall: add +CHLD=3 support for HFP emulator
-rw-r--r-- | src/voicecall.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/voicecall.c b/src/voicecall.c index 9225de9c..b420071c 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -2788,6 +2788,13 @@ static void emulator_chld_cb(struct ofono_emulator *em, vc->driver->hold_all_active(vc, emulator_generic_cb, em); return; + case 3: + if (vc->driver->create_multiparty == NULL) + goto fail; + + vc->driver->create_multiparty(vc, + emulator_generic_cb, em); + return; default: goto fail; } @@ -2814,6 +2821,13 @@ static void emulator_chld_cb(struct ofono_emulator *em, *info++ = '2'; } + if (vc->driver->create_multiparty) { + if (info - buf > 6) + *info++ = ','; + + *info++ = '3'; + } + *info++ = '\0'; ofono_emulator_send_info(em, buf, TRUE); |