X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=check_wav.c;h=3789f30aa5a20ef5433df83362a6be02563c8d17;hb=refs%2Fheads%2Fnext;hp=074ad8fe74fbfe4b383a98d2d69ecf48c175f443;hpb=742c8b3f79a59278ced71e1855da1846b157b494;p=paraslash.git diff --git a/check_wav.c b/check_wav.c index 074ad8fe..cb39eb54 100644 --- a/check_wav.c +++ b/check_wav.c @@ -47,14 +47,14 @@ struct check_wav_context { * If no data is available and the buffer tree node is not in error state, the * function does nothing. */ -void check_wav_pre_select(struct sched *s, struct check_wav_context *cwc) +void check_wav_pre_monitor(struct sched *s, struct check_wav_context *cwc) { int ret = btr_node_status(cwc->btrn, cwc->min_iqs, BTR_NT_INTERNAL); if (ret != 0) sched_min_delay(s); } -static int check_wav_exec(struct btr_node *btrn, const char *cmd, char **result) +static int check_wav_exec(const struct btr_node *btrn, const char *cmd, char **result) { struct check_wav_context *cwc = btr_context(btrn); int val, header_val, given, arg; @@ -121,7 +121,7 @@ out: * * \return Standard. */ -int check_wav_post_select(struct check_wav_context *cwc) +int check_wav_post_monitor(struct check_wav_context *cwc) { struct btr_node *btrn = cwc->btrn; unsigned char *a; @@ -198,8 +198,8 @@ out: * children of this node can figure out channel count, sample rate, etc. * * \return The (opaque) handle of the newly created check_wav instance. It is - * supposed to be passed to \ref check_wav_pre_select() and \ref - * check_wav_post_select(). + * supposed to be passed to \ref check_wav_pre_monitor() and \ref + * check_wav_post_monitor(). * * \sa \ref btr_new_node. */ @@ -207,7 +207,7 @@ struct check_wav_context *check_wav_init(struct btr_node *parent, struct btr_node *child, struct wav_params *params, struct btr_node **cw_btrn) { - struct check_wav_context *cwc = para_calloc(sizeof(*cwc)); + struct check_wav_context *cwc = zalloc(sizeof(*cwc)); cwc->state = CWS_NEED_HEADER; cwc->min_iqs = WAV_HEADER_LEN; @@ -225,7 +225,7 @@ struct check_wav_context *check_wav_init(struct btr_node *parent, * * \param cwc Determines the instance to shut down. * - * This function may only be called after check_wav_post_select() has returned + * This function may only be called after check_wav_post_monitor() has returned * negative. */ void check_wav_shutdown(struct check_wav_context *cwc)