diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-10-01 14:04:36 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-10-01 14:04:36 (GMT) |
commit | f1ba03cea5b82699a984c80bd2deac14fdc8df18 (patch) | |
tree | ebe777c3e0b83f4c4cec9212731da9ebe0a0cfd3 /src/H5PLpkg.h | |
parent | 10343c197906415388f2a4c8d292e21d25cf7381 (diff) | |
download | hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.zip hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.tar.gz hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.tar.bz2 |
Source formatted
Diffstat (limited to 'src/H5PLpkg.h')
-rw-r--r-- | src/H5PLpkg.h | 106 |
1 files changed, 51 insertions, 55 deletions
diff --git a/src/H5PLpkg.h b/src/H5PLpkg.h index a086a2c..1018549 100644 --- a/src/H5PLpkg.h +++ b/src/H5PLpkg.h @@ -25,7 +25,7 @@ #define _H5PLpkg_H /* Include private header file */ -#include "H5PLprivate.h" /* Filter functions */ +#include "H5PLprivate.h" /* Filter functions */ /* Other private headers needed by this file */ @@ -34,8 +34,7 @@ /**************************/ /* Whether to pre-load pathnames for plugin libraries */ -#define H5PL_DEFAULT_PATH H5_DEFAULT_PLUGINDIR - +#define H5PL_DEFAULT_PATH H5_DEFAULT_PLUGINDIR /****************************/ /* Macros for supporting */ @@ -58,75 +57,72 @@ */ #ifdef H5_HAVE_WIN32_API - /* The path separator on this platform */ -# define H5PL_PATH_SEPARATOR ";" +/* The path separator on this platform */ +#define H5PL_PATH_SEPARATOR ";" - /* Handle for dynamic library */ -# define H5PL_HANDLE HINSTANCE +/* Handle for dynamic library */ +#define H5PL_HANDLE HINSTANCE - /* Get a handle to a plugin library. Windows: TEXT macro handles Unicode strings */ -# define H5PL_OPEN_DLIB(S) LoadLibraryExA(S, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) +/* Get a handle to a plugin library. Windows: TEXT macro handles Unicode strings */ +#define H5PL_OPEN_DLIB(S) LoadLibraryExA(S, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) - /* Get the address of a symbol in dynamic library */ -# define H5PL_GET_LIB_FUNC(H,N) GetProcAddress(H,N) +/* Get the address of a symbol in dynamic library */ +#define H5PL_GET_LIB_FUNC(H, N) GetProcAddress(H, N) - /* Close dynamic library */ -# define H5PL_CLOSE_LIB(H) FreeLibrary(H) +/* Close dynamic library */ +#define H5PL_CLOSE_LIB(H) FreeLibrary(H) - /* Clear error - nothing to do */ -# define H5PL_CLR_ERROR +/* Clear error - nothing to do */ +#define H5PL_CLR_ERROR - /* maximum size for expanding env vars */ -# define H5PL_EXPAND_BUFFER_SIZE 32767 +/* maximum size for expanding env vars */ +#define H5PL_EXPAND_BUFFER_SIZE 32767 - typedef H5PL_type_t(__cdecl *H5PL_get_plugin_type_t)(void); - typedef const void *(__cdecl *H5PL_get_plugin_info_t)(void); +typedef H5PL_type_t(__cdecl *H5PL_get_plugin_type_t)(void); +typedef const void *(__cdecl *H5PL_get_plugin_info_t)(void); #else /* H5_HAVE_WIN32_API */ - /*****************/ - /* POSIX support */ - /*****************/ +/*****************/ +/* POSIX support */ +/*****************/ - /* The path separator on this platform */ -# define H5PL_PATH_SEPARATOR ":" +/* The path separator on this platform */ +#define H5PL_PATH_SEPARATOR ":" - /* Handle for dynamic library */ -# define H5PL_HANDLE void * +/* Handle for dynamic library */ +#define H5PL_HANDLE void * - /* Get a handle to a plugin library. Windows: TEXT macro handles Unicode strings */ -# define H5PL_OPEN_DLIB(S) dlopen(S, RTLD_LAZY | RTLD_LOCAL) +/* Get a handle to a plugin library. Windows: TEXT macro handles Unicode strings */ +#define H5PL_OPEN_DLIB(S) dlopen(S, RTLD_LAZY | RTLD_LOCAL) - /* Get the address of a symbol in dynamic library */ -# define H5PL_GET_LIB_FUNC(H,N) dlsym(H,N) +/* Get the address of a symbol in dynamic library */ +#define H5PL_GET_LIB_FUNC(H, N) dlsym(H, N) - /* Close dynamic library */ -# define H5PL_CLOSE_LIB(H) dlclose(H) +/* Close dynamic library */ +#define H5PL_CLOSE_LIB(H) dlclose(H) - /* Clear error */ -# define H5PL_CLR_ERROR HERROR(H5E_PLUGIN, H5E_CANTGET, "can't dlopen:%s", dlerror()) +/* Clear error */ +#define H5PL_CLR_ERROR HERROR(H5E_PLUGIN, H5E_CANTGET, "can't dlopen:%s", dlerror()) - typedef H5PL_type_t(*H5PL_get_plugin_type_t)(void); - typedef const void *(*H5PL_get_plugin_info_t)(void); +typedef H5PL_type_t (*H5PL_get_plugin_type_t)(void); +typedef const void *(*H5PL_get_plugin_info_t)(void); #endif /* H5_HAVE_WIN32_API */ - /****************************/ /* Package Private Typedefs */ /****************************/ /* Data used to search for plugins */ typedef struct H5PL_search_params_t { - H5PL_type_t type; - const H5PL_key_t *key; + H5PL_type_t type; + const H5PL_key_t *key; } H5PL_search_params_t; - /*****************************/ /* Package Private Variables */ /*****************************/ - /******************************/ /* Package Private Prototypes */ /******************************/ @@ -137,27 +133,27 @@ H5_DLL herr_t H5PL__set_plugin_control_mask(unsigned int mask); /* Plugin search and manipulation */ H5_DLL herr_t H5PL__open(const char *libname, H5PL_type_t type, const H5PL_key_t *key, - hbool_t *success /*out*/, const void **plugin_info /*out*/); + hbool_t *success /*out*/, const void **plugin_info /*out*/); H5_DLL herr_t H5PL__close(H5PL_HANDLE handle); /* Plugin cache calls */ H5_DLL herr_t H5PL__create_plugin_cache(void); H5_DLL herr_t H5PL__close_plugin_cache(hbool_t *already_closed /*out*/); -H5_DLL herr_t H5PL__add_plugin(H5PL_type_t type, const H5PL_key_t *key, - H5PL_HANDLE handle); -H5_DLL herr_t H5PL__find_plugin_in_cache(const H5PL_search_params_t *search_params, hbool_t *found /*out*/, const void **plugin_info /*out*/); +H5_DLL herr_t H5PL__add_plugin(H5PL_type_t type, const H5PL_key_t *key, H5PL_HANDLE handle); +H5_DLL herr_t H5PL__find_plugin_in_cache(const H5PL_search_params_t *search_params, hbool_t *found /*out*/, + const void **plugin_info /*out*/); /* Plugin search path calls */ -H5_DLL herr_t H5PL__create_path_table(void); -H5_DLL herr_t H5PL__close_path_table(void); -H5_DLL unsigned H5PL__get_num_paths(void); -H5_DLL herr_t H5PL__append_path(const char *path); -H5_DLL herr_t H5PL__prepend_path(const char *path); -H5_DLL herr_t H5PL__replace_path(const char *path, unsigned int index); -H5_DLL herr_t H5PL__insert_path(const char *path, unsigned int index); -H5_DLL herr_t H5PL__remove_path(unsigned int index); +H5_DLL herr_t H5PL__create_path_table(void); +H5_DLL herr_t H5PL__close_path_table(void); +H5_DLL unsigned H5PL__get_num_paths(void); +H5_DLL herr_t H5PL__append_path(const char *path); +H5_DLL herr_t H5PL__prepend_path(const char *path); +H5_DLL herr_t H5PL__replace_path(const char *path, unsigned int index); +H5_DLL herr_t H5PL__insert_path(const char *path, unsigned int index); +H5_DLL herr_t H5PL__remove_path(unsigned int index); H5_DLL const char *H5PL__get_path(unsigned int index); -H5_DLL herr_t H5PL__find_plugin_in_path_table(const H5PL_search_params_t *search_params, hbool_t *found /*out*/, const void **plugin_info /*out*/); +H5_DLL herr_t H5PL__find_plugin_in_path_table(const H5PL_search_params_t *search_params, + hbool_t *found /*out*/, const void **plugin_info /*out*/); #endif /* _H5PLpkg_H */ - |