handsfree: Add driver api for number requests
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Thu, 15 Sep 2011 16:34:38 +0000 (18:34 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 9 Sep 2011 06:05:47 +0000 (01:05 -0500)
e.g. AT+BINP=1

include/handsfree.h

index cd60975..18c6f26 100644 (file)
@@ -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,