Revert "Revert "Add API for channel frame deferral.""

This reverts commit 6b5a7ced13.

Change-Id: I61d1dbb2e69e1977f684b7dfc8e98211024e1cd1
This commit is contained in:
George Joseph
2016-11-14 15:21:26 -05:00
parent 6b5a7ced13
commit 2fefb6187f
3 changed files with 89 additions and 0 deletions

View File

@@ -223,6 +223,7 @@ struct ast_channel {
struct stasis_cp_single *topics; /*!< Topic for all channel's events */
struct stasis_forward *endpoint_forward; /*!< Subscription for event forwarding to endpoint's topic */
struct stasis_forward *endpoint_cache_forward; /*!< Subscription for cache updates to endpoint's topic */
struct ast_readq_list deferred_readq;
};
/*! \brief The monotonically increasing integer counter for channel uniqueids */
@@ -1698,3 +1699,8 @@ enum ast_channel_error ast_channel_internal_errno(void)
return *error_code;
}
struct ast_readq_list *ast_channel_deferred_readq(struct ast_channel *chan)
{
return &chan->deferred_readq;
}