diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-09-17 10:15:34 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-09-17 10:15:34 -0500 |
commit | 12e77a3c70dcd0ef67a9c989c1279ac308cbba70 (patch) | |
tree | 44c5595842f17d780458b2f4740db038455d752d /plugins/hso.c | |
parent | 0698fc2788303385920ee3c4fb8c5b636697c6cb (diff) | |
download | ofono-12e77a3c70dcd0ef67a9c989c1279ac308cbba70.tar.bz2 |
Convert all the modem drivers to the new API
Diffstat (limited to 'plugins/hso.c')
-rw-r--r-- | plugins/hso.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/hso.c b/plugins/hso.c index d07d1d1c..e678aab3 100644 --- a/plugins/hso.c +++ b/plugins/hso.c @@ -145,7 +145,7 @@ static int hso_disable(struct ofono_modem *modem) return 0; } -static void hso_populate(struct ofono_modem *modem) +static void hso_pre_sim(struct ofono_modem *modem) { struct hso_data *data = ofono_modem_get_data(modem); @@ -157,13 +157,24 @@ static void hso_populate(struct ofono_modem *modem) ofono_sms_create(modem, 0, "atmodem", data->chat); } +static void hso_post_sim(struct ofono_modem *modem) +{ + struct hso_data *data = ofono_modem_get_data(modem); + + DBG("%p", modem); + + ofono_netreg_create(modem, 0, "atmodem", data->chat); + ofono_sms_create(modem, 0, "atmodem", data->chat); +} + static struct ofono_modem_driver hso_driver = { .name = "hso", .probe = hso_probe, .remove = hso_remove, .enable = hso_enable, .disable = hso_disable, - .populate = hso_populate, + .pre_sim = hso_pre_sim, + .post_sim = hso_post_sim, }; static int hso_init(void) |