diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-10-29 19:50:25 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-10-29 19:50:25 (GMT) |
commit | 23ab35a5a7aadf526d0a3b4c1011a521a838b36b (patch) | |
tree | 41952a6420f4f816dcca6c78eb1a810af2ea4994 /tools/h5tools.h | |
parent | ea1264842e079187937c8dc27c91edb3702c06bf (diff) | |
download | hdf5-23ab35a5a7aadf526d0a3b4c1011a521a838b36b.zip hdf5-23ab35a5a7aadf526d0a3b4c1011a521a838b36b.tar.gz hdf5-23ab35a5a7aadf526d0a3b4c1011a521a838b36b.tar.bz2 |
[svn-r1800] moved the code from the dumper that iterates thru the files and stores the info
into the tables into the tools lib.
h5findshd-had some of the same functions so i removed them for now
Diffstat (limited to 'tools/h5tools.h')
-rw-r--r-- | tools/h5tools.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/tools/h5tools.h b/tools/h5tools.h index 5a85709..96b6ed6 100644 --- a/tools/h5tools.h +++ b/tools/h5tools.h @@ -15,6 +15,7 @@ #define ESCAPE_HTML 1 + /* * Information about how to format output. */ @@ -256,7 +257,6 @@ int h5dump_mem(FILE *stream, const h5dump_t *info, hid_t type, hid_t space, void *mem); int copy_atomic_char(char* output, char* input, int numchar, int freespace); - /*if we get a new program that needs to use the library add its name here*/ typedef enum { UNKNOWN, @@ -265,6 +265,40 @@ typedef enum { } ProgType; + +/*struct taken from the dumper. needed in table struct*/ +typedef struct obj_t{ +unsigned long objno[2]; +char objname[1024]; +int displayed; +int recorded; +} obj_t; + + +/*struct for the tables that the find_objs function uses*/ + +typedef struct table_t{ +int size; +int nobjs; +obj_t *objs; +} table_t; + + + +/*this struct stores the information that is passed to the find_objs function*/ +typedef struct find_objs_t { + int prefix_len; + char *prefix; + int threshold; /* should be 0 or 1 */ + table_t *group_table; + table_t *type_table; + table_t *dset_table; + int status; +} find_objs_t; + +herr_t find_objs(hid_t group, const char *name, void *op_data); +int search_obj (table_t *temp, unsigned long *); + /* taken from h5dump.h */ |