From 663479a558e2f2b98a94a9d77cf4c66f0e66e513 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Tue, 15 Jan 2013 20:48:45 +0000 Subject: Make ast_taskprocessor_listener opaque. git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379125 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/taskprocessor.h | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'include') diff --git a/include/asterisk/taskprocessor.h b/include/asterisk/taskprocessor.h index eb3137c96..a26cf4341 100644 --- a/include/asterisk/taskprocessor.h +++ b/include/asterisk/taskprocessor.h @@ -111,24 +111,8 @@ struct ast_taskprocessor_listener_callbacks { void (*shutdown)(struct ast_taskprocessor_listener *listener); }; -/*! - * \brief A listener for taskprocessors - * - * \since 12.0.0 - * - * When a taskprocessor's state changes, the listener - * is notified of the change. This allows for tasks - * to be addressed in whatever way is appropriate for - * the module using the taskprocessor. - */ -struct ast_taskprocessor_listener { - /*! The callbacks the taskprocessor calls into to notify of state changes */ - const struct ast_taskprocessor_listener_callbacks *callbacks; - /*! The taskprocessor that the listener is listening to */ - struct ast_taskprocessor *tps; - /*! Data private to the listener */ - void *user_data; -}; +struct ast_taskprocessor *ast_taskprocessor_listener_get_tps(const struct ast_taskprocessor_listener *listener); +void *ast_taskprocessor_listener_get_user_data(const struct ast_taskprocessor_listener *listener); /*! * \brief Allocate a taskprocessor listener -- cgit v1.2.3