~cyphermox/ubuntu/natty/ofono/release-0.41

« back to all changes in this revision

Viewing changes to drivers/hsomodem/radio-settings.c

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2011-02-11 02:17:20 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: mathieu-tl@ubuntu.com-20110211021720-cvxc3erw1keomunj
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
        struct radio_settings_data *rsd;
173
173
 
174
174
        rsd = g_try_new0(struct radio_settings_data, 1);
175
 
        if (!rsd)
 
175
        if (rsd == NULL)
176
176
                return -ENOMEM;
177
177
 
178
178
        rsd->chat = g_at_chat_clone(chat);
179
179
 
180
180
        ofono_radio_settings_set_data(rs, rsd);
181
181
 
 
182
        g_at_chat_send(rsd->chat, "AT_OPBM?", none_prefix, NULL, NULL, NULL);
 
183
 
182
184
        g_at_chat_send(rsd->chat, "AT_OPSYS=?", opsys_prefix,
183
185
                                        opsys_support_cb, rs, NULL);
184
186
 
203
205
        .set_rat_mode           = hso_set_rat_mode
204
206
};
205
207
 
206
 
void hso_radio_settings_init()
 
208
void hso_radio_settings_init(void)
207
209
{
208
210
        ofono_radio_settings_driver_register(&driver);
209
211
}
210
212
 
211
 
void hso_radio_settings_exit()
 
213
void hso_radio_settings_exit(void)
212
214
{
213
215
        ofono_radio_settings_driver_unregister(&driver);
214
216
}