summaryrefslogtreecommitdiffstats
path: root/src/H5Ppublic.h
blob: ddcfb04f8ae6e055c8d77b33359ac38074406d7b (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
/****************************************************************************
 * NCSA HDF                                                                 *
 * Software Development Group                                               *
 * National Center for Supercomputing Applications                          *
 * University of Illinois at Urbana-Champaign                               *
 * 605 E. Springfield, Champaign IL 61820                                   *
 *                                                                          *
 * For conditions of distribution and use, see the accompanying             *
 * hdf/COPYING file.                                                        *
 *                                                                          *
 ****************************************************************************/

/*
 * This file contains public declarations for the H5P module.
 */
#ifndef _H5pproto_H
#define _H5Pproto_H

/* Public headers needed by this file */
#include <H5public.h>
#include <H5Apublic.h>

/* Define atomic datatypes */
#define H5P_ALL         (-2)

/* Different types of dataspaces */
typedef enum H5P_class_t {
    H5P_NO_CLASS         = -1,  /*error                                      */
    H5P_SCALAR           = 0,   /*scalar variable                            */
    H5P_SIMPLE           = 1,   /*simple data space                          */
    H5P_COMPLEX          = 2    /*complex data space                         */
} H5P_class_t;

#ifdef __cplusplus
extern "C" {
#endif

/* Functions in H5P.c */
#ifdef OLD_WAY
hid_t H5Pcreate (H5P_class_t type);
#endif /* OLD_WAY */
hid_t H5Pcreate_simple (intn rank, size_t dims[]);
herr_t H5Pclose (hid_t space_id);
size_t H5Pget_npoints (hid_t space_id);
intn H5Pget_ndims (hid_t space_id);
intn H5Pget_dims (hid_t space_id, size_t dims[]);
hbool_t H5Pis_simple (hid_t space_id);
herr_t H5Pset_space (hid_t space_id, intn rank, const size_t *dims);
herr_t H5Pset_hyperslab(hid_t sid, const size_t *start, const size_t *count,
			const size_t *stride);
herr_t H5Pget_hyperslab (hid_t sid, size_t offset[]/*out*/,
			 size_t size[]/*out*/, size_t stride[]/*out*/);

#ifdef __cplusplus
}
#endif
#endif