ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gnome-vfs2-2.3.8-1.src.rpm
[gnome-vfs-httpcaptive.git] / libgnomevfs / gnome-vfs-private-utils.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* gnome-vfs-private-utils.h - Private utility functions for the GNOME Virtual
3    File System.
4
5    Copyright (C) 1999 Free Software Foundation
6
7    The Gnome Library is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Library General Public License as
9    published by the Free Software Foundation; either version 2 of the
10    License, or (at your option) any later version.
11
12    The Gnome Library is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    Library General Public License for more details.
16
17    You should have received a copy of the GNU Library General Public
18    License along with the Gnome Library; see the file COPYING.LIB.  If not,
19    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20    Boston, MA 02111-1307, USA.
21
22    Author: Ettore Perazzoli <ettore@comm2000.it> */
23
24 #ifndef GNOME_VFS_PRIVATE_UTILS_H
25 #define GNOME_VFS_PRIVATE_UTILS_H
26
27 /* You should not use calls in here outside GnomeVFS. The APIs in here may
28  * break even when the GnomeVFS APIs are otherwise frozen.
29  */
30
31 #include <libgnomevfs/gnome-vfs-cancellation.h>
32 #include <libgnomevfs/gnome-vfs-handle.h>
33 #include <libgnomevfs/gnome-vfs-process.h>
34 #include <libgnomevfs/gnome-vfs-uri.h>
35
36 G_BEGIN_DECLS
37
38 gboolean         _gnome_vfs_have_ipv6                    (void);
39
40 gchar           *_gnome_vfs_canonicalize_pathname         (char *path);
41 GnomeVFSResult   gnome_vfs_remove_optional_escapes       (char *escaped_uri);
42
43 pid_t            gnome_vfs_forkexec     (const gchar *file_name,
44                                          const gchar * const argv[],
45                                          GnomeVFSProcessOptions options,
46                                          GnomeVFSProcessInitFunc init_func,
47                                          gpointer data);
48 GnomeVFSProcessRunResult
49                 gnome_vfs_process_run_cancellable
50                                         (const gchar *file_name,
51                                          const gchar * const argv[],
52                                          GnomeVFSProcessOptions options,
53                                          GnomeVFSCancellation *cancellation,
54                                          guint *exit_value);
55
56 GnomeVFSResult  gnome_vfs_create_temp   (const gchar *prefix,
57                                          gchar **name_return,
58                                          GnomeVFSHandle **handle_return);
59 gboolean        gnome_vfs_atotm         (const gchar *time_string,
60                                          time_t *value_return);
61
62 GList          *gnome_vfs_i18n_get_language_list
63                                         (const gchar *category_name);
64
65 GnomeVFSURI    *gnome_vfs_uri_new_private (const gchar *text_uri, 
66                                            gboolean allow_unknown_method,
67                                            gboolean allow_unsafe_method,
68                                            gboolean allow_translate);
69
70
71 gboolean        _gnome_vfs_istr_has_prefix (const char *haystack,
72                                            const char *needle);
73 gboolean        _gnome_vfs_istr_has_suffix (const char *haystack,
74                                            const char *needle);
75
76 GnomeVFSResult _gnome_vfs_uri_resolve_all_symlinks_uri (GnomeVFSURI *uri,
77                                                         GnomeVFSURI **result_uri);
78 GnomeVFSResult  _gnome_vfs_uri_resolve_all_symlinks (const char *text_uri,
79                                                      char **resolved_text_uri);
80
81 gboolean  _gnome_vfs_uri_is_in_subdir (GnomeVFSURI *uri, GnomeVFSURI *dir);
82
83
84 GnomeVFSResult _gnome_vfs_url_show_using_handler_with_env (const char   *url,
85                                                            char        **envp);
86 gboolean       _gnome_vfs_use_handler_for_scheme          (const char   *scheme);
87
88 gboolean       _gnome_vfs_prepend_terminal_to_vector      (int          *argc,
89                                                            char       ***argv);
90
91 G_END_DECLS
92
93 #endif /* _GNOME_VFS_PRIVATE_UTILS_H */