30
30
<th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th>
31
31
<td><a accesskey="n" href="gnome-vfs-20-gnome-vfs-file-info.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
33
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2574382" class="shortcut">Top</a>
35
<a href="#id2575197" class="shortcut">Description</a></nobr></td></tr>
33
<tr><td colspan="5" class="shortcuts"><nobr><a href="#gnome-vfs-20-gnome-vfs-utils.synopsis" class="shortcut">Top</a>
35
<a href="#gnome-vfs-20-gnome-vfs-utils.description" class="shortcut">Description</a></nobr></td></tr>
37
37
<div class="refentry" lang="en">
38
38
<a name="gnome-vfs-20-gnome-vfs-utils"></a><div class="titlepage"></div>
39
39
<div class="refnamediv"><table width="100%"><tr>
42
<a name="id2574382"></a><span class="refentrytitle">gnome-vfs-utils</span>
44
<p>gnome-vfs-utils — various utilities functions to manipulate uris</p>
41
<h2><span class="refentrytitle"><a name="gnome-vfs-20-gnome-vfs-utils.top_of_page"></a>gnome-vfs-utils</span></h2>
42
<p>gnome-vfs-utils — various utilities functions to manipulate uris</p>
46
44
<td valign="top" align="right"></td>
47
45
</tr></table></div>
48
46
<div class="refsynopsisdiv">
47
<a name="gnome-vfs-20-gnome-vfs-utils.synopsis"></a><h2>Synopsis</h2>
50
48
<pre class="synopsis">
54
enum <a href="gnome-vfs-20-gnome-vfs-utils.html#GnomeVFSMakeURIDirs">GnomeVFSMakeURIDirs</a>;
55
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-format-file-size-for-display">gnome_vfs_format_file_size_for_display</a>
56
(<a href="gnome-vfs-20-gnome-vfs-file-size.html#GnomeVFSFileSize">GnomeVFSFileSize</a> size);
57
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-format-uri-for-display">gnome_vfs_format_uri_for_display</a> (const char *uri);
58
<a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-url-show">gnome_vfs_url_show</a> (const char *url);
59
<a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-url-show-with-env">gnome_vfs_url_show_with_env</a> (const char *url,
49
enum <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#GnomeVFSMakeURIDirs" title="enum GnomeVFSMakeURIDirs">GnomeVFSMakeURIDirs</a>;
50
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-format-file-size-for-display" title="gnome_vfs_format_file_size_for_display ()">gnome_vfs_format_file_size_for_display</a>
51
(<a class="link" href="gnome-vfs-20-gnome-vfs-file-size.html#GnomeVFSFileSize" title="GnomeVFSFileSize">GnomeVFSFileSize</a> size);
52
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-format-uri-for-display" title="gnome_vfs_format_uri_for_display ()">gnome_vfs_format_uri_for_display</a> (const char *uri);
53
<a class="link" href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-url-show" title="gnome_vfs_url_show ()">gnome_vfs_url_show</a> (const char *url);
54
<a class="link" href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-url-show-with-env" title="gnome_vfs_url_show_with_env ()">gnome_vfs_url_show_with_env</a> (const char *url,
61
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-string">gnome_vfs_escape_string</a> (const char *string);
62
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-path-string">gnome_vfs_escape_path_string</a> (const char *path);
63
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-host-and-path-string">gnome_vfs_escape_host_and_path_string</a>
56
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-string" title="gnome_vfs_escape_string ()">gnome_vfs_escape_string</a> (const char *string);
57
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-path-string" title="gnome_vfs_escape_path_string ()">gnome_vfs_escape_path_string</a> (const char *path);
58
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-host-and-path-string" title="gnome_vfs_escape_host_and_path_string ()">gnome_vfs_escape_host_and_path_string</a>
64
59
(const char *path);
65
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-slashes">gnome_vfs_escape_slashes</a> (const char *string);
66
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-set">gnome_vfs_escape_set</a> (const char *string,
60
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-slashes" title="gnome_vfs_escape_slashes ()">gnome_vfs_escape_slashes</a> (const char *string);
61
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-escape-set" title="gnome_vfs_escape_set ()">gnome_vfs_escape_set</a> (const char *string,
67
62
const char *match_set);
68
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-unescape-string">gnome_vfs_unescape_string</a> (const char *escaped_string,
63
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-unescape-string" title="gnome_vfs_unescape_string ()">gnome_vfs_unescape_string</a> (const char *escaped_string,
69
64
const char *illegal_characters);
70
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-canonical">gnome_vfs_make_uri_canonical</a> (const char *uri);
71
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-canonical-strip-fragment">gnome_vfs_make_uri_canonical_strip_fragment</a>
65
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-canonical" title="gnome_vfs_make_uri_canonical ()">gnome_vfs_make_uri_canonical</a> (const char *uri);
66
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-canonical-strip-fragment" title="gnome_vfs_make_uri_canonical_strip_fragment ()">gnome_vfs_make_uri_canonical_strip_fragment</a>
73
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-path-name-canonical">gnome_vfs_make_path_name_canonical</a> (const char *path);
74
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-from-input">gnome_vfs_make_uri_from_input</a> (const char *location);
75
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-from-input-with-dirs">gnome_vfs_make_uri_from_input_with_dirs</a>
68
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-path-name-canonical" title="gnome_vfs_make_path_name_canonical ()">gnome_vfs_make_path_name_canonical</a> (const char *path);
69
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-from-input" title="gnome_vfs_make_uri_from_input ()">gnome_vfs_make_uri_from_input</a> (const char *location);
70
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-from-input-with-dirs" title="gnome_vfs_make_uri_from_input_with_dirs ()">gnome_vfs_make_uri_from_input_with_dirs</a>
76
71
(const char *location,
77
<a href="gnome-vfs-20-gnome-vfs-utils.html#GnomeVFSMakeURIDirs">GnomeVFSMakeURIDirs</a> dirs);
78
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-from-shell-arg">gnome_vfs_make_uri_from_shell_arg</a> (const char *uri);
79
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-full-from-relative">gnome_vfs_make_uri_full_from_relative</a>
72
<a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#GnomeVFSMakeURIDirs" title="enum GnomeVFSMakeURIDirs">GnomeVFSMakeURIDirs</a> dirs);
73
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-from-shell-arg" title="gnome_vfs_make_uri_from_shell_arg ()">gnome_vfs_make_uri_from_shell_arg</a> (const char *uri);
74
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-full-from-relative" title="gnome_vfs_make_uri_full_from_relative ()">gnome_vfs_make_uri_full_from_relative</a>
80
75
(const char *base_uri,
81
76
const char *relative_uri);
82
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-expand-initial-tilde">gnome_vfs_expand_initial_tilde</a> (const char *path);
83
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-unescape-string-for-display">gnome_vfs_unescape_string_for_display</a>
77
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-expand-initial-tilde" title="gnome_vfs_expand_initial_tilde ()">gnome_vfs_expand_initial_tilde</a> (const char *path);
78
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-unescape-string-for-display" title="gnome_vfs_unescape_string_for_display ()">gnome_vfs_unescape_string_for_display</a>
84
79
(const char *escaped);
85
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-get-local-path-from-uri">gnome_vfs_get_local_path_from_uri</a> (const char *uri);
86
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-get-uri-from-local-path">gnome_vfs_get_uri_from_local_path</a> (const char *local_full_path);
87
gboolean <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-is-executable-command-string">gnome_vfs_is_executable_command_string</a>
80
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-get-local-path-from-uri" title="gnome_vfs_get_local_path_from_uri ()">gnome_vfs_get_local_path_from_uri</a> (const char *uri);
81
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-get-uri-from-local-path" title="gnome_vfs_get_uri_from_local_path ()">gnome_vfs_get_uri_from_local_path</a> (const char *local_full_path);
83
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
84
>gboolean</a> <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-is-executable-command-string" title="gnome_vfs_is_executable_command_string ()">gnome_vfs_is_executable_command_string</a>
88
85
(const char *command_string);
89
void <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-list-deep-free">gnome_vfs_list_deep_free</a> (GList *list);
90
<a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-get-volume-free-space">gnome_vfs_get_volume_free_space</a> (const <a href="gnome-vfs-20-gnome-vfs-uri.html#GnomeVFSURI">GnomeVFSURI</a> *vfs_uri,
91
<a href="gnome-vfs-20-gnome-vfs-file-size.html#GnomeVFSFileSize">GnomeVFSFileSize</a> *size);
92
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-icon-path-from-filename">gnome_vfs_icon_path_from_filename</a> (const char *filename);
93
gboolean <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-is-primary-thread">gnome_vfs_is_primary_thread</a> (void);
94
char* <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-get-uri-scheme">gnome_vfs_get_uri_scheme</a> (const char *uri);
95
gboolean <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-uris-match">gnome_vfs_uris_match</a> (const char *uri_1,
86
void <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-list-deep-free" title="gnome_vfs_list_deep_free ()">gnome_vfs_list_deep_free</a> (<a
87
href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"
89
<a class="link" href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-get-volume-free-space" title="gnome_vfs_get_volume_free_space ()">gnome_vfs_get_volume_free_space</a> (const <a class="link" href="gnome-vfs-20-gnome-vfs-uri.html#GnomeVFSURI" title="GnomeVFSURI">GnomeVFSURI</a> *vfs_uri,
90
<a class="link" href="gnome-vfs-20-gnome-vfs-file-size.html#GnomeVFSFileSize" title="GnomeVFSFileSize">GnomeVFSFileSize</a> *size);
91
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-icon-path-from-filename" title="gnome_vfs_icon_path_from_filename ()">gnome_vfs_icon_path_from_filename</a> (const char *filename);
93
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
94
>gboolean</a> <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-is-primary-thread" title="gnome_vfs_is_primary_thread ()">gnome_vfs_is_primary_thread</a> (void);
95
char* <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-get-uri-scheme" title="gnome_vfs_get_uri_scheme ()">gnome_vfs_get_uri_scheme</a> (const char *uri);
97
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
98
>gboolean</a> <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-uris-match" title="gnome_vfs_uris_match ()">gnome_vfs_uris_match</a> (const char *uri_1,
96
99
const char *uri_2);
97
#define <a href="gnome-vfs-20-gnome-vfs-utils.html#GNOME-VFS-ASSERT-PRIMARY-THREAD:CAPS">GNOME_VFS_ASSERT_PRIMARY_THREAD</a>
98
#define <a href="gnome-vfs-20-gnome-vfs-utils.html#GNOME-VFS-ASSERT-SECONDARY-THREAD:CAPS">GNOME_VFS_ASSERT_SECONDARY_THREAD</a>
99
<a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-open-fd">gnome_vfs_open_fd</a> (GnomeVFSHandle **handle,
100
#define <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#GNOME-VFS-ASSERT-PRIMARY-THREAD:CAPS" title="GNOME_VFS_ASSERT_PRIMARY_THREAD">GNOME_VFS_ASSERT_PRIMARY_THREAD</a>
101
#define <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#GNOME-VFS-ASSERT-SECONDARY-THREAD:CAPS" title="GNOME_VFS_ASSERT_SECONDARY_THREAD">GNOME_VFS_ASSERT_SECONDARY_THREAD</a>
102
<a class="link" href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-open-fd" title="gnome_vfs_open_fd ()">gnome_vfs_open_fd</a> (GnomeVFSHandle **handle,
101
<a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-read-entire-file">gnome_vfs_read_entire_file</a> (const char *uri,
104
<a class="link" href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-read-entire-file" title="gnome_vfs_read_entire_file ()">gnome_vfs_read_entire_file</a> (const char *uri,
103
106
char **file_contents);
106
109
<div class="refsect1" lang="en">
107
<a name="id2575197"></a><h2>Description</h2>
110
<a name="gnome-vfs-20-gnome-vfs-utils.description"></a><h2>Description</h2>
112
115
<div class="refsect1" lang="en">
113
<a name="id2575212"></a><h2>Details</h2>
116
<a name="gnome-vfs-20-gnome-vfs-utils.details"></a><h2>Details</h2>
114
117
<div class="refsect2" lang="en">
115
<a name="id2575222"></a><h3>
116
<a name="GnomeVFSMakeURIDirs"></a>enum GnomeVFSMakeURIDirs</h3>
117
<a class="indexterm" name="id2575235"></a><pre class="programlisting">typedef enum {
118
<a name="GnomeVFSMakeURIDirs"></a><h3>enum GnomeVFSMakeURIDirs</h3>
119
<pre class="programlisting">typedef enum {
118
120
GNOME_VFS_MAKE_URI_DIR_NONE = 0,
119
121
GNOME_VFS_MAKE_URI_DIR_HOMEDIR = 1 << 0,
120
122
GNOME_VFS_MAKE_URI_DIR_CURRENT = 1 << 1
121
123
} GnomeVFSMakeURIDirs;
124
Flags that can be passed to <a href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-from-input-with-dirs"><code class="function">gnome_vfs_make_uri_from_input_with_dirs()</code></a>.
126
Flags that can be passed to <a class="link" href="gnome-vfs-20-gnome-vfs-utils.html#gnome-vfs-make-uri-from-input-with-dirs" title="gnome_vfs_make_uri_from_input_with_dirs ()"><code class="function">gnome_vfs_make_uri_from_input_with_dirs()</code></a>.
125
127
If the given input might be a relative path it checks for existence of the file
126
128
in the directory specified by this flag.
127
129
If both flags are passed the current directory is checked first.</p>