From c5d05ac0cf18dbd3d04534de240c437f8b07bd28 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 27 Sep 2013 12:11:37 +0200 Subject: DecoderCommand: convert to strictly-typed enum --- src/DecoderAPI.hxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/DecoderAPI.hxx') diff --git a/src/DecoderAPI.hxx b/src/DecoderAPI.hxx index ff7cdc27b..f96aa596a 100644 --- a/src/DecoderAPI.hxx +++ b/src/DecoderAPI.hxx @@ -54,10 +54,10 @@ decoder_initialized(struct decoder *decoder, * Determines the pending decoder command. * * @param decoder the decoder object - * @return the current command, or DECODE_COMMAND_NONE if there is no + * @return the current command, or DecoderCommand::NONE if there is no * command pending */ -enum decoder_command +DecoderCommand decoder_get_command(struct decoder *decoder); /** @@ -71,7 +71,7 @@ void decoder_command_finished(struct decoder *decoder); /** - * Call this when you have received the DECODE_COMMAND_SEEK command. + * Call this when you have received the DecoderCommand::SEEK command. * * @param decoder the decoder object * @return the destination position for the week @@ -120,10 +120,10 @@ decoder_timestamp(struct decoder *decoder, double t); * for the player * @param data the source buffer * @param length the number of bytes in the buffer - * @return the current command, or DECODE_COMMAND_NONE if there is no + * @return the current command, or DecoderCommand::NONE if there is no * command pending */ -enum decoder_command +DecoderCommand decoder_data(struct decoder *decoder, struct input_stream *is, const void *data, size_t length, uint16_t kbit_rate); @@ -136,10 +136,10 @@ decoder_data(struct decoder *decoder, struct input_stream *is, * @param is an input stream which is buffering while we are waiting * for the player * @param tag the tag to send - * @return the current command, or DECODE_COMMAND_NONE if there is no + * @return the current command, or DecoderCommand::NONE if there is no * command pending */ -enum decoder_command +DecoderCommand decoder_tag(struct decoder *decoder, struct input_stream *is, Tag &&tag); /** -- cgit v1.2.3