[glib] Skip g_base64_decode_step() in introspection
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Skip g_base64_decode_step() in introspection
- Date: Mon, 11 Sep 2017 19:44:56 +0000 (UTC)
commit 01544c9269d515eb6d8c8e8da347631c02510c0e
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date: Tue Oct 6 02:22:58 2015 +0300
Skip g_base64_decode_step() in introspection
The length of the caller-allocated (that flag was missing; added as well)
output array is calculated by a formula, so none of the usual array length
annotations apply. The state parameters need to be initialized with zero.
Just let them use the basic API.
https://bugzilla.gnome.org/show_bug.cgi?id=756103
glib/gbase64.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gbase64.c b/glib/gbase64.c
index 651840e..7d8b20d 100644
--- a/glib/gbase64.c
+++ b/glib/gbase64.c
@@ -298,10 +298,10 @@ static const unsigned char mime_base64_rank[256] = {
};
/**
- * g_base64_decode_step:
+ * g_base64_decode_step: (skip)
* @in: (array length=len) (element-type guint8): binary input data
* @len: max length of @in data to decode
- * @out: (out) (array) (element-type guint8): output buffer
+ * @out: (out caller-allocates) (array) (element-type guint8): output buffer
* @state: (inout): Saved state between steps, initialize to 0
* @save: (inout): Saved state between steps, initialize to 0
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]