From 7f195ac956153b06483bd0e78cfd3b5c100413b5 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 28 Jul 2015 10:13:12 +0100 Subject: [PATCH] gresource: Clarify error docs for g_resource_enumerate_children() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document that it returns G_RESOURCE_ERROR_NOT_FOUND if the path doesn’t exist. --- gio/gresource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gio/gresource.c b/gio/gresource.c index 245b25c4a..e711f7c25 100644 --- a/gio/gresource.c +++ b/gio/gresource.c @@ -530,6 +530,9 @@ g_resource_get_info (GResource *resource, * The return result is a %NULL terminated list of strings which should * be released with g_strfreev(). * + * If @path is invalid or does not exist in the #GResource, + * %G_RESOURCE_ERROR_NOT_FOUND will be returned. + * * @lookup_flags controls the behaviour of the lookup. * * Returns: (array zero-terminated=1) (transfer full): an array of constant strings