This commit is contained in:
Michael Davidsaver authored and Dirk Zimoch committed 2026-10-14 15:12:24 +02:00
1 parent 5af37ca3d4
commit cb75bf73c7
2 files changed
+19 -6

No files matched your search

@@ -25,6 +25,12 @@ typedef struct registryFunctionRef {
} registryFunctionRef;
/** @brief Add named function to global registry
*
* Most users will prefer epicsRegisterFunction()
*
* @return 1 on success, 0 on error
*/
DBCORE_API int registryFunctionAdd(
const char *name, REGISTRYFUNCTION func);
DBCORE_API REGISTRYFUNCTION registryFunctionFind(
+13 -6
View File
@@ -116,12 +116,19 @@ typedef void (*REGISTRAR)(void);
*
* The epicsRegisterFunction() macro must be used to declare and register
* a function that is named in a DBD \c function statement and called by
* one or more subroutine or aSub records. For example:
\code
epicsRegisterFunction(mySubInit);
epicsRegisterFunction(mySubProcess);
\endcode
*
* one or more subroutine or aSub records. For example in C code:
* \code{.c}
* epicsRegisterFunction(mySubInit);
* epicsRegisterFunction(mySubProcess);
* \endcode
*
* Place matching entries in a DBD file.
*
* \code{.dbd}
* registrar(mySubInit)
* registrar(mySubProcess)
* \endcode
*
* \param fun Function's name
*/
#ifdef __cplusplus