8.9 Miscellaneous Utilities


8.9 Miscellaneous Utilities

The functions in this section don't fit anywhere else in this chapter:

  • char *gnome_vfs_get_local_path_from_uri(const char * uri_string )

    If uri_string is a file on the local file system, returns a newly allocated string with just that path .

  • char *gnome_vfs_get_uri_from_local_path(const char * full_path )

    If full_path exists, prepends file:/// and returns the result as a newly allocated string. Otherwise, this function returns NULL .

  • gboolean gnome_vfs_is_executable_command_string(const char * command )

    If command is in the current search path (the PATH environment variable), or if command is a full executable pathname, returns TRUE .

  • GnomeVFSResult gnome_vfs_get_volume_free_space(const GnomeVFSURI * uri , GnomeFileSize * bytes_addr )

    Writes the number of free bytes in uri 's file system into * bytes_addr . This function works only if uri is on a local file system.

  • char *gnome_vfs_icon_path_from_filename(const char * filename )

    Returns the full path of the icon file filename or NULL if GnomeVFS can't find the icon. This function can find files only in $(PREFIX)/share/pixmaps .




The Official GNOME 2 Developers Guide
The Official GNOME 2 Developers Guide
ISBN: 1593270305
EAN: 2147483647
Year: 2004
Pages: 108

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net