summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrew Earl <andrewx.earl@intel.com>2014-04-08 09:21:45 +0100
committerDenis Kenzior <denkenz@gmail.com>2014-04-10 09:18:15 -0500
commit7420d327e310c9549f7cb6f46a57ee35ad701714 (patch)
treec560fd77e1347e4611f5cf971d839e88f6e2ead6 /include
parente589094113e185bae9e5952b9712c6cab680e6f5 (diff)
downloadofono-7420d327e310c9549f7cb6f46a57ee35ad701714.tar.bz2
include: Add subscriber number to handsfree API
Diffstat (limited to 'include')
-rw-r--r--include/handsfree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/handsfree.h b/include/handsfree.h
index 929fb32f..9f4d0e23 100644
--- a/include/handsfree.h
+++ b/include/handsfree.h
@@ -36,12 +36,18 @@ typedef void (*ofono_handsfree_cb_t)(const struct ofono_error *error,
typedef void (*ofono_handsfree_phone_cb_t)(const struct ofono_error *error,
const struct ofono_phone_number *number,
void *data);
+typedef void (*ofono_handsfree_cnum_query_cb_t)(const struct ofono_error *error,
+ int total,
+ const struct ofono_phone_number *numbers,
+ 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 (*cnum_query)(struct ofono_handsfree *hf,
+ ofono_handsfree_cnum_query_cb_t cb, void *data);
void (*request_phone_number) (struct ofono_handsfree *hf,
ofono_handsfree_phone_cb_t cb,
void *data);