summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-08-03 22:35:58 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-08-03 22:35:58 (GMT)
commitb5724779d0b10f610de10bf2ab88d62202160272 (patch)
treed89656e3ceb6504d3338ddfb7ae8aec76db66159 /src/H5P.c
parentb1e0516dd0b0795ec04dbe86f909412e94cbaa2a (diff)
downloadhdf5-b5724779d0b10f610de10bf2ab88d62202160272.zip
hdf5-b5724779d0b10f610de10bf2ab88d62202160272.tar.gz
hdf5-b5724779d0b10f610de10bf2ab88d62202160272.tar.bz2
[svn-r12533] Standardized the way path prefixes are passed to external links using a
LAPL. Now there are H5Pget and H5Pset functions for "elink_prefixes".
Diffstat (limited to 'src/H5P.c')
-rw-r--r--src/H5P.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 3aa66ce..144ce72 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -243,6 +243,7 @@ H5P_init_interface(void)
*/
H5P_genclass_t *lacc_class; /* Pointer to link access property list class created */
size_t nlinks = H5L_NLINKS_DEF;
+ char * elink_prefix = H5L_ELINK_PREFIX_DEF;
/* Group creation property class variables. In sequence, they are,
* - Creation property list class to modify
* - Default value for "group info"
@@ -344,6 +345,10 @@ H5P_init_interface(void)
if(H5P_register(lacc_class, H5L_NLINKS_NAME, H5L_NLINKS_SIZE,
&nlinks, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
+ /* Register property for external link prefix */
+ if(H5P_register(lacc_class, H5L_ELINK_PREFIX_NAME, H5L_ELINK_PREFIX_SIZE,
+ &elink_prefix, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
} /* end if */
/* Register the group creation and group access property classes */