Details
gnome_vfs_format_file_size_for_display ()
gnome_vfs_escape_string ()
char* gnome_vfs_escape_string (const char *string); |
Escapes string, replacing any and all special characters
with equivalent escape sequences.
gnome_vfs_escape_path_string ()
char* gnome_vfs_escape_path_string (const char *path); |
Escapes path, replacing only special characters that would not
be found in paths (so '/', '&', '=', and '?' will not be escaped by
this function).
gnome_vfs_escape_host_and_path_string ()
char* gnome_vfs_escape_host_and_path_string
(const char *path); |
Escapes path, replacing only special characters that would not
be found in paths or host name (so '/', '&', '=', ':', '@'
and '?' will not be escaped by this function).
gnome_vfs_escape_slashes ()
char* gnome_vfs_escape_slashes (const char *string); |
Escapes only '/' and '%' characters in string, replacing
them with their escape sequence equivalents.
gnome_vfs_escape_set ()
char* gnome_vfs_escape_set (const char *string,
const char *match_set); |
gnome_vfs_unescape_string ()
char* gnome_vfs_unescape_string (const char *escaped_string,
const char *illegal_characters); |
Decodes escaped characters (i.e. PERCENTxx sequences) in escaped_string.
Characters are encoded in PERCENTxy form, where xy is the ASCII hex code
for character 16x+y.
gnome_vfs_make_uri_canonical ()
char* gnome_vfs_make_uri_canonical (const char *uri); |
gnome_vfs_make_path_name_canonical ()
char* gnome_vfs_make_path_name_canonical
(const char *path); |
gnome_vfs_expand_initial_tilde ()
char* gnome_vfs_expand_initial_tilde (const char *path); |
If path starts with a ~, representing the user's home
directory, expand it to the actual path location.
gnome_vfs_unescape_string_for_display ()
char* gnome_vfs_unescape_string_for_display
(const char *escaped); |
gnome_vfs_get_local_path_from_uri ()
char* gnome_vfs_get_local_path_from_uri
(const char *uri); |
Create a local path for a file:/// URI. Do not use with URIs
of other methods.
gnome_vfs_get_uri_from_local_path ()
char* gnome_vfs_get_uri_from_local_path
(const char *local_full_path); |
Returns a file:/// URI for the local path local_full_path.
gnome_vfs_is_executable_command_string ()
gboolean gnome_vfs_is_executable_command_string
(const char *command_string); |
gnome_vfs_list_deep_free ()
void gnome_vfs_list_deep_free (GList *list); |
Free list, and call g_free() on all data members.
gnome_vfs_get_volume_free_space ()
gnome_vfs_icon_path_from_filename ()
char* gnome_vfs_icon_path_from_filename
(const char *filename); |
gnome_vfs_is_primary_thread ()
gboolean gnome_vfs_is_primary_thread (void); |
Check if the current thread is the thread with the main glib event loop.
GNOME_VFS_ASSERT_PRIMARY_THREAD
#define GNOME_VFS_ASSERT_PRIMARY_THREAD g_assert (gnome_vfs_is_primary_thread()) |
Asserts that the current thread is the thread with
the main glib event loop
GNOME_VFS_ASSERT_SECONDARY_THREAD
#define GNOME_VFS_ASSERT_SECONDARY_THREAD g_assert (!gnome_vfs_is_primary_thread()) |
Asserts that the current thread is NOT the thread with
the main glib event loop
gnome_vfs_read_entire_file ()
GnomeVFSResult gnome_vfs_read_entire_file (const char *uri,
int *file_size,
char **file_contents); |
Reads an entire file into memory for convenience. Beware accidentally
loading large files into memory with this function.