while (g_at_result_iter_next_unquoted_string(&iter, &str)) {
if (!strcmp(str, "0"))
- ag_mpty_feature |= AG_CHLD_0;
+ ag_mpty_feature |= HFP_AG_CHLD_0;
else if (!strcmp(str, "1"))
- ag_mpty_feature |= AG_CHLD_1;
+ ag_mpty_feature |= HFP_AG_CHLD_1;
else if (!strcmp(str, "1x"))
- ag_mpty_feature |= AG_CHLD_1x;
+ ag_mpty_feature |= HFP_AG_CHLD_1x;
else if (!strcmp(str, "2"))
- ag_mpty_feature |= AG_CHLD_2;
+ ag_mpty_feature |= HFP_AG_CHLD_2;
else if (!strcmp(str, "2x"))
- ag_mpty_feature |= AG_CHLD_2x;
+ ag_mpty_feature |= HFP_AG_CHLD_2x;
else if (!strcmp(str, "3"))
- ag_mpty_feature |= AG_CHLD_3;
+ ag_mpty_feature |= HFP_AG_CHLD_3;
else if (!strcmp(str, "4"))
- ag_mpty_feature |= AG_CHLD_4;
+ ag_mpty_feature |= HFP_AG_CHLD_4;
}
if (!g_at_result_iter_close_list(&iter))
#include <ofono/voicecall.h>
#include "common.h"
+#include "hfp.h"
#include "hfpmodem.h"
#include "slc.h"
{
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
- if (vd->ag_mpty_features & AG_CHLD_2) {
+ if (vd->ag_mpty_features & HFP_AG_CHLD_2) {
hfp_template("AT+CHLD=2", vc, generic_cb, 0, cb, data);
return;
}
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
unsigned int held_status = 1 << CALL_STATUS_HELD;
- if (vd->ag_mpty_features & AG_CHLD_0) {
+ if (vd->ag_mpty_features & HFP_AG_CHLD_0) {
hfp_template("AT+CHLD=0", vc, generic_cb, held_status,
cb, data);
return;
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
unsigned int incoming_or_waiting = 1 << CALL_STATUS_WAITING;
- if (vd->ag_mpty_features & AG_CHLD_0) {
+ if (vd->ag_mpty_features & HFP_AG_CHLD_0) {
hfp_template("AT+CHLD=0", vc, generic_cb, incoming_or_waiting,
cb, data);
return;
{
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
- if (vd->ag_mpty_features & AG_CHLD_1) {
+ if (vd->ag_mpty_features & HFP_AG_CHLD_1) {
hfp_template("AT+CHLD=1", vc, release_all_active_cb, 0x1, cb,
data);
return;
struct release_id_req *req = NULL;
char buf[32];
- if (!(vd->ag_mpty_features & AG_CHLD_1x))
+ if (!(vd->ag_mpty_features & HFP_AG_CHLD_1x))
goto error;
req = g_try_new0(struct release_id_req, 1);
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
char buf[32];
- if (vd->ag_mpty_features & AG_CHLD_2x) {
+ if (vd->ag_mpty_features & HFP_AG_CHLD_2x) {
snprintf(buf, sizeof(buf), "AT+CHLD=2%d", id);
hfp_template(buf, vc, generic_cb, 0, cb, data);
{
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
- if (vd->ag_mpty_features & AG_CHLD_3) {
+ if (vd->ag_mpty_features & HFP_AG_CHLD_3) {
hfp_template("AT+CHLD=3", vc, generic_cb, 0, cb, data);
return;
*/
unsigned int transfer = 0x1 | 0x2 | 0x4 | 0x8;
- if (vd->ag_mpty_features & AG_CHLD_4) {
+ if (vd->ag_mpty_features & HFP_AG_CHLD_4) {
hfp_template("AT+CHLD=4", vc, generic_cb, transfer, cb, data);
return;