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
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/****************************************************************************
* 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. *
* *
****************************************************************************/
/* $Id$ */
/*
* Header file for library-global generic typedefs
*/
#ifndef HDF5TYPE_H
#define HDF5TYPE_H
/*
* Define the standard error-value return type. This type should be used for
* functions which return SUCCEED/FAIL, instead of intn...
*/
typedef intn herr_t; /* Generic error-value type */
/* Object types for "meta" interface */
typedef group_t hobjtype_t; /* Map the object in the "meta" interface to atom groups */
/* File-creation template information structure */
typedef struct {
/* These object aren't ref. counted, I can't think of a good reason why you'd access each one more than once */
/* uintn ref_count; Reference count for number of times object is accessed */
uintn userblock_size; /* Size of the user block in the file in bytes */
uintn btree_page_size; /* Number of bytes for B-Tree pages */
uint8 offset_size; /* Number of bytes for offsets */
uint8 length_size; /* Number of bytes for lengths */
uint8 bootblock_ver; /* Version # of the bootblock */
uint8 smallobject_ver; /* Version # of the small-object heap */
uint8 freespace_ver; /* Version # of the free-space information */
uint8 objectdir_ver; /* Version # of the object directory format */
uint8 sharedheader_ver; /* Version # of the shared header format */
} file_create_temp_t;
/* Parameters to use when retrieving file-creation template information */
typedef enum {
H5_USERBLOCK_SIZE, /* (uintn) Size of the user block in the file in bytes */
H5_OFFSET_SIZE, /* (uintn) Number of bytes for offsets */
H5_LENGTH_SIZE, /* (uintn) Number of bytes for lengths */
H5_BTREE_SIZE, /* (uintn) Number of bytes for B-Tree pages */
H5_BOOTBLOCK_VER, /* (uint8) Version # of the boot-block format */
H5_SMALLOBJECT_VER, /* (uint8) Version # of the small-object heap format */
H5_FREESPACE_VER, /* (uint8) Version # of the free-space info format */
H5_OBJECTDIR_VER, /* (uint8) Version # of the object-directory format */
H5_SHAREDHEADER_VER /* (uint8) Version # of the shared-header format */
} file_create_param_t;
/* HDF boolean type */
typedef enum {
BFAIL=(-1), /* error value */
BFALSE=0,
BTRUE=1
} hbool_t;
/* Unsigned integer error value (don't really know where else to put this - QAK) */
#define UFAIL (unsigned)(-1)
#endif /* HDF5TYPE_H */
|