summaryrefslogtreecommitdiffstats
path: root/src/H5Gpublic.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-27 13:34:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-27 13:34:28 (GMT)
commitfefbe61aca1a42e716e900be7af5b382be5e19c1 (patch)
treedbb600c8b6555569a4d94ff69b24e72c4787693d /src/H5Gpublic.h
parent538d37a1bcc15a600c71fad0566d8480c2344ee6 (diff)
downloadhdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.zip
hdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.tar.gz
hdf5-fefbe61aca1a42e716e900be7af5b382be5e19c1.tar.bz2
[svn-r11304] Purpose:
Code cleanup (sorta) Description: Adjust H5G_stat_t to prepare for eventual "external link" information. This also puts the information for regular objects and soft links into more obviously separate places. Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4
Diffstat (limited to 'src/H5Gpublic.h')
-rw-r--r--src/H5Gpublic.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/H5Gpublic.h b/src/H5Gpublic.h
index d38a8cb..6ab22fe 100644
--- a/src/H5Gpublic.h
+++ b/src/H5Gpublic.h
@@ -71,14 +71,24 @@ typedef enum H5G_obj_t {
#define H5G_USERTYPE(X) (8+(X)) /* User defined types */
/* Information about an object */
-typedef struct H5G_stat_t {
- unsigned long fileno; /*file number */
- haddr_t objno; /*object number */
- unsigned nlink; /*number of hard links to object*/
- H5G_obj_t type; /*basic object type */
- time_t mtime; /*modification time */
- size_t linklen; /*symbolic link value length */
+typedef struct H5G_obj_stat_t {
+ haddr_t objno; /* Object number */
+ unsigned nlink; /* Number of hard links to object*/
+ time_t mtime; /* Modification time */
H5O_stat_t ohdr; /* Object header information */
+} H5G_obj_stat_t;
+
+typedef struct H5G_slink_stat_t {
+ size_t linklen; /* Symbolic link value length */
+} H5G_slink_stat_t;
+
+typedef struct H5G_stat_t {
+ unsigned long fileno; /* File number */
+ H5G_obj_t type; /* Object type */
+ union {
+ H5G_obj_stat_t obj; /* Information about objects */
+ H5G_slink_stat_t slink; /* Information about symbolic links */
+ } u;
} H5G_stat_t;
#define H5G_SAME_LOC 0