summaryrefslogtreecommitdiffstats
path: root/include/handsfree.h
diff options
context:
space:
mode:
authorMikel Astiz <mikel.astiz@bmw-carit.de>2011-10-21 18:51:26 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-10-21 13:12:33 -0500
commite3f847ecd9d85a212516548aee8761189ce842cf (patch)
tree349cb21f87213eec2d98f832f378e0cba8599ea4 /include/handsfree.h
parentfddc3b6733b8481f10a5b9016eef23b807e3166a (diff)
downloadofono-e3f847ecd9d85a212516548aee8761189ce842cf.tar.bz2
include: Voice recognition in handsfree public api
Diffstat (limited to 'include/handsfree.h')
-rw-r--r--include/handsfree.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/handsfree.h b/include/handsfree.h
index 4882352c..1559ba10 100644
--- a/include/handsfree.h
+++ b/include/handsfree.h
@@ -31,6 +31,8 @@ extern "C" {
struct ofono_handsfree;
+typedef void (*ofono_handsfree_cb_t)(const struct ofono_error *error,
+ void *data);
typedef void (*ofono_handsfree_phone_cb_t)(const struct ofono_error *error,
const struct ofono_phone_number *number,
void *data);
@@ -43,12 +45,17 @@ struct ofono_handsfree_driver {
void (*request_phone_number) (struct ofono_handsfree *hf,
ofono_handsfree_phone_cb_t cb,
void *data);
+ void (*voice_recognition)(struct ofono_handsfree *hf,
+ ofono_bool_t enabled,
+ ofono_handsfree_cb_t cb, void *data);
};
void ofono_handsfree_set_ag_features(struct ofono_handsfree *hf,
unsigned int ag_features);
void ofono_handsfree_set_inband_ringing(struct ofono_handsfree *hf,
ofono_bool_t enabled);
+void ofono_handsfree_voice_recognition_notify(struct ofono_handsfree *hf,
+ ofono_bool_t enabled);
int ofono_handsfree_driver_register(const struct ofono_handsfree_driver *d);
void ofono_handsfree_driver_unregister(