added const to pass-by-value function parameters; worked more to attributes API
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
h5_err_t
|
||||
H5WriteFileAttribString (
|
||||
h5_file_t *const f, /*!< [in] Handle to open file */
|
||||
const char *name, /*!< [in] Name of attribute to create */
|
||||
const char *value /*!< [in] Value of attribute */
|
||||
);
|
||||
|
||||
h5_err_t
|
||||
H5WriteStepAttribString (
|
||||
h5_file_t *const f, /*!< [in] Handle to open file */
|
||||
const char *name, /*!< [in] Name of attribute to create */
|
||||
const char *value /*!< [in] Value of attribute */
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
H5GetNumFileAttribs (
|
||||
h5_file_t *const f /*!< [in] Handle to open file */
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
H5GetNumStepAttribs (
|
||||
h5_file_t *const f /*!< [in] Handle to open file */
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
H5GetFileAttribInfo (
|
||||
h5_file_t *const f, /*!< [in] Handle to open file */
|
||||
const h5_int64_t attrib_idx, /*!< [in] Index of attribute to get
|
||||
infos about */
|
||||
char *attrib_name, /*!< [out] Name of attribute */
|
||||
const h5_int64_t len_of_attrib_name,
|
||||
/*!< [in] length of buffer \c name */
|
||||
h5_int64_t *attrib_type, /*!< [out] Type of value. */
|
||||
h5_int64_t *attrib_nelem /*!< [out] Number of elements */
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
H5GetStepAttribInfo (
|
||||
h5_file_t *const f, /*!< [in] Handle to open file */
|
||||
const h5_int64_t attrib_idx, /*!< [in] Index of attribute to
|
||||
get infos about */
|
||||
char *attrib_name, /*!< [out] Name of attribute */
|
||||
const h5_int64_t len_of_attrib_name,
|
||||
/*!< [in] length of buffer \c name */
|
||||
h5_int64_t *attrib_type, /*!< [out] Type of value. */
|
||||
h5_int64_t *attrib_nelem /*!< [out] Number of elements */
|
||||
);
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
#ifndef __H5_ATTRIBS_H
|
||||
#define __H5_ATTRIBS_H
|
||||
|
||||
#define H5_ATTRIB_FILE 0
|
||||
#define H5_ATTRIB_STEP 1
|
||||
|
||||
h5_int64_t
|
||||
h5_read_attrib (
|
||||
h5_file_t * const f,
|
||||
hid_t id,
|
||||
const char type,
|
||||
const char *attrib_name,
|
||||
void *attrib_value
|
||||
);
|
||||
@@ -12,7 +15,7 @@ h5_read_attrib (
|
||||
h5_int64_t
|
||||
h5_write_attrib (
|
||||
h5_file_t * const f,
|
||||
hid_t id,
|
||||
const char type,
|
||||
const char *attrib_name,
|
||||
const hid_t attrib_type,
|
||||
const void *attrib_value,
|
||||
@@ -21,8 +24,8 @@ h5_write_attrib (
|
||||
|
||||
h5_int64_t
|
||||
h5_get_attrib_info (
|
||||
h5_file_t * const f,
|
||||
hid_t id,
|
||||
h5_file_t *const f,
|
||||
const char type,
|
||||
const h5_int64_t attrib_idx,
|
||||
char *attrib_name,
|
||||
const h5_int64_t len_attrib_name,
|
||||
@@ -32,8 +35,8 @@ h5_get_attrib_info (
|
||||
|
||||
h5_ssize_t
|
||||
h5_get_num_attribs (
|
||||
h5_file_t * constf,
|
||||
hid_t id
|
||||
h5_file_t *const f,
|
||||
const char type
|
||||
);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -44,18 +44,18 @@
|
||||
|
||||
|
||||
h5_err_t
|
||||
h5_set_debuglevel (
|
||||
h5_id_t debuglevel
|
||||
h5_set_debug_level (
|
||||
const h5_id_t level
|
||||
);
|
||||
|
||||
h5_err_t
|
||||
h5_get_debuglevel (
|
||||
h5_get_debug_level (
|
||||
void
|
||||
);
|
||||
|
||||
h5_err_t
|
||||
h5_set_errorhandler (
|
||||
h5_errorhandler_t errorhandler
|
||||
const h5_errorhandler_t errorhandler
|
||||
);
|
||||
|
||||
h5_errorhandler_t
|
||||
@@ -65,33 +65,33 @@ h5_get_errorhandler (
|
||||
|
||||
h5_err_t
|
||||
h5_get_errno (
|
||||
h5_file_t * const f
|
||||
const h5_file_t * const f
|
||||
);
|
||||
|
||||
void
|
||||
h5_set_errno (
|
||||
h5_file_t * const f,
|
||||
h5_err_t h5_errno
|
||||
const h5_err_t h5_errno
|
||||
);
|
||||
|
||||
h5_err_t
|
||||
h5_report_errorhandler (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
va_list ap
|
||||
);
|
||||
|
||||
h5_err_t
|
||||
h5_abort_errorhandler (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
va_list ap
|
||||
) ;
|
||||
);
|
||||
|
||||
h5_err_t
|
||||
h5_error (
|
||||
h5_file_t * const f,
|
||||
h5_err_t error_no,
|
||||
const h5_err_t error_no,
|
||||
const char *fmt,
|
||||
...
|
||||
)
|
||||
@@ -102,21 +102,21 @@ h5_error (
|
||||
|
||||
void
|
||||
h5_verror (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
va_list ap
|
||||
);
|
||||
|
||||
void
|
||||
h5_vwarn (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
va_list ap
|
||||
);
|
||||
|
||||
void
|
||||
h5_warn (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
...
|
||||
)
|
||||
@@ -127,14 +127,14 @@ __attribute__ ((format (printf, 2, 3)))
|
||||
|
||||
void
|
||||
h5_vinfo (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
va_list ap
|
||||
);
|
||||
|
||||
void
|
||||
h5_info (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
...
|
||||
)
|
||||
@@ -145,14 +145,14 @@ __attribute__ ((format (printf, 2, 3)))
|
||||
|
||||
void
|
||||
h5_vdebug (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
va_list ap
|
||||
);
|
||||
|
||||
void
|
||||
h5_debug (
|
||||
h5_file_t * const f,
|
||||
const h5_file_t * const f,
|
||||
const char *fmt,
|
||||
...
|
||||
)
|
||||
@@ -169,7 +169,7 @@ h5_set_funcname (
|
||||
|
||||
const char *
|
||||
h5_get_funcname (
|
||||
h5_file_t * const f
|
||||
const h5_file_t * const f
|
||||
);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -57,7 +57,7 @@ struct h5_file;
|
||||
typedef struct h5_file h5_file_t;
|
||||
|
||||
typedef h5_err_t (*h5_errorhandler_t)(
|
||||
struct h5_file * const,
|
||||
const struct h5_file * const,
|
||||
const char*,
|
||||
va_list ap );
|
||||
|
||||
|
||||
@@ -3,60 +3,60 @@
|
||||
|
||||
h5_int64_t
|
||||
h5u_get_num_particles (
|
||||
h5_file_t *f
|
||||
h5_file_t *const f
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_set_num_particles (
|
||||
h5_file_t *f,
|
||||
h5_int64_t nparticles,
|
||||
h5_int64_t stride
|
||||
h5_file_t *const f,
|
||||
const h5_int64_t nparticles,
|
||||
const h5_int64_t stride
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_has_view (
|
||||
h5_file_t *f
|
||||
const h5_file_t *const f
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_reset_view (
|
||||
h5_file_t *f
|
||||
h5_file_t *const f
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_set_view (
|
||||
h5_file_t *f,
|
||||
h5_file_t *const f,
|
||||
h5_int64_t start,
|
||||
h5_int64_t end
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_set_view_indices (
|
||||
h5_file_t *f,
|
||||
const h5_int64_t *indices,
|
||||
h5_int64_t nelems
|
||||
h5_file_t *const f,
|
||||
const h5_int64_t *const indices,
|
||||
const h5_int64_t nelems
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_get_view (
|
||||
h5_file_t *f,
|
||||
h5_file_t *const f,
|
||||
h5_int64_t *start,
|
||||
h5_int64_t *end
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_set_canonical_view (
|
||||
h5_file_t *f
|
||||
h5_file_t *const f
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_get_num_datasets (
|
||||
h5_file_t *f
|
||||
h5_file_t *const f
|
||||
);
|
||||
|
||||
h5_int64_t
|
||||
h5u_get_dataset_info (
|
||||
h5_file_t *f,
|
||||
h5_file_t *const f,
|
||||
const h5_int64_t idx,
|
||||
char *dataset_name,
|
||||
const h5_int64_t len_dataset_name,
|
||||
@@ -66,8 +66,8 @@ h5u_get_dataset_info (
|
||||
|
||||
h5_err_t
|
||||
h5u_set_chunk (
|
||||
h5_file_t *f,
|
||||
h5_size_t size
|
||||
h5_file_t *const f,
|
||||
const h5_size_t size
|
||||
);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user