H5FDwindows.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2. * Copyright by The HDF Group. *
  3. * Copyright by the Board of Trustees of the University of Illinois. *
  4. * All rights reserved. *
  5. * *
  6. * This file is part of HDF5. The full HDF5 copyright notice, including *
  7. * terms governing use, modification, and redistribution, is contained in *
  8. * the COPYING file, which can be found at the root of the source code *
  9. * distribution tree, or in https://www.hdfgroup.org/licenses. *
  10. * If you do not have access to either file, you may request a copy from *
  11. * help@hdfgroup.org. *
  12. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  13. /*
  14. * Programmer: Scott Wegner
  15. * Based on code by Robb Matzke
  16. * Thursday, May 24 2007
  17. *
  18. * Purpose: The public header file for the windows driver.
  19. */
  20. #ifndef H5FDwindows_H
  21. #define H5FDwindows_H
  22. #define H5FD_WINDOWS (H5FD_sec2_init())
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif /* __cplusplus */
  26. /**
  27. * \ingroup FAPL
  28. *
  29. * \brief Sets the Windows I/O driver
  30. *
  31. * \fapl_id
  32. * \returns \herr_t
  33. *
  34. * \details H5Pset_fapl_windows() sets the default HDF5 Windows I/O driver on
  35. * Windows systems.
  36. *
  37. * Since the HDF5 library uses this driver, #H5FD_WINDOWS, by default
  38. * on Windows systems, it is not normally necessary for a user
  39. * application to call H5Pset_fapl_windows(). While it is not
  40. * recommended, there may be times when a user chooses to set a
  41. * different HDF5 driver, such as the standard I/O driver (#H5FD_STDIO)
  42. * or the sec2 driver (#H5FD_SEC2), in a Windows
  43. * application. H5Pset_fapl_windows() is provided so that the
  44. * application can return to the Windows I/O driver when the time
  45. * comes.
  46. *
  47. * Only the Windows driver is tested on Windows systems; other drivers
  48. * are used at the application’s and the user’s risk.
  49. *
  50. * Furthermore, the Windows driver is tested and available only on
  51. * Windows systems; it is not available on non-Windows systems.
  52. *
  53. * \since 1.8.0
  54. *
  55. */
  56. H5_DLL herr_t H5Pset_fapl_windows(hid_t fapl_id);
  57. #ifdef __cplusplus
  58. }
  59. #endif /* __cplusplus */
  60. #endif /* H5FDwindows_H */