diff options
author | Max Kellermann <max@duempel.org> | 2013-09-27 12:11:37 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-27 12:11:37 +0200 |
commit | c5d05ac0cf18dbd3d04534de240c437f8b07bd28 (patch) | |
tree | 5e69c019f69cc6f2f1d99c71448338d855bf4898 /test/dump_playlist.cxx | |
parent | 939003c1f1a8ed9f6e3fe677a63e1686fe35d929 (diff) | |
download | mpd-c5d05ac0cf18dbd3d04534de240c437f8b07bd28.tar.gz mpd-c5d05ac0cf18dbd3d04534de240c437f8b07bd28.tar.xz mpd-c5d05ac0cf18dbd3d04534de240c437f8b07bd28.zip |
DecoderCommand: convert to strictly-typed enum
Diffstat (limited to '')
-rw-r--r-- | test/dump_playlist.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index 45719fab0..af73ed4e7 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -59,10 +59,10 @@ decoder_initialized(gcc_unused struct decoder *decoder, { } -enum decoder_command +DecoderCommand decoder_get_command(gcc_unused struct decoder *decoder) { - return DECODE_COMMAND_NONE; + return DecoderCommand::NONE; } void @@ -96,22 +96,22 @@ decoder_timestamp(gcc_unused struct decoder *decoder, { } -enum decoder_command +DecoderCommand decoder_data(gcc_unused struct decoder *decoder, gcc_unused struct input_stream *is, const void *data, size_t datalen, gcc_unused uint16_t kbit_rate) { gcc_unused ssize_t nbytes = write(1, data, datalen); - return DECODE_COMMAND_NONE; + return DecoderCommand::NONE; } -enum decoder_command +DecoderCommand decoder_tag(gcc_unused struct decoder *decoder, gcc_unused struct input_stream *is, gcc_unused Tag &&tag) { - return DECODE_COMMAND_NONE; + return DecoderCommand::NONE; } void |