Whole document tree
    

Whole document tree

uri

uri

Name

uri -- 

Synopsis



GnomeVFSURI* gnome_vfs_uri_new              (const gchar *text_uri);
GnomeVFSURI* gnome_vfs_uri_resolve_relative (const GnomeVFSURI *base,
                                             const char *relative_reference);
GnomeVFSURI* gnome_vfs_uri_ref              (GnomeVFSURI *uri);
void        gnome_vfs_uri_unref             (GnomeVFSURI *uri);
GnomeVFSURI* gnome_vfs_uri_append_string    (const GnomeVFSURI *uri,
                                             const char *path);
GnomeVFSURI* gnome_vfs_uri_append_path      (const GnomeVFSURI *uri,
                                             const char *path);
GnomeVFSURI* gnome_vfs_uri_append_file_name (const GnomeVFSURI *uri,
                                             const char *filename);
char*       gnome_vfs_uri_to_string         (const GnomeVFSURI *uri,
                                             GnomeVFSURIHideOptions hide_options);
GnomeVFSURI* gnome_vfs_uri_dup              (const GnomeVFSURI *uri);
gboolean    gnome_vfs_uri_is_local          (const GnomeVFSURI *uri);
gboolean    gnome_vfs_uri_has_parent        (const GnomeVFSURI *uri);
GnomeVFSURI* gnome_vfs_uri_get_parent       (const GnomeVFSURI *uri);
GnomeVFSToplevelURI* gnome_vfs_uri_get_toplevel
                                            (const GnomeVFSURI *uri);
const char* gnome_vfs_uri_get_host_name     (const GnomeVFSURI *uri);
const char* gnome_vfs_uri_get_scheme        (const GnomeVFSURI *uri);
guint       gnome_vfs_uri_get_host_port     (const GnomeVFSURI *uri);
const char* gnome_vfs_uri_get_user_name     (const GnomeVFSURI *uri);
const char* gnome_vfs_uri_get_password      (const GnomeVFSURI *uri);
void        gnome_vfs_uri_set_host_name     (GnomeVFSURI *uri,
                                             const char *host_name);
void        gnome_vfs_uri_set_host_port     (GnomeVFSURI *uri,
                                             guint host_port);
void        gnome_vfs_uri_set_user_name     (GnomeVFSURI *uri,
                                             const char *user_name);
void        gnome_vfs_uri_set_password      (GnomeVFSURI *uri,
                                             const char *password);
gboolean    gnome_vfs_uri_equal             (const GnomeVFSURI *a,
                                             const GnomeVFSURI *b);
gboolean    gnome_vfs_uri_is_parent         (const GnomeVFSURI *parent,
                                             const GnomeVFSURI *item,
                                             gboolean recursive);
const char* gnome_vfs_uri_get_path          (const GnomeVFSURI *uri);
const char* gnome_vfs_uri_get_basename      (const GnomeVFSURI *uri);
const char* gnome_vfs_uri_get_fragment_identifier
                                            (const GnomeVFSURI *uri);
char*       gnome_vfs_uri_extract_dirname   (const GnomeVFSURI *uri);
char*       gnome_vfs_uri_extract_short_name
                                            (const GnomeVFSURI *uri);
char*       gnome_vfs_uri_extract_short_path_name
                                            (const GnomeVFSURI *uri);
gint        gnome_vfs_uri_hequal            (gconstpointer a,
                                             gconstpointer b);
guint       gnome_vfs_uri_hash              (gconstpointer p);
GList*      gnome_vfs_uri_list_ref          (GList *list);
GList*      gnome_vfs_uri_list_unref        (GList *list);
GList*      gnome_vfs_uri_list_copy         (GList *list);
void        gnome_vfs_uri_list_free         (GList *list);
#define     GNOME_VFS_URI_MAGIC_CHR
#define     GNOME_VFS_URI_MAGIC_STR
#define     GNOME_VFS_URI_PATH_CHR
#define     GNOME_VFS_URI_PATH_STR

Description

Details

gnome_vfs_uri_new ()

GnomeVFSURI* gnome_vfs_uri_new              (const gchar *text_uri);

Create a new URI from text_uri.


gnome_vfs_uri_resolve_relative ()

GnomeVFSURI* gnome_vfs_uri_resolve_relative (const GnomeVFSURI *base,
                                             const char *relative_reference);

Create a new URI from text_uri relative to base.


gnome_vfs_uri_ref ()

GnomeVFSURI* gnome_vfs_uri_ref              (GnomeVFSURI *uri);

Increment uri's reference count.


gnome_vfs_uri_unref ()

void        gnome_vfs_uri_unref             (GnomeVFSURI *uri);

Decrement uri's reference count. If the reference count reaches zero, uri is destroyed.


gnome_vfs_uri_append_string ()

GnomeVFSURI* gnome_vfs_uri_append_string    (const GnomeVFSURI *uri,
                                             const char *path);

Create a new URI obtained by appending path to uri. This will take care of adding an appropriate directory separator between the end of uri and the start of path if necessary.


gnome_vfs_uri_append_path ()

GnomeVFSURI* gnome_vfs_uri_append_path      (const GnomeVFSURI *uri,
                                             const char *path);

Create a new URI obtained by appending path to uri. This will take care of adding an appropriate directory separator between the end of uri and the start of path if necessary as well as escaping path as necessary.


gnome_vfs_uri_append_file_name ()

GnomeVFSURI* gnome_vfs_uri_append_file_name (const GnomeVFSURI *uri,
                                             const char *filename);

Create a new URI obtained by appending file_name to uri. This will take care of adding an appropriate directory separator between the end of uri and the start of file_name if necessary.


gnome_vfs_uri_to_string ()

char*       gnome_vfs_uri_to_string         (const GnomeVFSURI *uri,
                                             GnomeVFSURIHideOptions hide_options);

Translate uri into a printable string. The string will not contain the URI elements specified by hide_options.


gnome_vfs_uri_dup ()

GnomeVFSURI* gnome_vfs_uri_dup              (const GnomeVFSURI *uri);

Duplicate uri.


gnome_vfs_uri_is_local ()

gboolean    gnome_vfs_uri_is_local          (const GnomeVFSURI *uri);

Check if uri is a local (native) file system.


gnome_vfs_uri_has_parent ()

gboolean    gnome_vfs_uri_has_parent        (const GnomeVFSURI *uri);

Check if URI has a parent or not.


gnome_vfs_uri_get_parent ()

GnomeVFSURI* gnome_vfs_uri_get_parent       (const GnomeVFSURI *uri);

Retrieve uri's parent URI.


gnome_vfs_uri_get_toplevel ()

GnomeVFSToplevelURI* gnome_vfs_uri_get_toplevel
                                            (const GnomeVFSURI *uri);

Retrieve the toplevel URI in uri.


gnome_vfs_uri_get_host_name ()

const char* gnome_vfs_uri_get_host_name     (const GnomeVFSURI *uri);

Retrieve the host name for uri.


gnome_vfs_uri_get_scheme ()

const char* gnome_vfs_uri_get_scheme        (const GnomeVFSURI *uri);

Retrieve the scheme used for uri


gnome_vfs_uri_get_host_port ()

guint       gnome_vfs_uri_get_host_port     (const GnomeVFSURI *uri);

Retrieve the host port number in uri.


gnome_vfs_uri_get_user_name ()

const char* gnome_vfs_uri_get_user_name     (const GnomeVFSURI *uri);

Retrieve the user name in uri.


gnome_vfs_uri_get_password ()

const char* gnome_vfs_uri_get_password      (const GnomeVFSURI *uri);

Retrieve the password for uri.


gnome_vfs_uri_set_host_name ()

void        gnome_vfs_uri_set_host_name     (GnomeVFSURI *uri,
                                             const char *host_name);

Set host_name as the host name accessed by uri.


gnome_vfs_uri_set_host_port ()

void        gnome_vfs_uri_set_host_port     (GnomeVFSURI *uri,
                                             guint host_port);

Set the host port number in uri. If host_port is zero, the default port for uri's toplevel access method is used.


gnome_vfs_uri_set_user_name ()

void        gnome_vfs_uri_set_user_name     (GnomeVFSURI *uri,
                                             const char *user_name);

Set user_name as the user name for uri.


gnome_vfs_uri_set_password ()

void        gnome_vfs_uri_set_password      (GnomeVFSURI *uri,
                                             const char *password);

Set password as the password for uri.



gnome_vfs_uri_is_parent ()

gboolean    gnome_vfs_uri_is_parent         (const GnomeVFSURI *parent,
                                             const GnomeVFSURI *item,
                                             gboolean recursive);

Check if possible_child is contained by possible_parent. If recursive is FALSE, just try the immediate parent directory, else search up through the hierarchy.



gnome_vfs_uri_get_basename ()

const char* gnome_vfs_uri_get_basename      (const GnomeVFSURI *uri);

Retrieve base file name for uri.


gnome_vfs_uri_get_fragment_identifier ()

const char* gnome_vfs_uri_get_fragment_identifier
                                            (const GnomeVFSURI *uri);


gnome_vfs_uri_extract_dirname ()

char*       gnome_vfs_uri_extract_dirname   (const GnomeVFSURI *uri);

Extract the name of the directory in which the file pointed to by uri is stored as a newly allocated string. The string will end with a GNOME_VFS_URI_PATH_CHR.


gnome_vfs_uri_extract_short_name ()

char*       gnome_vfs_uri_extract_short_name
                                            (const GnomeVFSURI *uri);

Retrieve base file name for uri, ignoring any trailing path separators. This matches the XPG definition of basename, but not g_basename. This is often useful when you want the name of something that's pointed to by a uri, and don't care whether the uri has a directory or file form. If uri points to the root of a domain, returns the host name. If there's no host name, returns GNOME_VFS_URI_PATH_STR.

See also: gnome_vfs_uri_extract_short_path_name.


gnome_vfs_uri_extract_short_path_name ()

char*       gnome_vfs_uri_extract_short_path_name
                                            (const GnomeVFSURI *uri);

Retrieve base file name for uri, ignoring any trailing path separators. This matches the XPG definition of basename, but not g_basename. This is often useful when you want the name of something that's pointed to by a uri, and don't care whether the uri has a directory or file form. If uri points to the root (including the root of any domain), returns GNOME_VFS_URI_PATH_STR.

See also: gnome_vfs_uri_extract_short_name.


gnome_vfs_uri_hequal ()

gint        gnome_vfs_uri_hequal            (gconstpointer a,
                                             gconstpointer b);


gnome_vfs_uri_hash ()

guint       gnome_vfs_uri_hash              (gconstpointer p);


gnome_vfs_uri_list_ref ()

GList*      gnome_vfs_uri_list_ref          (GList *list);


gnome_vfs_uri_list_unref ()

GList*      gnome_vfs_uri_list_unref        (GList *list);


gnome_vfs_uri_list_copy ()

GList*      gnome_vfs_uri_list_copy         (GList *list);


gnome_vfs_uri_list_free ()

void        gnome_vfs_uri_list_free         (GList *list);


GNOME_VFS_URI_MAGIC_CHR

#define GNOME_VFS_URI_MAGIC_CHR	'#'


GNOME_VFS_URI_MAGIC_STR

#define GNOME_VFS_URI_MAGIC_STR "#"


GNOME_VFS_URI_PATH_CHR

#define GNOME_VFS_URI_PATH_CHR '/'


GNOME_VFS_URI_PATH_STR

#define GNOME_VFS_URI_PATH_STR "/"