mirror of git://git.sysmocom.de/ofono
handsfree: Add driver api for number requests
e.g. AT+BINP=1
This commit is contained in:
parent
6072a98109
commit
5fa6344b92
|
@ -30,11 +30,18 @@ extern "C" {
|
||||||
|
|
||||||
struct ofono_handsfree;
|
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 {
|
struct ofono_handsfree_driver {
|
||||||
const char *name;
|
const char *name;
|
||||||
int (*probe)(struct ofono_handsfree *hf, unsigned int vendor,
|
int (*probe)(struct ofono_handsfree *hf, unsigned int vendor,
|
||||||
void *data);
|
void *data);
|
||||||
void (*remove)(struct ofono_handsfree *hf);
|
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,
|
void ofono_handsfree_set_inband_ringing(struct ofono_handsfree *hf,
|
||||||
|
|
Loading…
Reference in New Issue