summaryrefslogtreecommitdiffstats
path: root/src/H5FDwindows.h
blob: a43e16fc78d912fa63b59fc206943e3deaae4518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://www.hdfgroup.org/licenses.               *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/*
 * Programmer:  Scott Wegner
 *		Based on code by Robb Matzke
 *              Thursday, May 24 2007
 *
 * Purpose:	The public header file for the windows driver.
 */
#ifndef H5FDwindows_H
#define H5FDwindows_H

#define H5FD_WINDOWS (H5FD_sec2_init())

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/**
 * \ingroup FAPL
 *
 * \brief Sets the Windows I/O driver
 *
 * \fapl_id
 * \returns \herr_t
 *
 * \details H5Pset_fapl_windows() sets the default HDF5 Windows I/O driver on
 *          Windows systems.
 *
 *          Since the HDF5 library uses this driver, #H5FD_WINDOWS, by default
 *          on Windows systems, it is not normally necessary for a user
 *          application to call H5Pset_fapl_windows(). While it is not
 *          recommended, there may be times when a user chooses to set a
 *          different HDF5 driver, such as the standard I/O driver (#H5FD_STDIO)
 *          or the sec2 driver (#H5FD_SEC2), in a Windows
 *          application. H5Pset_fapl_windows() is provided so that the
 *          application can return to the Windows I/O driver when the time
 *          comes.
 *
 *          Only the Windows driver is tested on Windows systems; other drivers
 *          are used at the application’s and the user’s risk.
 *
 *          Furthermore, the Windows driver is tested and available only on
 *          Windows systems; it is not available on non-Windows systems.
 *
 * \since 1.8.0
 *
 */
H5_DLL herr_t H5Pset_fapl_windows(hid_t fapl_id);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* H5FDwindows_H */