static const char *binp_prefix[] = { "+BINP:", NULL };
static const char *bvra_prefix[] = { "+BVRA:", NULL };
+static const char *none_prefix[] = { NULL };
struct hf_data {
GAtChat *chat;
struct hf_data *hd = ofono_handsfree_get_data(hf);
struct cb_data *cbd = cb_data_new(cb, data);
- if (g_at_chat_send(hd->chat, "AT+CNUM", NULL,
+ if (g_at_chat_send(hd->chat, "AT+CNUM", none_prefix,
cnum_query_cb, cbd, g_free) > 0)
return;
struct cb_data *cbd = cb_data_new(cb, data);
const char *buf = "AT+NREC=0";
- if (g_at_chat_send(hd->chat, buf, NULL, hf_generic_set_cb,
- cbd, g_free) > 0)
+ if (g_at_chat_send(hd->chat, buf, none_prefix,
+ hf_generic_set_cb, cbd, g_free) > 0)
return;
g_free(cbd);
snprintf(buf, sizeof(buf), "AT+BIEV=%u,%u", indicator, value);
- if (g_at_chat_send(hd->chat, buf, NULL, hf_generic_set_cb,
- cbd, g_free) > 0)
+ if (g_at_chat_send(hd->chat, buf, none_prefix,
+ hf_generic_set_cb, cbd, g_free) > 0)
return;
g_free(cbd);