~indicator-network-developers/ofono/trunk.packaging

« back to all changes in this revision

Viewing changes to drivers/atmodem/devinfo.c

  • Committer: Kalle Valo
  • Date: 2011-02-21 07:46:07 UTC
  • mfrom: (2738.1.2125)
  • Revision ID: kalle.valo@canonical.com-20110221074607-u4rocuj2p75kpht9
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        struct cb_data *cbd = cb_data_new(cb, data);
65
65
        GAtChat *chat = ofono_devinfo_get_data(info);
66
66
 
67
 
        if (cbd == NULL)
68
 
                goto error;
69
 
 
70
67
        cbd->user = "+CGMI:";
71
68
 
72
69
        if (g_at_chat_send(chat, "AT+CGMI", NULL, attr_cb, cbd, g_free) > 0)
73
70
                return;
74
71
 
75
 
error:
76
72
        g_free(cbd);
77
73
 
78
74
        CALLBACK_WITH_FAILURE(cb, NULL, data);
84
80
        struct cb_data *cbd = cb_data_new(cb, data);
85
81
        GAtChat *chat = ofono_devinfo_get_data(info);
86
82
 
87
 
        if (cbd == NULL)
88
 
                goto error;
89
 
 
90
83
        cbd->user = "+CGMM:";
91
84
 
92
85
        if (g_at_chat_send(chat, "AT+CGMM", NULL, attr_cb, cbd, g_free) > 0)
93
86
                return;
94
87
 
95
 
error:
96
88
        g_free(cbd);
97
89
 
98
90
        CALLBACK_WITH_FAILURE(cb, NULL, data);
104
96
        struct cb_data *cbd = cb_data_new(cb, data);
105
97
        GAtChat *chat = ofono_devinfo_get_data(info);
106
98
 
107
 
        if (cbd == NULL)
108
 
                goto error;
109
 
 
110
99
        cbd->user = "+CGMR:";
111
100
 
112
101
        if (g_at_chat_send(chat, "AT+CGMR", NULL, attr_cb, cbd, g_free) > 0)
113
102
                return;
114
103
 
115
 
error:
116
104
        g_free(cbd);
117
105
 
118
106
        CALLBACK_WITH_FAILURE(cb, NULL, data);
124
112
        struct cb_data *cbd = cb_data_new(cb, data);
125
113
        GAtChat *chat = ofono_devinfo_get_data(info);
126
114
 
127
 
        if (cbd == NULL)
128
 
                goto error;
129
 
 
130
115
        cbd->user = "+CGSN:";
131
116
 
132
117
        if (g_at_chat_send(chat, "AT+CGSN", NULL, attr_cb, cbd, g_free) > 0)
133
118
                return;
134
119
 
135
 
error:
136
120
        g_free(cbd);
137
121
 
138
122
        CALLBACK_WITH_FAILURE(cb, NULL, data);