• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GIO - GLib Input, Output and Streaming Library
2  *
3  * Copyright (C) 2020 Руслан Ижбулатов <lrn1986@gmail.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General
16  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 #ifndef __G_WIN32_FILE_SYNC_STREAM_H__
20 #define __G_WIN32_FILE_SYNC_STREAM_H__
21 
22 #include <gio/gio.h>
23 
24 #ifdef G_PLATFORM_WIN32
25 
26 typedef struct _GWin32FileSyncStream GWin32FileSyncStream;
27 
28 struct _GWin32FileSyncStream
29 {
30   IStream  self;
31   ULONG    ref_count;
32   HANDLE   file_handle;
33   gboolean owns_handle;
34   DWORD    stgm_mode;
35 };
36 
37 IStream *g_win32_file_sync_stream_new (HANDLE    file_handle,
38                                        gboolean  owns_handle,
39                                        DWORD     stgm_mode,
40                                        HRESULT  *output_hresult);
41 
42 #endif /* G_PLATFORM_WIN32 */
43 
44 #endif /* __G_WIN32_FILE_SYNC_STREAM_H__ */