1 /*
2  * Nautilus-Actions
3  * A Nautilus extension which offers configurable context menu actions.
4  *
5  * Copyright (C) 2005 The GNOME Foundation
6  * Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
7  * Copyright (C) 2009-2014 Pierre Wieser and others (see AUTHORS)
8  *
9  * Nautilus-Actions is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License as
11  * published by the Free Software Foundation; either version 2 of
12  * the License, or (at your option) any later version.
13  *
14  * Nautilus-Actions is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with Nautilus-Actions; see the file COPYING. If not, see
21  * <http://www.gnu.org/licenses/>.
22  *
23  * Authors:
24  *   Frederic Ruaudel <grumz@grumz.net>
25  *   Rodrigo Moya <rodrigo@gnome-db.org>
26  *   Pierre Wieser <pwieser@trychlos.org>
27  *   ... and many others (see AUTHORS)
28  */
29 
30 #ifndef __NAUTILUS_ACTIONS_NA_PRIVATE_GNOME_VFS_URI_H__
31 #define __NAUTILUS_ACTIONS_NA_PRIVATE_GNOME_VFS_URI_H__
32 
33 /*
34  * pwi 2009-07-29
35  * shamelessly pull out of GnomeVFS (gnome-vfs-uri and consorts)
36  */
37 
38 /* gnome-vfs-uri.h - URI handling for the GNOME Virtual File System.
39 
40    Copyright (C) 1999 Free Software Foundation
41 
42    The Gnome Library is free software; you can redistribute it and/or
43    modify it under the terms of the GNU Library General Public License as
44    published by the Free Software Foundation; either version 2 of the
45    License, or (at your option) any later version.
46 
47    The Gnome Library is distributed in the hope that it will be useful,
48    but WITHOUT ANY WARRANTY; without even the implied warranty of
49    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
50    Library General Public License for more details.
51 
52    You should have received a copy of the GNU Library General Public
53    License along with the Gnome Library; see the file COPYING.LIB.  If not,
54    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
55    Boston, MA 02111-1307, USA.
56 
57    Author: Ettore Perazzoli <ettore@comm2000.it> */
58 
59 #include <glib.h>
60 
61 G_BEGIN_DECLS
62 
63 typedef struct {
64 	gchar *path;
65 	gchar *scheme;
66 	gchar *host_name;
67 	guint  host_port;
68 	gchar *user_name;
69 	gchar *password;
70 }
71 	NAGnomeVFSURI;
72 
73 /*
74  * GNOME_VFS_URI_MAGIC_CHR:
75  *
76  * The character used to divide location from
77  * extra "arguments" passed to the method.
78  **/
79 /*
80  * GNOME_VFS_URI_MAGIC_STR:
81  *
82  * The character used to divide location from
83  * extra "arguments" passed to the method.
84  **/
85 #define GNOME_VFS_URI_MAGIC_CHR	'#'
86 #define GNOME_VFS_URI_MAGIC_STR "#"
87 
88 /*
89  * GNOME_VFS_URI_PATH_CHR:
90  *
91  * Defines the path seperator character.
92  **/
93 /*
94  * GNOME_VFS_URI_PATH_STR:
95  *
96  * Defines the path seperator string.
97  **/
98 #define GNOME_VFS_URI_PATH_CHR '/'
99 #define GNOME_VFS_URI_PATH_STR "/"
100 
101 void na_gnome_vfs_uri_parse( NAGnomeVFSURI *vfs, const gchar *uri );
102 
103 void na_gnome_vfs_uri_free( NAGnomeVFSURI *vfs );
104 
105 G_END_DECLS
106 
107 #endif /* __NAUTILUS_ACTIONS_NA_PRIVATE_GNOME_VFS_URI_H__ */
108