summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-27 12:11:37 +0200
committerMax Kellermann <max@duempel.org>2013-09-27 12:11:37 +0200
commitc5d05ac0cf18dbd3d04534de240c437f8b07bd28 (patch)
tree5e69c019f69cc6f2f1d99c71448338d855bf4898 /test
parent939003c1f1a8ed9f6e3fe677a63e1686fe35d929 (diff)
DecoderCommand: convert to strictly-typed enum
Diffstat (limited to 'test')
-rw-r--r--test/dump_playlist.cxx12
-rw-r--r--test/read_tags.cxx12
-rw-r--r--test/run_decoder.cxx12
3 files changed, 18 insertions, 18 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
diff --git a/test/read_tags.cxx b/test/read_tags.cxx
index de100134b..d7f2f38d9 100644
--- a/test/read_tags.cxx
+++ b/test/read_tags.cxx
@@ -47,10 +47,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 decoder_command_finished(gcc_unused struct decoder *decoder)
@@ -81,22 +81,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 bit_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
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index ed29c1880..794302b5d 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -68,10 +68,10 @@ decoder_initialized(struct decoder *decoder,
decoder->initialized = true;
}
-enum decoder_command
+DecoderCommand
decoder_get_command(gcc_unused struct decoder *decoder)
{
- return DECODE_COMMAND_NONE;
+ return DecoderCommand::NONE;
}
void decoder_command_finished(gcc_unused struct decoder *decoder)
@@ -101,22 +101,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