mirror of git://git.sysmocom.de/ofono
drivers: Update to the new util api
This commit is contained in:
parent
ea172514a2
commit
c2b68f20b3
|
@ -91,7 +91,7 @@ static const unsigned char *ucs2_gsm_to_packed(const char *content,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
packed = pack_7bit_own_buf(gsm, written, 0, TRUE, msg_len, 0, msg);
|
packed = pack_7bit_own_buf(gsm, written, 0, true, msg_len, 0, msg);
|
||||||
g_free(gsm);
|
g_free(gsm);
|
||||||
|
|
||||||
return packed;
|
return packed;
|
||||||
|
@ -136,7 +136,7 @@ static void cusd_parse(GAtResult *result, struct ofono_ussd *ussd)
|
||||||
switch (data->charset) {
|
switch (data->charset) {
|
||||||
case AT_UTIL_CHARSET_GSM:
|
case AT_UTIL_CHARSET_GSM:
|
||||||
msg_ptr = pack_7bit_own_buf((const guint8 *) content,
|
msg_ptr = pack_7bit_own_buf((const guint8 *) content,
|
||||||
-1, 0, TRUE, &msg_len,
|
-1, 0, true, &msg_len,
|
||||||
0, msg);
|
0, msg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ static void at_ussd_request(struct ofono_ussd *ussd, int dcs,
|
||||||
unsigned char unpacked_buf[182];
|
unsigned char unpacked_buf[182];
|
||||||
long written;
|
long written;
|
||||||
|
|
||||||
unpack_7bit_own_buf(pdu, len, 0, TRUE, sizeof(unpacked_buf),
|
unpack_7bit_own_buf(pdu, len, 0, true, sizeof(unpacked_buf),
|
||||||
&written, 0, unpacked_buf);
|
&written, 0, unpacked_buf);
|
||||||
|
|
||||||
if (written < 1)
|
if (written < 1)
|
||||||
|
|
|
@ -98,7 +98,7 @@ static void speedup_ussd_request(struct ofono_ussd *ussd, int dcs,
|
||||||
|
|
||||||
cbd->user = ussd;
|
cbd->user = ussd;
|
||||||
|
|
||||||
unpack_7bit_own_buf(pdu, len, 0, TRUE, sizeof(coded_buf),
|
unpack_7bit_own_buf(pdu, len, 0, true, sizeof(coded_buf),
|
||||||
&written, 0, (unsigned char *)coded_buf);
|
&written, 0, (unsigned char *)coded_buf);
|
||||||
if (written < 1)
|
if (written < 1)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue