Skip to content

Commit

Permalink
table5
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisHeimbigner committed Sep 8, 2024
1 parent 6437bdd commit 6849221
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/ncplugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ extern "C" {

/* Known Plugin Dispatchers */
#ifdef USE_HDF5
EXTERNL struct NC_PluginPathDispatch NC4_hdf5_pluginpathtable;
EXTERNL NC_PluginPathDispatch* NC4_hdf5_pluginpathtable;
#endif
#ifdef NETCDF_ENABLE_NCZARR
EXTERNL struct NC_PluginPathDispatch NCZ_pluginpathtable;
EXTERNL NC_PluginPathDispatch* NCZ_pluginpathtable;
#endif

/* See the file netcdf_aux.h for plugin-related utility functions */
Expand Down
4 changes: 3 additions & 1 deletion libhdf5/hdf5plugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static int NC4_hdf5_plugin_path_write(void* state, size_t ndirs, char** const di
/**************************************************/
/* The HDF5 Plugin Path Dispatch table and functions */

NC_PluginPathDispatch NC4_hdf5_pluginpathtable = {
NC_PluginPathDispatch NC4_hdf5_pluginpathdispatch = {
NC_FORMATX_NC_HDF5,
NC_PLUGINPATH_DISPATCH_VERSION,
NC4_hdf5_plugin_path_initialize,
Expand All @@ -47,6 +47,8 @@ NC_PluginPathDispatch NC4_hdf5_pluginpathtable = {
NC4_hdf5_plugin_path_write
};

NC_PluginPathDispatch* NC4_hdf5_pluginpathtable = &NC4_hdf5_pluginpathdispatch;

/**************************************************/

/**
Expand Down
4 changes: 3 additions & 1 deletion libnczarr/zplugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static int pluginnamecheck(const char* name);

/**************************************************/
/* The NCZarr Plugin Path Dispatch table and functions */
NC_PluginPathDispatch NCZ_pluginpathtable = {
NC_PluginPathDispatch NCZ_pluginpathdispatch = {
NC_FORMATX_NCZARR,
NC_PLUGINPATH_DISPATCH_VERSION,
NCZ_plugin_path_initialize,
Expand All @@ -68,6 +68,8 @@ NC_PluginPathDispatch NCZ_pluginpathtable = {
NCZ_plugin_path_write,
};

NC_PluginPathDispatch* NCZ_pluginpathtable = &NCZ_pluginpathdispatch;

/**************************************************/
/**
* This function is called as part of nc_initialize.
Expand Down

0 comments on commit 6849221

Please sign in to comment.