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/DecoderCommand.hxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/DecoderCommand.hxx') diff --git a/src/DecoderCommand.hxx b/src/DecoderCommand.hxx index e6dc26982..394f270c2 100644 --- a/src/DecoderCommand.hxx +++ b/src/DecoderCommand.hxx @@ -20,11 +20,13 @@ #ifndef MPD_DECODER_COMMAND_HXX #define MPD_DECODER_COMMAND_HXX -enum decoder_command { - DECODE_COMMAND_NONE = 0, - DECODE_COMMAND_START, - DECODE_COMMAND_STOP, - DECODE_COMMAND_SEEK +#include + +enum class DecoderCommand : uint8_t { + NONE = 0, + START, + STOP, + SEEK }; #endif -- cgit v1.2.3