summaryrefslogtreecommitdiffstats
path: root/examples/h5_cmprss.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2012-12-12 14:56:39 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2012-12-12 14:56:39 (GMT)
commit8dc9f39570e4368291f2016961a3658d2945b942 (patch)
tree46cae5ac2675fe39275e4d1b1fb16c8ca10b7af3 /examples/h5_cmprss.c
parente92f4b1a7c2c0f4f41dc9a4102584e0dfa3988a3 (diff)
downloadhdf5-8dc9f39570e4368291f2016961a3658d2945b942.zip
hdf5-8dc9f39570e4368291f2016961a3658d2945b942.tar.gz
hdf5-8dc9f39570e4368291f2016961a3658d2945b942.tar.bz2
[svn-r23093] Fixed API to be 1.6 compliant, removed deprecated APIs
Checked: jam (gnu, mpi) --disable-deprecated-symbols, --with-default-api-version=v16
Diffstat (limited to 'examples/h5_cmprss.c')
-rw-r--r--examples/h5_cmprss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/h5_cmprss.c b/examples/h5_cmprss.c
index efaf953..4a2f982 100644
--- a/examples/h5_cmprss.c
+++ b/examples/h5_cmprss.c
@@ -75,7 +75,7 @@ int main () {
status = H5Pset_szip (plist_id, szip_options_mask, szip_pixels_per_block);
*/
- dataset_id = H5Dcreate (file_id, "Compressed_Data", H5T_STD_I32BE,
+ dataset_id = H5Dcreate2 (file_id, "Compressed_Data", H5T_STD_I32BE,
dataspace_id, H5P_DEFAULT, plist_id, H5P_DEFAULT);
for (i = 0; i< DIM0; i++)
@@ -91,7 +91,7 @@ int main () {
/* Now reopen the file and dataset in the file. */
file_id = H5Fopen (FILE, H5F_ACC_RDWR, H5P_DEFAULT);
- dataset_id = H5Dopen (file_id, "Compressed_Data", H5P_DEFAULT);
+ dataset_id = H5Dopen2 (file_id, "Compressed_Data", H5P_DEFAULT);
/* Retrieve filter information. */
plist_id = H5Dget_create_plist (dataset_id);
@@ -101,7 +101,7 @@ int main () {
for (i=0; i<numfilt; i++) {
nelmts = 0;
- filter_type = H5Pget_filter (plist_id, 0, &flags, &nelmts, NULL, 0, NULL,
+ filter_type = H5Pget_filter2 (plist_id, 0, &flags, &nelmts, NULL, 0, NULL,
&filter_info);
printf ("Filter Type: ");
switch (filter_type) {