diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-09-08 19:01:20 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-09-08 19:01:20 +0000 |
commit | 79246506e7b2dd3c67da0b1c4da13f3d66ff28e5 (patch) | |
tree | 8ced9209411369f41d3df8a32b7f582feaa216c7 /include | |
parent | 9dba50322dd9d9f881fc5cac694c550c281c403f (diff) |
Add doxygen documentation for slinfactory_destroy(), mainly just noting that
it doesn't free the slinfactory itself. (This isn't related to a bug, i'm just
looking over random code)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/slinfactory.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asterisk/slinfactory.h b/include/asterisk/slinfactory.h index 3ab42d283..597d366bf 100644 --- a/include/asterisk/slinfactory.h +++ b/include/asterisk/slinfactory.h @@ -42,7 +42,20 @@ struct ast_slinfactory { }; void ast_slinfactory_init(struct ast_slinfactory *sf); + +/*! + * \brief Destroy the contents of a slinfactory + * + * \arg sf the slinfactory that is no longer needed + * + * This function will free any memory allocated for the contents of the + * slinfactory. It does not free the slinfactory itself. If the sf is + * malloc'd, then it must be explicitly free'd after calling this function. + * + * \return nothing + */ void ast_slinfactory_destroy(struct ast_slinfactory *sf); + int ast_slinfactory_feed(struct ast_slinfactory *sf, struct ast_frame *f); int ast_slinfactory_read(struct ast_slinfactory *sf, short *buf, size_t samples); unsigned int ast_slinfactory_available(const struct ast_slinfactory *sf); |