[15496] | 1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
| 2 | /* gnome-vfs-private-ops.h - Private synchronous operations for the GNOME |
---|
| 3 | Virtual 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@gnu.org> */ |
---|
| 23 | |
---|
| 24 | #ifndef _GNOME_VFS_PRIVATE_OPS_H |
---|
| 25 | #define _GNOME_VFS_PRIVATE_OPS_H |
---|
| 26 | |
---|
| 27 | GnomeVFSResult gnome_vfs_open_uri_cancellable |
---|
| 28 | (GnomeVFSHandle **handle, |
---|
| 29 | GnomeVFSURI *uri, |
---|
| 30 | GnomeVFSOpenMode open_mode, |
---|
| 31 | GnomeVFSContext *context); |
---|
| 32 | |
---|
| 33 | GnomeVFSResult gnome_vfs_create_uri_cancellable |
---|
| 34 | (GnomeVFSHandle **handle, |
---|
| 35 | GnomeVFSURI *uri, |
---|
| 36 | GnomeVFSOpenMode open_mode, |
---|
| 37 | gboolean exclusive, |
---|
| 38 | guint perm, |
---|
| 39 | GnomeVFSContext *context); |
---|
| 40 | |
---|
| 41 | GnomeVFSResult gnome_vfs_close_cancellable |
---|
| 42 | (GnomeVFSHandle *handle, |
---|
| 43 | GnomeVFSContext *context); |
---|
| 44 | |
---|
| 45 | GnomeVFSResult gnome_vfs_read_cancellable |
---|
| 46 | (GnomeVFSHandle *handle, |
---|
| 47 | gpointer buffer, |
---|
| 48 | GnomeVFSFileSize bytes, |
---|
| 49 | GnomeVFSFileSize *bytes_written, |
---|
| 50 | GnomeVFSContext *context); |
---|
| 51 | |
---|
| 52 | GnomeVFSResult gnome_vfs_write_cancellable |
---|
| 53 | (GnomeVFSHandle *handle, |
---|
| 54 | gconstpointer buffer, |
---|
| 55 | GnomeVFSFileSize bytes, |
---|
| 56 | GnomeVFSFileSize *bytes_written, |
---|
| 57 | GnomeVFSContext *context); |
---|
| 58 | |
---|
| 59 | GnomeVFSResult gnome_vfs_seek_cancellable |
---|
| 60 | (GnomeVFSHandle *handle, |
---|
| 61 | GnomeVFSSeekPosition whence, |
---|
| 62 | GnomeVFSFileOffset offset, |
---|
| 63 | GnomeVFSContext *context); |
---|
| 64 | |
---|
| 65 | GnomeVFSResult gnome_vfs_get_file_info_uri_cancellable |
---|
| 66 | (GnomeVFSURI *uri, |
---|
| 67 | GnomeVFSFileInfo *info, |
---|
| 68 | GnomeVFSFileInfoOptions options, |
---|
| 69 | GnomeVFSContext *context); |
---|
| 70 | |
---|
| 71 | GnomeVFSResult gnome_vfs_get_file_info_from_handle_cancellable |
---|
| 72 | (GnomeVFSHandle *handle, |
---|
| 73 | GnomeVFSFileInfo *info, |
---|
| 74 | GnomeVFSFileInfoOptions options, |
---|
| 75 | GnomeVFSContext *context); |
---|
| 76 | |
---|
| 77 | GnomeVFSResult gnome_vfs_truncate_uri_cancellable (GnomeVFSURI *uri, |
---|
| 78 | GnomeVFSFileSize length, |
---|
| 79 | GnomeVFSContext *context); |
---|
| 80 | |
---|
| 81 | GnomeVFSResult gnome_vfs_truncate_handle_cancellable (GnomeVFSHandle *handle, |
---|
| 82 | GnomeVFSFileSize length, |
---|
| 83 | GnomeVFSContext *context); |
---|
| 84 | |
---|
| 85 | GnomeVFSResult gnome_vfs_make_directory_for_uri_cancellable |
---|
| 86 | (GnomeVFSURI *uri, |
---|
| 87 | guint perm, |
---|
| 88 | GnomeVFSContext *context); |
---|
| 89 | |
---|
| 90 | GnomeVFSResult gnome_vfs_find_directory_cancellable (GnomeVFSURI *near_uri, |
---|
| 91 | GnomeVFSFindDirectoryKind kind, |
---|
| 92 | GnomeVFSURI **result_uri, |
---|
| 93 | gboolean create_if_needed, |
---|
| 94 | gboolean find_if_needed, |
---|
| 95 | guint permissions, |
---|
| 96 | GnomeVFSContext *context); |
---|
| 97 | |
---|
| 98 | GnomeVFSResult gnome_vfs_remove_directory_from_uri_cancellable |
---|
| 99 | (GnomeVFSURI *uri, |
---|
| 100 | GnomeVFSContext *context); |
---|
| 101 | |
---|
| 102 | GnomeVFSResult gnome_vfs_unlink_from_uri_cancellable |
---|
| 103 | (GnomeVFSURI *uri, |
---|
| 104 | GnomeVFSContext *context); |
---|
| 105 | GnomeVFSResult gnome_vfs_create_symbolic_link_cancellable |
---|
| 106 | (GnomeVFSURI *uri, |
---|
| 107 | const gchar *target_reference, |
---|
| 108 | GnomeVFSContext *context); |
---|
| 109 | GnomeVFSResult gnome_vfs_move_uri_cancellable |
---|
| 110 | (GnomeVFSURI *old, |
---|
| 111 | GnomeVFSURI *new, |
---|
| 112 | gboolean force_replace, |
---|
| 113 | GnomeVFSContext *context); |
---|
| 114 | |
---|
| 115 | GnomeVFSResult gnome_vfs_check_same_fs_uris_cancellable |
---|
| 116 | (GnomeVFSURI *a, |
---|
| 117 | GnomeVFSURI *b, |
---|
| 118 | gboolean *same_fs_return, |
---|
| 119 | GnomeVFSContext *context); |
---|
| 120 | |
---|
| 121 | GnomeVFSResult gnome_vfs_set_file_info_cancellable |
---|
| 122 | (GnomeVFSURI *a, |
---|
| 123 | const GnomeVFSFileInfo *info, |
---|
| 124 | GnomeVFSSetFileInfoMask mask, |
---|
| 125 | GnomeVFSContext *context); |
---|
| 126 | |
---|
| 127 | GnomeVFSResult gnome_vfs_xfer_private (const GList *source_uri_list, |
---|
| 128 | const GList *target_uri_list, |
---|
| 129 | GnomeVFSXferOptions xfer_options, |
---|
| 130 | GnomeVFSXferErrorMode error_mode, |
---|
| 131 | GnomeVFSXferOverwriteMode overwrite_mode, |
---|
| 132 | GnomeVFSXferProgressCallback progress_callback, |
---|
| 133 | gpointer data, |
---|
| 134 | GnomeVFSXferProgressCallback sync_progress_callback, |
---|
| 135 | gpointer sync_progress_data); |
---|
| 136 | |
---|
| 137 | #endif /* _GNOME_VFS_PRIVATE_OPS_H */ |
---|