summaryrefslogtreecommitdiff
path: root/gio/gfile.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-11-25 14:25:59 -0500
committerRyan Lortie <desrt@desrt.ca>2012-11-27 10:10:37 -0500
commit3baf256a2c55ffcf2664e72a39821fddb59370e1 (patch)
tree227ae18a382132f5898a3d227969b3011a152fd0 /gio/gfile.h
parent4e7161ce20364a61db1b6188654c19d9ff83b9d9 (diff)
downloadglib-3baf256a2c55ffcf2664e72a39821fddb59370e1.tar.gz
gio: New API for GFile from remote commandline arg
Add a pair of new APIs: one to GFile to create a new file from a commandline arg relative to a given cwd and one to GApplicationCommandLine to create a GFile from an arg, relative to the cwd of the invoking commandline. https://bugzilla.gnome.org/show_bug.cgi?id=689037
Diffstat (limited to 'gio/gfile.h')
-rw-r--r--gio/gfile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gfile.h b/gio/gfile.h
index 1a724db6e..8e8b9a311 100644
--- a/gio/gfile.h
+++ b/gio/gfile.h
@@ -556,6 +556,9 @@ GType g_file_get_type (void) G_GNUC_CONST;
GFile * g_file_new_for_path (const char *path);
GFile * g_file_new_for_uri (const char *uri);
GFile * g_file_new_for_commandline_arg (const char *arg);
+GLIB_AVAILABLE_IN_2_36
+GFile * g_file_new_for_commandline_arg_and_cwd (const gchar *arg,
+ const gchar *cwd);
GLIB_AVAILABLE_IN_2_32
GFile * g_file_new_tmp (const char *tmpl,
GFileIOStream **iostream,