mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
2133052c6e
The new plugin path API uses char** to represent a variable lenght vector of variable length strings. FORTRAN is not capable of accessing such structures. So, this PR extends the API to provide a counted string-based API to the plugin path functionality. The new functions are inserted in the netcdf_aux.h/daux.c files. The new functions are just wrappers around other plugin path API function; they are just (I hope) more convenient for FORTRAN users. The new functions are as follows: ### *ncaux_plugin_path_stringlen(void)* * Return the length (as in strlen) of the current plugin path directories encoded as a string. Return -1 if the request fails. ### *int ncaux_plugin_path_stringget(int pathlen, char* path)* * Get the current sequence of directories in the internal global plugin path list encoded as a string path using ';' as a path separator. As an example, it might return "/a/b/c;/home/user/me;/tmp". The arguments are as follows: * *pathlen* -- the length of the path argument. * *path* -- a string into which the current plugin path as a string is stored. * Return NC_NOERR | NC_EINVAL ### *int ncaux_plugin_path_stringset(int pathlen, const char* path)* * Set the current sequence of directories in the internal global plugin path list. As an example, it might take "/a/b/c;/home/user/me;/tmp". The arguments are as follows: * *pathlen* -- the length of the path argument. * *path* -- a string that is parsed to obtain the sequence of directories for the current plugin path. * Return NC_NOERR | NC_EINVAL |
||
---|---|---|
.. | ||
aws_config.c | ||
CMakeLists.txt | ||
Makefile.am | ||
ncpluginpath.c | ||
nctest_netcdf4_classic.nc | ||
reclaim_tests.cdl | ||
ref_get.txt | ||
ref_set.txt | ||
ref_xget.txt | ||
ref_xset.txt | ||
run_aws_config.sh | ||
run_dfaltpluginpath.sh | ||
run_pluginpaths.sh | ||
run_reclaim_tests.sh | ||
run_s3sdk.sh | ||
test_ncuri.c | ||
test_pathcvt.c | ||
test_s3sdk.c | ||
timer_utils.c | ||
timer_utils.h | ||
tst_exhash.c | ||
tst_nc4internal.c | ||
tst_nclist.c | ||
tst_pluginpaths.c | ||
tst_reclaim.c | ||
tst_xcache.c |