guri: Change type of g_uri_escape_bytes() to use guint8

`guint8` is the conventional way in modern GLib APIs to represent ‘a byte
which could contain arbitrary binary’. `guchar` is not advised for that
(even though it’s equivalent) because it could be misread as `gchar`.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-08-06 14:04:38 +01:00
parent ceda9755de
commit e446c3487b
2 changed files with 2 additions and 2 deletions

View File

@ -2539,7 +2539,7 @@ g_uri_unescape_bytes (const gchar *escaped_string,
* Since: 2.66
*/
gchar *
g_uri_escape_bytes (const guchar *unescaped,
g_uri_escape_bytes (const guint8 *unescaped,
gsize length,
const gchar *reserved_chars_allowed)
{

View File

@ -400,7 +400,7 @@ GBytes * g_uri_unescape_bytes (const char *escaped_string,
GError **error);
GLIB_AVAILABLE_IN_2_66
char * g_uri_escape_bytes (const guchar *unescaped,
char * g_uri_escape_bytes (const guint8 *unescaped,
gsize length,
const char *reserved_chars_allowed);