1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* gnome-vfs-ops.h - Synchronous operations for the GNOME Virtual File |
---|
3 | System. |
---|
4 | |
---|
5 | Copyright (C) 1999, 2001 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 | Seth Nickell <snickell@stanford.edu> |
---|
24 | */ |
---|
25 | |
---|
26 | #ifndef GNOME_VFS_OPS_H |
---|
27 | #define GNOME_VFS_OPS_H |
---|
28 | |
---|
29 | #include <libgnomevfs/gnome-vfs-file-info.h> |
---|
30 | #include <libgnomevfs/gnome-vfs-handle.h> |
---|
31 | #include <libgnomevfs/gnome-vfs-uri.h> |
---|
32 | |
---|
33 | |
---|
34 | GnomeVFSResult gnome_vfs_open (GnomeVFSHandle **handle, |
---|
35 | const gchar *text_uri, |
---|
36 | GnomeVFSOpenMode open_mode); |
---|
37 | |
---|
38 | GnomeVFSResult gnome_vfs_open_uri (GnomeVFSHandle **handle, |
---|
39 | GnomeVFSURI *uri, |
---|
40 | GnomeVFSOpenMode open_mode); |
---|
41 | |
---|
42 | GnomeVFSResult gnome_vfs_create (GnomeVFSHandle **handle, |
---|
43 | const gchar *text_uri, |
---|
44 | GnomeVFSOpenMode open_mode, |
---|
45 | gboolean exclusive, |
---|
46 | guint perm); |
---|
47 | |
---|
48 | GnomeVFSResult gnome_vfs_create_uri (GnomeVFSHandle **handle, |
---|
49 | GnomeVFSURI *uri, |
---|
50 | GnomeVFSOpenMode open_mode, |
---|
51 | gboolean exclusive, |
---|
52 | guint perm); |
---|
53 | |
---|
54 | GnomeVFSResult gnome_vfs_close (GnomeVFSHandle *handle); |
---|
55 | |
---|
56 | GnomeVFSResult gnome_vfs_read (GnomeVFSHandle *handle, |
---|
57 | gpointer buffer, |
---|
58 | GnomeVFSFileSize bytes, |
---|
59 | GnomeVFSFileSize *bytes_read); |
---|
60 | |
---|
61 | GnomeVFSResult gnome_vfs_write (GnomeVFSHandle *handle, |
---|
62 | gconstpointer buffer, |
---|
63 | GnomeVFSFileSize bytes, |
---|
64 | GnomeVFSFileSize *bytes_written); |
---|
65 | |
---|
66 | GnomeVFSResult gnome_vfs_seek (GnomeVFSHandle *handle, |
---|
67 | GnomeVFSSeekPosition whence, |
---|
68 | GnomeVFSFileOffset offset); |
---|
69 | |
---|
70 | GnomeVFSResult gnome_vfs_tell (GnomeVFSHandle *handle, |
---|
71 | GnomeVFSFileSize *offset_return); |
---|
72 | |
---|
73 | GnomeVFSResult gnome_vfs_get_file_info (const gchar *text_uri, |
---|
74 | GnomeVFSFileInfo *info, |
---|
75 | GnomeVFSFileInfoOptions |
---|
76 | options); |
---|
77 | |
---|
78 | GnomeVFSResult gnome_vfs_get_file_info_uri |
---|
79 | (GnomeVFSURI *uri, |
---|
80 | GnomeVFSFileInfo *info, |
---|
81 | GnomeVFSFileInfoOptions |
---|
82 | options); |
---|
83 | |
---|
84 | GnomeVFSResult gnome_vfs_get_file_info_from_handle |
---|
85 | (GnomeVFSHandle *handle, |
---|
86 | GnomeVFSFileInfo *info, |
---|
87 | GnomeVFSFileInfoOptions |
---|
88 | options); |
---|
89 | |
---|
90 | GnomeVFSResult gnome_vfs_truncate (const gchar *text_uri, |
---|
91 | GnomeVFSFileSize length); |
---|
92 | GnomeVFSResult gnome_vfs_truncate_uri (GnomeVFSURI *uri, |
---|
93 | GnomeVFSFileSize length); |
---|
94 | GnomeVFSResult gnome_vfs_truncate_handle (GnomeVFSHandle *handle, |
---|
95 | GnomeVFSFileSize length); |
---|
96 | |
---|
97 | GnomeVFSResult gnome_vfs_make_directory_for_uri |
---|
98 | (GnomeVFSURI *uri, guint perm); |
---|
99 | GnomeVFSResult gnome_vfs_make_directory (const gchar *text_uri, |
---|
100 | guint perm); |
---|
101 | |
---|
102 | GnomeVFSResult gnome_vfs_remove_directory_from_uri |
---|
103 | (GnomeVFSURI *uri); |
---|
104 | GnomeVFSResult gnome_vfs_remove_directory (const gchar *text_uri); |
---|
105 | |
---|
106 | GnomeVFSResult gnome_vfs_unlink_from_uri (GnomeVFSURI *uri); |
---|
107 | GnomeVFSResult gnome_vfs_create_symbolic_link (GnomeVFSURI *uri, |
---|
108 | const gchar *target_reference); |
---|
109 | GnomeVFSResult gnome_vfs_unlink (const gchar *text_uri); |
---|
110 | |
---|
111 | GnomeVFSResult gnome_vfs_move_uri (GnomeVFSURI *old_uri, |
---|
112 | GnomeVFSURI *new_uri, |
---|
113 | gboolean force_replace); |
---|
114 | GnomeVFSResult gnome_vfs_move (const gchar *old_text_uri, |
---|
115 | const gchar *new_text_uri, |
---|
116 | gboolean force_replace); |
---|
117 | |
---|
118 | GnomeVFSResult gnome_vfs_check_same_fs_uris (GnomeVFSURI *source_uri, |
---|
119 | GnomeVFSURI *target_uri, |
---|
120 | gboolean *same_fs_return); |
---|
121 | GnomeVFSResult gnome_vfs_check_same_fs (const gchar *source, |
---|
122 | const gchar *target, |
---|
123 | gboolean *same_fs_return); |
---|
124 | |
---|
125 | gboolean gnome_vfs_uri_exists (GnomeVFSURI *uri); |
---|
126 | |
---|
127 | GnomeVFSResult gnome_vfs_set_file_info_uri (GnomeVFSURI *uri, |
---|
128 | GnomeVFSFileInfo *info, |
---|
129 | GnomeVFSSetFileInfoMask mask); |
---|
130 | GnomeVFSResult gnome_vfs_set_file_info (const gchar *text_uri, |
---|
131 | GnomeVFSFileInfo *info, |
---|
132 | GnomeVFSSetFileInfoMask mask); |
---|
133 | |
---|
134 | #endif /* GNOME_VFS_OPS_H */ |
---|