diff options
author | Jeevaka Badrappan <jeevaka.badrappan@elektrobit.com> | 2010-09-14 14:23:14 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-14 17:01:49 -0500 |
commit | eb425a281ff76814e5e5a29fb2e087d29cad978d (patch) | |
tree | 8e9fc7bb49d7b00ca78e1902ca7d04c75ecb80f1 /include/ussd.h | |
parent | adc0a1bd6cc397efbcf724a7502b0289b7c88088 (diff) | |
download | ofono-eb425a281ff76814e5e5a29fb2e087d29cad978d.tar.bz2 |
ussd: Driver API changes
To support 8bit and UCS2 formatted USSDs as well as Send USSD Proactive
Command.
Diffstat (limited to 'include/ussd.h')
-rw-r--r-- | include/ussd.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ussd.h b/include/ussd.h index 96e04cb0..360ef006 100644 --- a/include/ussd.h +++ b/include/ussd.h @@ -45,13 +45,15 @@ struct ofono_ussd_driver { const char *name; int (*probe)(struct ofono_ussd *ussd, unsigned int vendor, void *data); void (*remove)(struct ofono_ussd *ussd); - void (*request)(struct ofono_ussd *ussd, const char *str, - ofono_ussd_cb_t, void *data); + void (*request)(struct ofono_ussd *ussd, int dcs, + const unsigned char *pdu, int len, + ofono_ussd_cb_t, void *data); void (*cancel)(struct ofono_ussd *ussd, ofono_ussd_cb_t cb, void *data); }; -void ofono_ussd_notify(struct ofono_ussd *ussd, int status, const char *str); +void ofono_ussd_notify(struct ofono_ussd *ussd, int status, int dcs, + const unsigned char *data, int data_len); int ofono_ussd_driver_register(const struct ofono_ussd_driver *d); void ofono_ussd_driver_unregister(const struct ofono_ussd_driver *d); |