summaryrefslogtreecommitdiffstats
path: root/include/handsfree.h
diff options
context:
space:
mode:
authorMikel Astiz <mikel.astiz@bmw-carit.de>2011-09-15 18:34:38 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-09-09 01:05:47 -0500
commit5fa6344b92eee3c35d80a2ca69511c58b8a4d605 (patch)
treec4c8d7ef58d6beddd6c534f14db183c848b69b9b /include/handsfree.h
parent6072a981096462a971e86700441c6746f9b27a6d (diff)
downloadofono-5fa6344b92eee3c35d80a2ca69511c58b8a4d605.tar.bz2
handsfree: Add driver api for number requests
e.g. AT+BINP=1
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 cd609759..18c6f265 100644
--- a/include/handsfree.h
+++ b/include/handsfree.h
@@ -30,11 +30,18 @@ extern "C" {
struct ofono_handsfree;
+typedef void (*ofono_handsfree_phone_cb_t)(const struct ofono_error *error,
+ const struct ofono_phone_number *number,
+ void *data);
+
struct ofono_handsfree_driver {
const char *name;
int (*probe)(struct ofono_handsfree *hf, unsigned int vendor,
void *data);
void (*remove)(struct ofono_handsfree *hf);
+ void (*request_phone_number) (struct ofono_handsfree *hf,
+ ofono_handsfree_phone_cb_t cb,
+ void *data);
};
void ofono_handsfree_set_inband_ringing(struct ofono_handsfree *hf,