• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/alsa-lib-1.0.26/src/

Lines Matching defs:handler

66  * \brief Registers an async handler.
67 * \param handler The function puts the pointer to the new async handler
68 * object at the address specified by \p handler.
78 * function will be called with its parameter pointing to the async handler
81 * The ALSA \c sigaction handler for the \c SIGIO signal automatically
89 * When the async handler isn't needed anymore, you must delete it with
94 int snd_async_add_handler(snd_async_handler_t **handler, int fd,
99 assert(handler);
109 *handler = h;
127 * \brief Deletes an async handler.
128 * \param handler Handle of the async handler to delete.
131 int snd_async_del_handler(snd_async_handler_t *handler)
134 assert(handler);
135 list_del(&handler->glist);
147 if (handler->type == SND_ASYNC_HANDLER_GENERIC)
149 if (!list_empty(&handler->hlist))
150 list_del(&handler->hlist);
151 if (!list_empty(&handler->hlist))
153 switch (handler->type) {
156 err = snd_pcm_async(handler->u.pcm, -1, 1);
160 err = snd_ctl_async(handler->u.ctl, -1, 1);
166 free(handler);
171 * \brief Returns the signal number assigned to an async handler.
172 * \param handler Handle to an async handler.
179 int snd_async_handler_get_signo(snd_async_handler_t *handler)
181 assert(handler);
186 * \brief Returns the file descriptor assigned to an async handler.
187 * \param handler Handle to an async handler.
190 int snd_async_handler_get_fd(snd_async_handler_t *handler)
192 assert(handler);
193 return handler->fd;
197 * \brief Returns the private data assigned to an async handler.
198 * \param handler Handle to an async handler.
199 * \result The \c private_data value registered with the async handler.
201 void *snd_async_handler_get_callback_private(snd_async_handler_t *handler)
203 assert(handler);
204 return handler->private_data;