diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-04-27 19:16:54 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-04-27 19:16:54 (GMT) |
commit | b3d2f04490363a24f1d43581116a61356ca89f77 (patch) | |
tree | 71b91e09d8fe1e0475e2da5fe39f487c9db5eba9 /src/H5D.c | |
parent | 85b599e9332c1d7d6f454425b66ad43e78954814 (diff) | |
download | hdf5-b3d2f04490363a24f1d43581116a61356ca89f77.zip hdf5-b3d2f04490363a24f1d43581116a61356ca89f77.tar.gz hdf5-b3d2f04490363a24f1d43581116a61356ca89f77.tar.bz2 |
[svn-r8424] *** empty log message ***
Diffstat (limited to 'src/H5D.c')
-rw-r--r-- | src/H5D.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -145,6 +145,7 @@ H5D_init_interface(void) * - Default value for I/O transfer mode * - Default value for EDC property * - Default value for filter callback + * - Default value for datatype conversion callback */ H5P_genclass_t *xfer_pclass; size_t def_max_temp_buf = H5D_XFER_MAX_TEMP_BUF_DEF; @@ -164,6 +165,7 @@ H5D_init_interface(void) #endif /* H5_HAVE_PARALLEL */ H5Z_EDC_t enable_edc = H5D_XFER_EDC_DEF; H5Z_cb_t filter_cb = H5D_XFER_FILTER_CB_DEF; + H5T_conv_cb_t conv_cb = H5D_XFER_CONV_CB_DEF; /* Dataset creation property class variables. In sequence, they are, * - Creation property list class to modify @@ -269,6 +271,10 @@ H5D_init_interface(void) /* Register the filter callback property */ if(H5P_register(xfer_pclass,H5D_XFER_FILTER_CB_NAME,H5D_XFER_FILTER_CB_SIZE,&filter_cb,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0) HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class") + + /* Register the type conversion callback property */ + if(H5P_register(xfer_pclass,H5D_XFER_CONV_CB_NAME,H5D_XFER_CONV_CB_SIZE,&conv_cb,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0) + HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class") } /* end if */ /* Only register the default property list if it hasn't been created yet */ |