aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_control.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-01-10 20:46:04 +0100
committerMax Kellermann <max@duempel.org>2011-01-10 20:46:04 +0100
commitb77e62260aa1f3d36d742d947610c13f235bb67a (patch)
tree9be88302670f1913027595215552eafc83bac4d9 /src/decoder_control.h
parentb6995ca0113611613d311250eabfc354658d46a7 (diff)
downloadmpd-b77e62260aa1f3d36d742d947610c13f235bb67a.tar.gz
mpd-b77e62260aa1f3d36d742d947610c13f235bb67a.tar.xz
mpd-b77e62260aa1f3d36d742d947610c13f235bb67a.zip
decoder_control: replace dc_init() with dc_new()
dc_new() allocates the object and returns it. dc_free() frees it (replaces dc_deinit()).
Diffstat (limited to '')
-rw-r--r--src/decoder_control.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/decoder_control.h b/src/decoder_control.h
index fafc6dea3..13b894685 100644
--- a/src/decoder_control.h
+++ b/src/decoder_control.h
@@ -105,11 +105,12 @@ struct decoder_control {
char *mixramp_prev_end;
};
-void
-dc_init(struct decoder_control *dc, struct player_control *pc);
+G_GNUC_MALLOC
+struct decoder_control *
+dc_new(struct player_control *pc);
void
-dc_deinit(struct decoder_control *dc);
+dc_free(struct decoder_control *dc);
/**
* Locks the #decoder_control object.