diff options
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/abstract_jb.h | 10 | ||||
-rw-r--r-- | include/asterisk/channel.h | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/include/asterisk/abstract_jb.h b/include/asterisk/abstract_jb.h index 014902be8..8f365a860 100644 --- a/include/asterisk/abstract_jb.h +++ b/include/asterisk/abstract_jb.h @@ -202,16 +202,22 @@ int ast_jb_read_conf(struct ast_jb_conf *conf, char *varname, char *value); * * Called from a channel driver when a channel is created and its jitterbuffer needs * to be configured. + * + * \retval 0 success + * \retval -1 failure */ -void ast_jb_configure(struct ast_channel *chan, const struct ast_jb_conf *conf); +int ast_jb_configure(struct ast_channel *chan, const struct ast_jb_conf *conf); /*! * \brief Copies a channel's jitterbuffer configuration. * \param chan channel. * \param conf destination. + * + * \retval 0 success + * \retval -1 failure */ -void ast_jb_get_config(const struct ast_channel *chan, struct ast_jb_conf *conf); +int ast_jb_get_config(const struct ast_channel *chan, struct ast_jb_conf *conf); #if defined(__cplusplus) || defined(c_plusplus) diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 3d842bbe3..0168b90fa 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -383,7 +383,7 @@ struct ast_channel { struct ast_channel_spy_list *spies; /*!< Chan Spy stuff */ AST_LIST_ENTRY(ast_channel) chan_list; /*!< For easy linking */ - struct ast_jb jb; /*!< The jitterbuffer state */ + struct ast_jb *jb; /*!< The jitterbuffer state */ /*! \brief Data stores on the channel */ AST_LIST_HEAD_NOLOCK(datastores, ast_datastore) datastores; |