3fe59706eed425c8e6d5ca7de9148fef9064b237
[mono.git] / mono / metadata / file-io-internals.h
1 /*
2  * Copyright 2016 Microsoft
3  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
4  */
5 #ifndef __MONO_FILE_IO_INTERNALS_H__
6 #define __MONO_FILE_IO_INTERNALS_H__
7
8 #include <config.h>
9 #include <glib.h>
10 #include "mono/metadata/object.h"
11 #include "mono/metadata/object-internals.h"
12
13 gboolean
14 mono_file_io_move_file (gunichar2 *path, gunichar2 *dest, gint32 *error);
15
16 gboolean
17 mono_file_io_copy_file (gunichar2 *path, gunichar2 *dest, gboolean overwrite, gint32 *error);
18
19 gint64
20 mono_file_io_get_file_size (HANDLE handle, gint32 *error);
21
22 gboolean
23 mono_file_io_lock_file (HANDLE handle, gint64 position, gint64 length, gint32 *error);
24
25 gboolean
26 mono_file_io_replace_file (gunichar2 *destinationFileName, gunichar2 *sourceFileName,
27                            gunichar2 *destinationBackupFileName, guint32 flags, gint32 *error);
28
29 gboolean
30 mono_file_io_unlock_file (HANDLE handle, gint64 position, gint64 length, gint32 *error);
31
32 #endif /* __MONO_FILE_IO_INTERNALS_H__ */