diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-04-04 14:51:22 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-04-08 16:35:09 +0200 |
commit | 2376859f36f56b2a63f8f6c13094aad0b129b279 (patch) | |
tree | ba7235770da4e181ab09705c9cb29f1f39549ec0 /src/mm-charsets.h | |
parent | a2b57474dc60759416bc2a5a8808806fd3317c01 (diff) |
charsets: report GError in byte_array_append() failures
Diffstat (limited to 'src/mm-charsets.h')
-rw-r--r-- | src/mm-charsets.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mm-charsets.h b/src/mm-charsets.h index 2e3e6f38..9e9215d5 100644 --- a/src/mm-charsets.h +++ b/src/mm-charsets.h @@ -38,10 +38,11 @@ MMModemCharset mm_modem_charset_from_string (const char *string); * into the given charset first. The original string is assumed to be * UTF-8 encoded. */ -gboolean mm_modem_charset_byte_array_append (GByteArray *array, - const char *utf8, - gboolean quoted, - MMModemCharset charset); +gboolean mm_modem_charset_byte_array_append (GByteArray *array, + const gchar *utf8, + gboolean quoted, + MMModemCharset charset, + GError **error); /* Take a string encoded in the given charset in binary form, and * convert it to UTF-8. */ |