Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed the file, func, line args in the _async APIs fpr doxygen #2179

Merged
merged 13 commits into from
Oct 25, 2022
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ if test "X$HDF5_DOXYGEN" = "Xyes"; then
DOXYGEN_SEARCHENGINE_URL=
DOXYGEN_STRIP_FROM_PATH='$(SRCDIR)'
DOXYGEN_STRIP_FROM_INC_PATH='$(SRCDIR)'
DOXYGEN_PREDEFINED='H5_HAVE_DIRECT H5_HAVE_LIBHDFS H5_HAVE_MAP_API H5_HAVE_PARALLEL H5_HAVE_ROS3_VFD H5_DOXYGEN_FORTRAN H5_HAVE_SUBFILING_VFD H5_HAVE_IOC_VFD'
DOXYGEN_PREDEFINED='H5_HAVE_DIRECT H5_HAVE_LIBHDFS H5_HAVE_MAP_API H5_HAVE_PARALLEL H5_HAVE_ROS3_VFD H5_DOXYGEN H5_DOXYGEN_FORTRAN H5_HAVE_SUBFILING_VFD H5_HAVE_IOC_VFD'
brtnfld marked this conversation as resolved.
Show resolved Hide resolved

DX_INIT_DOXYGEN([HDF5], [./doxygen/Doxyfile], [hdf5lib_docs])
fi
Expand Down
2 changes: 1 addition & 1 deletion doxygen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (DOXYGEN_FOUND)
set (DOXYGEN_SEARCHENGINE_URL)
set (DOXYGEN_STRIP_FROM_PATH ${HDF5_SOURCE_DIR})
set (DOXYGEN_STRIP_FROM_INC_PATH ${HDF5_SOURCE_DIR})
set (DOXYGEN_PREDEFINED "H5_HAVE_DIRECT H5_HAVE_LIBHDFS H5_HAVE_MAP_API H5_HAVE_PARALLEL H5_HAVE_ROS3_VFD H5_DOXYGEN_FORTRAN H5_HAVE_SUBFILING_VFD H5_HAVE_IOC_VFD")
set (DOXYGEN_PREDEFINED "H5_HAVE_DIRECT H5_HAVE_LIBHDFS H5_HAVE_MAP_API H5_HAVE_PARALLEL H5_HAVE_ROS3_VFD H5_DOXYGEN H5_DOXYGEN_FORTRAN H5_HAVE_SUBFILING_VFD H5_HAVE_IOC_VFD")

# This configure and individual custom targets work together
# Replace variables inside @@ with the current values
Expand Down
107 changes: 76 additions & 31 deletions src/H5Apublic.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ H5_DLL herr_t H5Aclose(hid_t attr_id);
* \ingroup ASYNC
* \async_variant_of{H5Aclose}
*/
H5_DLL herr_t H5Aclose_async(const char *app_file, const char *app_func, unsigned app_line, hid_t attr_id,
hid_t es_id);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved this to a doxygen region below, and just have the full API

H5_DLL herr_t H5Aclose_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
brtnfld marked this conversation as resolved.
Show resolved Hide resolved
#else
hid_t attr_id, hid_t es_id);
#endif
/* --------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -142,9 +146,13 @@ H5_DLL hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_
* \ingroup ASYNC
* \async_variant_of{H5Acreate}
*/
H5_DLL hid_t H5Acreate_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id,
hid_t aapl_id, hid_t es_id);
H5_DLL hid_t H5Acreate_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id,
hid_t es_id);
#endif
/*--------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -190,10 +198,13 @@ H5_DLL hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *a
* \ingroup ASYNC
* \async_variant_of{H5Acreate_by_name}
*/
H5_DLL hid_t H5Acreate_by_name_async(const char *app_file, const char *app_func, unsigned app_line,
hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id,
hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id,
hid_t es_id);
H5_DLL hid_t H5Acreate_by_name_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id,
hid_t aapl_id, hid_t lapl_id, hid_t es_id);
#endif
/*-------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -310,8 +321,12 @@ H5_DLL htri_t H5Aexists(hid_t obj_id, const char *attr_name);
* \ingroup ASYNC
* \async_variant_of{H5Aexists}
*/
H5_DLL herr_t H5Aexists_async(const char *app_file, const char *app_func, unsigned app_line, hid_t obj_id,
const char *attr_name, hbool_t *exists, hid_t es_id);
H5_DLL herr_t H5Aexists_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t obj_id, const char *attr_name, hbool_t *exists, hid_t es_id);
#endif
/*-------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -348,9 +363,12 @@ H5_DLL htri_t H5Aexists_by_name(hid_t obj_id, const char *obj_name, const char *
* \ingroup ASYNC
* \async_variant_of{H5Aexists_by_name}
*/
H5_DLL herr_t H5Aexists_by_name_async(const char *app_file, const char *app_func, unsigned app_line,
hid_t loc_id, const char *obj_name, const char *attr_name,
hbool_t *exists, hid_t lapl_id, hid_t es_id);
H5_DLL herr_t H5Aexists_by_name_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *obj_name, const char *attr_name, hbool_t *exists, hid_t lapl_id, hid_t es_id);
#endif
/*-------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -735,8 +753,12 @@ H5_DLL hid_t H5Aopen(hid_t obj_id, const char *attr_name, hid_t aapl_id);
* \ingroup ASYNC
* \async_variant_of{H5Aopen}
*/
H5_DLL hid_t H5Aopen_async(const char *app_file, const char *app_func, unsigned app_line, hid_t obj_id,
const char *attr_name, hid_t aapl_id, hid_t es_id);
H5_DLL hid_t H5Aopen_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t obj_id, const char *attr_name, hid_t aapl_id, hid_t es_id);
#endif
/*--------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -785,9 +807,13 @@ H5_DLL hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_t
* \ingroup ASYNC
* \async_variant_of{H5Aopen_by_idx}
*/
H5_DLL hid_t H5Aopen_by_idx_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n,
hid_t aapl_id, hid_t lapl_id, hid_t es_id);
H5_DLL hid_t H5Aopen_by_idx_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id,
hid_t lapl_id, hid_t es_id);
#endif
/*--------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -834,9 +860,12 @@ H5_DLL hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *att
* \ingroup ASYNC
* \async_variant_of{H5Aopen_by_name}
*/
H5_DLL hid_t H5Aopen_by_name_async(const char *app_file, const char *app_func, unsigned app_line,
hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id,
hid_t lapl_id, hid_t es_id);
H5_DLL hid_t H5Aopen_by_name_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id, hid_t es_id);
#endif
/*-------------------------------------------------------------------------- */
/**
* \ingroup H5A
Expand Down Expand Up @@ -873,8 +902,12 @@ H5_DLL herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf);
* \ingroup ASYNC
* \async_variant_of{H5Aread}
*/
H5_DLL herr_t H5Aread_async(const char *app_file, const char *app_func, unsigned app_line, hid_t attr_id,
hid_t dtype_id, void *buf, hid_t es_id);
H5_DLL herr_t H5Aread_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t attr_id, hid_t dtype_id, void *buf, hid_t es_id);
#endif
/*-------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -902,16 +935,24 @@ H5_DLL herr_t H5Arename(hid_t loc_id, const char *old_name, const char *new_name
* \ingroup ASYNC
* \async_variant_of{H5Arename}
*/
H5_DLL herr_t H5Arename_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
const char *old_name, const char *new_name, hid_t es_id);
H5_DLL herr_t H5Arename_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *old_name, const char *new_name, hid_t es_id);
#endif
/*--------------------------------------------------------------------------*/
/**
* \ingroup ASYNC
* \async_variant_of{H5Arename_by_name}
*/
H5_DLL herr_t H5Arename_by_name_async(const char *app_file, const char *app_func, unsigned app_line,
hid_t loc_id, const char *obj_name, const char *old_attr_name,
const char *new_attr_name, hid_t lapl_id, hid_t es_id);
H5_DLL herr_t H5Arename_by_name_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id,
hid_t es_id);
#endif
/*--------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down Expand Up @@ -946,8 +987,12 @@ H5_DLL herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf);
* \ingroup ASYNC
* \async_variant_of{H5Awrite}
*/
H5_DLL herr_t H5Awrite_async(const char *app_file, const char *app_func, unsigned app_line, hid_t attr_id,
hid_t type_id, const void *buf, hid_t es_id);
H5_DLL herr_t H5Awrite_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t attr_id, hid_t type_id, const void *buf, hid_t es_id);
#endif
/*-------------------------------------------------------------------------*/
/**
* \ingroup H5A
Expand Down
68 changes: 45 additions & 23 deletions src/H5Dpublic.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,13 @@ H5_DLL hid_t H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t spa
* \ingroup ASYNC
* \async_variant_of{H5Dcreate}
*/
H5_DLL hid_t H5Dcreate_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id,
hid_t dapl_id, hid_t es_id);

H5_DLL hid_t H5Dcreate_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t lcpl_id, hid_t dcpl_id,
hid_t dapl_id, hid_t es_id);
#endif
/**
* --------------------------------------------------------------------------
* \ingroup H5D
Expand Down Expand Up @@ -398,9 +401,12 @@ H5_DLL hid_t H5Dopen2(hid_t loc_id, const char *name, hid_t dapl_id);
* \ingroup ASYNC
* \async_variant_of{H5Dopen}
*/
H5_DLL hid_t H5Dopen_async(const char *app_file, const char *app_func, unsigned app_line, hid_t loc_id,
const char *name, hid_t dapl_id, hid_t es_id);

H5_DLL hid_t H5Dopen_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t loc_id, const char *name, hid_t dapl_id, hid_t es_id);
#endif
/**
* --------------------------------------------------------------------------
*\ingroup H5D
Expand Down Expand Up @@ -432,9 +438,12 @@ H5_DLL hid_t H5Dget_space(hid_t dset_id);
* \ingroup ASYNC
* \async_variant_of{H5Dget_space}
*/
H5_DLL hid_t H5Dget_space_async(const char *app_file, const char *app_func, unsigned app_line, hid_t dset_id,
hid_t es_id);

H5_DLL hid_t H5Dget_space_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t dset_id, hid_t es_id);
#endif
/**
* --------------------------------------------------------------------------
* \ingroup H5D
Expand Down Expand Up @@ -901,10 +910,13 @@ H5_DLL herr_t H5Dread_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[],
* \ingroup ASYNC
* \async_variant_of{H5Dread}
*/
H5_DLL herr_t H5Dread_async(const char *app_file, const char *app_func, unsigned app_line, hid_t dset_id,
hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id,
void *buf /*out*/, hid_t es_id);

H5_DLL herr_t H5Dread_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id,
void *buf /*out*/, hid_t es_id);
#endif
/**
* --------------------------------------------------------------------------
* \ingroup ASYNC
Expand Down Expand Up @@ -1082,10 +1094,13 @@ H5_DLL herr_t H5Dwrite_multi(size_t count, hid_t dset_id[], hid_t mem_type_id[],
* \ingroup ASYNC
* \async_variant_of{H5Dwrite}
*/
H5_DLL herr_t H5Dwrite_async(const char *app_file, const char *app_func, unsigned app_line, hid_t dset_id,
hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id,
const void *buf, hid_t es_id);

H5_DLL herr_t H5Dwrite_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, const void *buf,
hid_t es_id);
#endif
/**
* --------------------------------------------------------------------------
* \ingroup ASYNC
Expand Down Expand Up @@ -1379,9 +1394,12 @@ H5_DLL herr_t H5Dset_extent(hid_t dset_id, const hsize_t size[]);
* \ingroup ASYNC
* \async_variant_of{H5Dset_extent}
*/
H5_DLL herr_t H5Dset_extent_async(const char *app_file, const char *app_func, unsigned app_line,
hid_t dset_id, const hsize_t size[], hid_t es_id);

H5_DLL herr_t H5Dset_extent_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t dset_id, const hsize_t size[], hid_t es_id);
#endif
/**
* --------------------------------------------------------------------------
* \ingroup H5D
Expand Down Expand Up @@ -1558,8 +1576,12 @@ H5_DLL herr_t H5Dclose(hid_t dset_id);
* \ingroup ASYNC
* \async_variant_of{H5Dclose}
*/
H5_DLL herr_t H5Dclose_async(const char *app_file, const char *app_func, unsigned app_line, hid_t dset_id,
hid_t es_id);
H5_DLL herr_t H5Dclose_async(
#ifndef H5_DOXYGEN
const char *app_file, const char *app_func, unsigned app_line,
#else
hid_t dset_id, hid_t es_id);
#endif
/// \cond DEV
/* Internal API routines */
H5_DLL herr_t H5Ddebug(hid_t dset_id);
Expand Down
17 changes: 17 additions & 0 deletions src/H5ESpublic.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,23 @@ H5_DLL hid_t H5EScreate(void);
*
*/
H5_DLL herr_t H5ESwait(hid_t es_id, uint64_t timeout, size_t *num_in_progress, hbool_t *err_occurred);

/**
* \ingroup H5ES
*
* \brief Attempt to cancel operations in an event set
*
* \es_id
* \param[out] count The number of events not canceled
* \param[out] err_occurred Status indicating if error is present in the event set
* \returns \herr_t
*
* \details H5ESget_count() attempts to cancel operations in an event set specified
* by \p es_id. H5ES_NONE is a valid value for \p es_id, but functions as a no-op.
*
* \since 1.13.0
*
*/
H5_DLL herr_t H5EScancel(hid_t es_id, size_t *num_not_canceled, hbool_t *err_occurred);

/**
Expand Down
Loading