summaryrefslogtreecommitdiffstats
path: root/src/H5Apkg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Apkg.h')
-rw-r--r--src/H5Apkg.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/H5Apkg.h b/src/H5Apkg.h
new file mode 100644
index 0000000..b6f1a24
--- /dev/null
+++ b/src/H5Apkg.h
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 1997 NCSA
+ * All rights reserved.
+ *
+ * Programmer: Robb Matzke <matzke@llnl.gov>
+ * Monday, December 8, 1997
+ *
+ * Purpose: This file contains declarations which are visible only within
+ * the H5A package. Source files outside the H5A package should
+ * include H5Aprivate.h instead.
+ */
+#ifndef H5A_PACKAGE
+#error "Do not include this file outside the H5A package!"
+#endif
+
+#ifndef _H5Apkg_H
+#define _H5Apkg_H
+
+/*
+ * Define this to enable debugging.
+ */
+#ifdef NDEBUG
+# undef H5A_DEBUG
+#endif
+
+#include <H5HGprivate.h>
+#include <H5Aprivate.h>
+
+struct H5A_t {
+ uintn initialized;/* Indicate whether the attribute has been modified */
+ uintn ent_opened; /* Object header entry opened? */
+ H5G_entry_t ent; /* Object Header entry (for both datasets & groups) */
+ char *name; /* Attribute's name */
+ H5T_t *dt; /* Attribute's datatype */
+ size_t dt_size; /* Size of datatype on disk */
+ H5S_t *ds; /* Attribute's dataspace */
+ size_t ds_size; /* Size of dataspace on disk */
+ void *data; /* Attribute data (on a temporary basis) */
+ size_t data_size; /* Size of data on disk */
+ H5HG_t sh_heap; /*if defined, attribute is in global heap */
+ H5F_t *sh_file; /*file pointer if this is a shared attribute */
+};
+
+/* Function prototypes for H5T package scope */
+
+#endif