summaryrefslogtreecommitdiff
path: root/gio/gfileenumerator.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-12-12 04:49:28 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2012-12-13 21:38:18 -0500
commit3c87ab97ffd8735bff78c177e163826484776cd2 (patch)
tree149d56dc757725c91da929972daa17d87d803aec /gio/gfileenumerator.h
parent6cce4790b7639656c7701a4ed8495ba50abd7c6e (diff)
downloadglib-3c87ab97ffd8735bff78c177e163826484776cd2.tar.gz
gfileenumerator: Add a g_file_enumerator_get_child method
This is a new convenience method designed to simplify some use cases of GFileEnumerator, by making it easy to get the next file from a file enumerator. https://bugzilla.gnome.org/show_bug.cgi?id=690083
Diffstat (limited to 'gio/gfileenumerator.h')
-rw-r--r--gio/gfileenumerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gfileenumerator.h b/gio/gfileenumerator.h
index 9cd2f3eca..9fcec1281 100644
--- a/gio/gfileenumerator.h
+++ b/gio/gfileenumerator.h
@@ -126,6 +126,9 @@ gboolean g_file_enumerator_has_pending (GFileEnumerator *enumerator
void g_file_enumerator_set_pending (GFileEnumerator *enumerator,
gboolean pending);
GFile * g_file_enumerator_get_container (GFileEnumerator *enumerator);
+GLIB_AVAILABLE_IN_2_36
+GFile * g_file_enumerator_get_child (GFileEnumerator *enumerator,
+ GFileInfo *info);
G_END_DECLS