projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e4e1c1
)
gresource: Clarify error docs for g_resource_enumerate_children()
author
Philip Withnall
<philip.withnall@collabora.co.uk>
Tue, 28 Jul 2015 09:13:12 +0000
(10:13 +0100)
committer
Philip Withnall
<philip.withnall@collabora.co.uk>
Tue, 28 Jul 2015 09:14:17 +0000
(10:14 +0100)
Document that it returns G_RESOURCE_ERROR_NOT_FOUND if the path doesn’t
exist.
gio/gresource.c
patch
|
blob
|
history
diff --git
a/gio/gresource.c
b/gio/gresource.c
index
245b25c
..
e711f7c
100644
(file)
--- 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