source: trunk/third/gnome-vfs/libgnomevfs/gnome-vfs-uri.h @ 15497

Revision 15497, 4.2 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15496, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/* gnome-vfs-uri.h - URI handling for the GNOME Virtual File System.
3
4   Copyright (C) 1999 Free Software Foundation
5
6   The Gnome Library is free software; you can redistribute it and/or
7   modify it under the terms of the GNU Library General Public License as
8   published by the Free Software Foundation; either version 2 of the
9   License, or (at your option) any later version.
10
11   The Gnome Library is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   Library General Public License for more details.
15
16   You should have received a copy of the GNU Library General Public
17   License along with the Gnome Library; see the file COPYING.LIB.  If not,
18   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19   Boston, MA 02111-1307, USA.
20
21   Author: Ettore Perazzoli <ettore@comm2000.it>
22*/
23
24#ifndef GNOME_VFS_URI_H
25#define GNOME_VFS_URI_H
26
27GnomeVFSURI          *gnome_vfs_uri_new                   (const gchar *text_uri);
28GnomeVFSURI          *gnome_vfs_uri_ref                   (GnomeVFSURI *uri);
29void                  gnome_vfs_uri_unref                 (GnomeVFSURI *uri);
30
31GnomeVFSURI          *gnome_vfs_uri_append_string         (const GnomeVFSURI *uri,
32                                                           const char *path);
33GnomeVFSURI          *gnome_vfs_uri_append_path           (const GnomeVFSURI *uri,
34                                                           const char *path);
35GnomeVFSURI          *gnome_vfs_uri_append_file_name      (const GnomeVFSURI *uri,
36                                                           const gchar *filename);
37gchar                *gnome_vfs_uri_to_string             (const GnomeVFSURI *uri,
38                                                           GnomeVFSURIHideOptions hide_options);
39GnomeVFSURI          *gnome_vfs_uri_dup                   (const GnomeVFSURI *uri);
40gboolean              gnome_vfs_uri_is_local              (const GnomeVFSURI *uri);
41gboolean              gnome_vfs_uri_has_parent            (const GnomeVFSURI *uri);
42GnomeVFSURI          *gnome_vfs_uri_get_parent            (const GnomeVFSURI *uri);
43
44GnomeVFSToplevelURI *gnome_vfs_uri_get_toplevel           (const GnomeVFSURI *uri);
45
46const gchar         *gnome_vfs_uri_get_host_name          (const GnomeVFSURI *uri);
47const gchar         *gnome_vfs_uri_get_scheme             (const GnomeVFSURI *uri);
48guint                gnome_vfs_uri_get_host_port          (const GnomeVFSURI *uri);
49const gchar         *gnome_vfs_uri_get_user_name          (const GnomeVFSURI *uri);
50const gchar         *gnome_vfs_uri_get_password           (const GnomeVFSURI *uri);
51
52void                 gnome_vfs_uri_set_host_name          (GnomeVFSURI *uri,
53                                                           const gchar *host_name);
54void                 gnome_vfs_uri_set_host_port          (GnomeVFSURI *uri,
55                                                           guint host_port);
56void                 gnome_vfs_uri_set_user_name          (GnomeVFSURI *uri,
57                                                           const gchar *user_name);
58void                 gnome_vfs_uri_set_password           (GnomeVFSURI *uri,
59                                                           const gchar *password);
60
61gboolean             gnome_vfs_uri_equal                  (const GnomeVFSURI *a,
62                                                           const GnomeVFSURI *b);
63
64gboolean             gnome_vfs_uri_is_parent              (const GnomeVFSURI *parent,
65                                                           const GnomeVFSURI *item,
66                                                           gboolean recursive);
67                                 
68const gchar         *gnome_vfs_uri_get_path                (const GnomeVFSURI *uri);
69const gchar         *gnome_vfs_uri_get_basename            (const GnomeVFSURI *uri);
70const gchar         *gnome_vfs_uri_get_fragment_identifier (const GnomeVFSURI *uri);
71gchar               *gnome_vfs_uri_extract_dirname         (const GnomeVFSURI *uri);
72gchar               *gnome_vfs_uri_extract_short_name      (const GnomeVFSURI *uri);
73gchar               *gnome_vfs_uri_extract_short_path_name (const GnomeVFSURI *uri);
74
75gint                 gnome_vfs_uri_hequal                  (gconstpointer a,
76                                                            gconstpointer b);
77guint                gnome_vfs_uri_hash                    (gconstpointer p);
78
79GList               *gnome_vfs_uri_list_ref                (GList *list);
80GList               *gnome_vfs_uri_list_unref              (GList *list);
81GList               *gnome_vfs_uri_list_copy               (GList *list);
82void                 gnome_vfs_uri_list_free               (GList *list);
83
84#endif /* GNOME_VFS_URI_H */
Note: See TracBrowser for help on using the repository browser.