Lines Matching defs:handler

84  * \brief Registers an async handler.
85 * \param handler The function puts the pointer to the new async handler
86 * object at the address specified by \p handler.
96 * function will be called with its parameter pointing to the async handler
99 * The ALSA \c sigaction handler for the \c SIGIO signal automatically
107 * When the async handler isn't needed anymore, you must delete it with
112 int snd_async_add_handler(snd_async_handler_t **handler, int fd,
117 assert(handler);
127 *handler = h;
146 * \brief Deletes an async handler.
147 * \param handler Handle of the async handler to delete.
150 int snd_async_del_handler(snd_async_handler_t *handler)
154 assert(handler);
155 list_del(&handler->glist);
165 if (handler->type == SND_ASYNC_HANDLER_GENERIC)
167 if (!list_empty(&handler->hlist))
168 list_del(&handler->hlist);
169 if (!list_empty(&handler->hlist))
171 switch (handler->type) {
174 err = snd_pcm_async(handler->u.pcm, -1, 1);
178 err = snd_ctl_async(handler->u.ctl, -1, 1);
184 free(handler);
189 * \brief Returns the signal number assigned to an async handler.
190 * \param handler Handle to an async handler.
197 int snd_async_handler_get_signo(snd_async_handler_t *handler)
199 assert(handler);
204 * \brief Returns the file descriptor assigned to an async handler.
205 * \param handler Handle to an async handler.
208 int snd_async_handler_get_fd(snd_async_handler_t *handler)
210 assert(handler);
211 return handler->fd;
215 * \brief Returns the private data assigned to an async handler.
216 * \param handler Handle to an async handler.
217 * \result The \c private_data value registered with the async handler.
219 void *snd_async_handler_get_callback_private(snd_async_handler_t *handler)
221 assert(handler);
222 return handler->private_data;