diff options
Diffstat (limited to 'include/asterisk/endpoints.h')
-rw-r--r-- | include/asterisk/endpoints.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/endpoints.h b/include/asterisk/endpoints.h index 663dd94d9..c9cb6b9de 100644 --- a/include/asterisk/endpoints.h +++ b/include/asterisk/endpoints.h @@ -160,6 +160,16 @@ const char *ast_endpoint_get_resource(const struct ast_endpoint *endpoint); const char *ast_endpoint_get_id(const struct ast_endpoint *endpoint); /*! + * \brief Gets the state of the given endpoint. + * + * \param endpoint The endpoint. + * \return state. + * \return \c AST_ENDPOINT_UNKNOWN if endpoint is \c NULL. + * \since 13.4 + */ +enum ast_endpoint_state ast_endpoint_get_state(const struct ast_endpoint *endpoint); + +/*! * \brief Updates the state of the given endpoint. * * \param endpoint Endpoint to modify. |