mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
ceda9755de
commit
e446c3487b
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user