diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-30 23:46:27 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-30 23:46:27 (GMT) |
commit | 3f69573f575390295536c0faa6d083c58a7291fa (patch) | |
tree | 554230227da6e04f650668ec3421052806a9a8df /src/H5Lpublic.h | |
parent | c19a43d85474fc21308cb3e5e59dbc535edf4174 (diff) | |
download | hdf5-3f69573f575390295536c0faa6d083c58a7291fa.zip hdf5-3f69573f575390295536c0faa6d083c58a7291fa.tar.gz hdf5-3f69573f575390295536c0faa6d083c58a7291fa.tar.bz2 |
[svn-r12832] Description:
Clean up formatting and re-organize a bit...
Tested on:
Max OS X/32 10.4.8 (amazon)
FreeBSD/32 4.11 (sleipnir)
Linux/32 2.4 (heping)
Linux/64 2.4 (mir)
Diffstat (limited to 'src/H5Lpublic.h')
-rw-r--r-- | src/H5Lpublic.h | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/src/H5Lpublic.h b/src/H5Lpublic.h index 6462170..0611760 100644 --- a/src/H5Lpublic.h +++ b/src/H5Lpublic.h @@ -30,14 +30,28 @@ #include "H5Ipublic.h" #include "H5Tpublic.h" -#ifdef __cplusplus -extern "C" { -#endif +/*****************/ +/* Public Macros */ +/*****************/ /* Maximum length of a link's name */ /* (encoded in a 32-bit unsigned integer) */ #define H5L_MAX_LINK_NAME_LEN ((uint32_t)(-1)) /* (4GB - 1) */ +/* Macro to indicate operation occurs on same location */ +#define H5L_SAME_LOC 0 + +/* Current version of the H5L_class_t struct */ +#define H5L_LINK_CLASS_T_VERS 0 + +#ifdef __cplusplus +extern "C" { +#endif + +/*******************/ +/* Public Typedefs */ +/*******************/ + /* Link class types. * Values less than 64 are reserved for the HDF5 library's internal use. * Values 64 to 255 are for "user-defined" link class types; these types are @@ -68,15 +82,10 @@ typedef struct { } u; } H5L_linkinfo_t; -#define H5L_SAME_LOC 0 - /* The H5L_class_t struct can be used to override the behavior of a * "user-defined" link class. Users should populate the struct with callback * functions defined below. */ -/* Current version of the H5L_class_t struct */ -#define H5L_LINK_CLASS_T_VERS (0) - /* Callback prototypes for user-defined links */ /* Link creation callback */ typedef herr_t (*H5L_create_func_t)(const char * link_name, hid_t loc_group, void * udata, size_t udata_size, hid_t lcpl_id); @@ -110,10 +119,14 @@ typedef struct { H5L_query_func_t query_func; /* Callback for queries */ } H5L_class_t; -#define H5L_ELINK_PREFIX_PROP "elink_prefix" +/********************/ +/* Public Variables */ +/********************/ -/* Public prototypes */ +/*********************/ +/* Public Prototypes */ +/*********************/ H5_DLL herr_t H5Llink(hid_t cur_loc_id, const char *cur_name, hid_t obj_id, hid_t lcpl_id, hid_t lapl_id); H5_DLL herr_t H5Lmove(hid_t src_loc, const char *src_name, hid_t dst_loc, @@ -148,5 +161,5 @@ H5_DLL herr_t H5Lcreate_external(const char *file_name, const char *obj_name, #ifdef __cplusplus } #endif -#endif +#endif /* _H5Lpublic_H */ |