/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * 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 LICENSE 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.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef H5FDsplitter_H
#define H5FDsplitter_H

#include "H5FDpublic.h" 

#define H5FD_SPLITTER (H5OPEN H5FD_SPLITTER_id_g)

#define H5FD_SPLITTER_VALUE H5_VFD_SPLITTER

#define H5FD_CURR_SPLITTER_VFD_CONFIG_VERSION 1

#define H5FD_SPLITTER_PATH_MAX 4096

#define H5FD_SPLITTER_MAGIC 0x2B916880

//! <!-- [H5FD_splitter_vfd_config_t_snip] -->

typedef struct H5FD_splitter_vfd_config_t {
    int32_t      magic;   
    unsigned int version; 
    hid_t rw_fapl_id;     
    hid_t wo_fapl_id; 
    char wo_path[H5FD_SPLITTER_PATH_MAX + 1];       
    char log_file_path[H5FD_SPLITTER_PATH_MAX + 1]; 
    bool ignore_wo_errs;                            
} H5FD_splitter_vfd_config_t;
//! <!-- [H5FD_splitter_vfd_config_t_snip] -->

#ifdef __cplusplus
extern "C" {
#endif

H5_DLLVAR hid_t H5FD_SPLITTER_id_g;

H5_DLL herr_t H5Pset_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr);

H5_DLL herr_t H5Pget_fapl_splitter(hid_t fapl_id, H5FD_splitter_vfd_config_t *config_ptr);

#ifdef __cplusplus
}
#endif

#endif
