diff --git a/src/Python/H5hut.i b/src/Python/H5hut.i index d65f3ae..00fe602 100644 --- a/src/Python/H5hut.i +++ b/src/Python/H5hut.i @@ -14,6 +14,7 @@ %include numpy.i %include cstring.i +%include cpointer.i %apply unsigned long int { h5_prop_t }; %apply unsigned long int { h5_file_t }; @@ -30,9 +31,11 @@ %cstring_bounded_output(char* const attrib_name, 256); extern h5_err_t H5GetFileAttribInfo ( const h5_file_t, - const h5_id_t, - char* const attrib_name, const h5_size_t l_attrib_name=256, - h5_int64_t *OUTPUT, h5_size_t *OUTPUT); + const h5_size_t, + char* const attrib_name, + const h5_size_t l_attrib_name=256, + h5_int64_t *OUTPUT, + h5_size_t *OUTPUT); extern h5_err_t H5GetFileAttribInfoByName ( const h5_file_t, @@ -49,6 +52,26 @@ extern h5_err_t H5ReadFileAttribString ( const h5_file_t f, const char* const name, char* const buffer); + +extern h5_err_t H5GetStepAttribInfo ( + const h5_file_t, + const h5_size_t, + char* const attrib_name, + const h5_size_t l_attrib_name=256, + h5_int64_t *OUTPUT, + h5_size_t *OUTPUT); + +extern h5_err_t H5GetStepAttribInfoByName ( + const h5_file_t, + const char* const name, + h5_int64_t *OUTPUT, h5_size_t *OUTPUT); + +extern h5_err_t H5GetStepAttribName ( + const h5_file_t, + const h5_id_t, + char* const attrib_name, + const h5_size_t l_attrib_name=256); + %clear char* const attrib_name; /////////////////////////////////////////////////////////////////////////////// diff --git a/src/Python/__init__.py b/src/Python/__init__.py index 388fba6..0c5fb5f 100644 --- a/src/Python/__init__.py +++ b/src/Python/__init__.py @@ -1,6 +1,7 @@ #TODO: use the rewrite to swap depending whether mpi is there are not.. import numpy +import sys import H5hut as H5hut_rewrite from H5hut import * @@ -95,8 +96,3 @@ def __update_types__(): sys.modules["H5hut"].__dict__[__new_func__] = locals()[__new_func__] __update_types__() - - - - -