summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-01-22 16:41:32 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-01-22 16:41:32 (GMT)
commita0ee2c57e934c5ff2269e345238a6ee019f6c294 (patch)
tree08a553617329401737ddff6af60ccd11a13cc6a3 /src/H5Tconv.c
parentfdfb6dfd26410b931b4452f832b5a4aedec283e0 (diff)
downloadhdf5-a0ee2c57e934c5ff2269e345238a6ee019f6c294.zip
hdf5-a0ee2c57e934c5ff2269e345238a6ee019f6c294.tar.gz
hdf5-a0ee2c57e934c5ff2269e345238a6ee019f6c294.tar.bz2
[svn-r164] Changes since 19980122
---------------------- ./src/*.h Fixed indentation where indent(1) screwed up. This isn't by any means the final say, but it's better than it was. ./src/H5A.c ./src/H5Aprivate.h ./src/H5Apublic.h ./src/H5C.c ./src/H5D.c ./src/H5E.c ./src/H5F.c ./src/H5G.c ./src/H5M.c ./src/H5P.c ./src/H5T.c ./src/H5Tconv.c ./src/debug.c ./test/dtypes.c ./test/istore.c ./test/theap.c ./test/tohdr.c ./test/tstab.c Removed some atom functions from the API and made them library-scope. Also changed some names by removing the redundant `atom' from the name and by adding a `_' after the `H5A'.
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c38
1 files changed, 34 insertions, 4 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 739876d..d5ad0bb 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -9,6 +9,7 @@
*/
#define H5T_PACKAGE /*suppress error about including H5Tpkg */
+#include <H5Aprivate.h>
#include <H5Eprivate.h>
#include <H5Tpkg.h>
@@ -73,10 +74,10 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, size_t nelmts,
FUNC_ENTER(H5T_conv_order, FAIL);
/* Check args */
- if (H5_DATATYPE != H5Aatom_group(src_id) ||
- NULL == (src = H5Aatom_object(src_id)) ||
- H5_DATATYPE != H5Aatom_group(dst_id) ||
- NULL == (dst = H5Aatom_object(dst_id))) {
+ if (H5_DATATYPE != H5A_group(src_id) ||
+ NULL == (src = H5A_object(src_id)) ||
+ H5_DATATYPE != H5A_group(dst_id) ||
+ NULL == (dst = H5A_object(dst_id))) {
HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type");
}
if (background) {
@@ -132,3 +133,32 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, size_t nelmts,
FUNC_LEAVE(SUCCEED);
}
+
+/*-------------------------------------------------------------------------
+ * Function: H5T_conv_struct
+ *
+ * Purpose: Converts between compound data types. This is a soft
+ * conversion function.
+ *
+ * Return: Success: SUCCEED
+ *
+ * Failure: FAIL
+ *
+ * Programmer: Robb Matzke
+ * Thursday, January 22, 1998
+ *
+ * Modifications:
+ *
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5T_conv_struct(hid_t src_id, hid_t dst_id, size_t nelmts,
+ void *_buf, const void *background)
+{
+ FUNC_ENTER (H5T_conv_struct, FAIL);
+
+ HRETURN_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "not implemented yet");
+
+ FUNC_LEAVE (SUCCEED);
+}
+