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 | |
---|
27 | GnomeVFSURI *gnome_vfs_uri_new (const gchar *text_uri); |
---|
28 | GnomeVFSURI *gnome_vfs_uri_ref (GnomeVFSURI *uri); |
---|
29 | void gnome_vfs_uri_unref (GnomeVFSURI *uri); |
---|
30 | |
---|
31 | GnomeVFSURI *gnome_vfs_uri_append_string (const GnomeVFSURI *uri, |
---|
32 | const char *path); |
---|
33 | GnomeVFSURI *gnome_vfs_uri_append_path (const GnomeVFSURI *uri, |
---|
34 | const char *path); |
---|
35 | GnomeVFSURI *gnome_vfs_uri_append_file_name (const GnomeVFSURI *uri, |
---|
36 | const gchar *filename); |
---|
37 | gchar *gnome_vfs_uri_to_string (const GnomeVFSURI *uri, |
---|
38 | GnomeVFSURIHideOptions hide_options); |
---|
39 | GnomeVFSURI *gnome_vfs_uri_dup (const GnomeVFSURI *uri); |
---|
40 | gboolean gnome_vfs_uri_is_local (const GnomeVFSURI *uri); |
---|
41 | gboolean gnome_vfs_uri_has_parent (const GnomeVFSURI *uri); |
---|
42 | GnomeVFSURI *gnome_vfs_uri_get_parent (const GnomeVFSURI *uri); |
---|
43 | |
---|
44 | GnomeVFSToplevelURI *gnome_vfs_uri_get_toplevel (const GnomeVFSURI *uri); |
---|
45 | |
---|
46 | const gchar *gnome_vfs_uri_get_host_name (const GnomeVFSURI *uri); |
---|
47 | const gchar *gnome_vfs_uri_get_scheme (const GnomeVFSURI *uri); |
---|
48 | guint gnome_vfs_uri_get_host_port (const GnomeVFSURI *uri); |
---|
49 | const gchar *gnome_vfs_uri_get_user_name (const GnomeVFSURI *uri); |
---|
50 | const gchar *gnome_vfs_uri_get_password (const GnomeVFSURI *uri); |
---|
51 | |
---|
52 | void gnome_vfs_uri_set_host_name (GnomeVFSURI *uri, |
---|
53 | const gchar *host_name); |
---|
54 | void gnome_vfs_uri_set_host_port (GnomeVFSURI *uri, |
---|
55 | guint host_port); |
---|
56 | void gnome_vfs_uri_set_user_name (GnomeVFSURI *uri, |
---|
57 | const gchar *user_name); |
---|
58 | void gnome_vfs_uri_set_password (GnomeVFSURI *uri, |
---|
59 | const gchar *password); |
---|
60 | |
---|
61 | gboolean gnome_vfs_uri_equal (const GnomeVFSURI *a, |
---|
62 | const GnomeVFSURI *b); |
---|
63 | |
---|
64 | gboolean gnome_vfs_uri_is_parent (const GnomeVFSURI *parent, |
---|
65 | const GnomeVFSURI *item, |
---|
66 | gboolean recursive); |
---|
67 | |
---|
68 | const gchar *gnome_vfs_uri_get_path (const GnomeVFSURI *uri); |
---|
69 | const gchar *gnome_vfs_uri_get_basename (const GnomeVFSURI *uri); |
---|
70 | const gchar *gnome_vfs_uri_get_fragment_identifier (const GnomeVFSURI *uri); |
---|
71 | gchar *gnome_vfs_uri_extract_dirname (const GnomeVFSURI *uri); |
---|
72 | gchar *gnome_vfs_uri_extract_short_name (const GnomeVFSURI *uri); |
---|
73 | gchar *gnome_vfs_uri_extract_short_path_name (const GnomeVFSURI *uri); |
---|
74 | |
---|
75 | gint gnome_vfs_uri_hequal (gconstpointer a, |
---|
76 | gconstpointer b); |
---|
77 | guint gnome_vfs_uri_hash (gconstpointer p); |
---|
78 | |
---|
79 | GList *gnome_vfs_uri_list_ref (GList *list); |
---|
80 | GList *gnome_vfs_uri_list_unref (GList *list); |
---|
81 | GList *gnome_vfs_uri_list_copy (GList *list); |
---|
82 | void gnome_vfs_uri_list_free (GList *list); |
---|
83 | |
---|
84 | #endif /* GNOME_VFS_URI_H */ |
---|