diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-09-26 14:26:55 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-09-25 11:45:54 -0500 |
commit | 64e2b33465242b6e0bc6c9dee3e9812abe7c008c (patch) | |
tree | 6344bc5ad4f078ffce6198ef21ae5aea33e880a9 /plugins/telit.c | |
parent | 39f39b37c9a5a132e3f8484b3e2e0d33a59f0211 (diff) | |
download | ofono-64e2b33465242b6e0bc6c9dee3e9812abe7c008c.tar.bz2 |
sap: Add basic sap plugin
Diffstat (limited to 'plugins/telit.c')
-rw-r--r-- | plugins/telit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/telit.c b/plugins/telit.c index 9c8eb0d3..18cf0c40 100644 --- a/plugins/telit.c +++ b/plugins/telit.c @@ -54,6 +54,8 @@ #include <drivers/atmodem/atutil.h> #include <drivers/atmodem/vendor.h> +#include "bluetooth.h" + static const char *none_prefix[] = { NULL }; static const char *qss_prefix[] = { "#QSS:", NULL }; @@ -63,6 +65,10 @@ struct telit_data { guint sim_inserted_source; }; +static struct bluetooth_sap_driver sap_driver = { + .name = "telit", +}; + static void telit_debug(const char *str, void *user_data) { const char *prefix = user_data; @@ -82,6 +88,8 @@ static int telit_probe(struct ofono_modem *modem) ofono_modem_set_data(modem, data); + bluetooth_sap_client_register(&sap_driver, modem); + return 0; } @@ -91,6 +99,8 @@ static void telit_remove(struct ofono_modem *modem) DBG("%p", modem); + bluetooth_sap_client_unregister(modem); + ofono_modem_set_data(modem, NULL); if (data->sim_inserted_source > 0) |