From 71eccfeec79e8f6a6817b18addfc1f63fc1219f5 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 20 Mar 2018 20:21:32 +0000 Subject: [PATCH] glib: Add (inout) annotations to g_[hmac|checksum]_get_digest() Signed-off-by: Philip Withnall Reviewed-by: nobody --- glib/gchecksum.c | 4 ++-- glib/ghmac.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/glib/gchecksum.c b/glib/gchecksum.c index 40b1d50e2..f151ced49 100644 --- a/glib/gchecksum.c +++ b/glib/gchecksum.c @@ -1682,8 +1682,8 @@ g_checksum_get_string (GChecksum *checksum) /** * g_checksum_get_digest: (skip) * @checksum: a #GChecksum - * @buffer: output buffer - * @digest_len: an inout parameter. The caller initializes it to the size of @buffer. + * @buffer: (array length=digest_len): output buffer + * @digest_len: (inout): an inout parameter. The caller initializes it to the size of @buffer. * After the call it contains the length of the digest. * * Gets the digest from @checksum as a raw binary vector and places it diff --git a/glib/ghmac.c b/glib/ghmac.c index 9b58fd81c..af9b6744a 100644 --- a/glib/ghmac.c +++ b/glib/ghmac.c @@ -300,8 +300,8 @@ g_hmac_get_string (GHmac *hmac) /** * g_hmac_get_digest: * @hmac: a #GHmac - * @buffer: output buffer - * @digest_len: an inout parameter. The caller initializes it to the + * @buffer: (array length=digest_len): output buffer + * @digest_len: (inout): an inout parameter. The caller initializes it to the * size of @buffer. After the call it contains the length of the digest * * Gets the digest from @checksum as a raw binary array and places it