minor reordering of decoder state enum to match FLAC layers
authorJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 17 Mar 2004 22:08:15 +0000 (22:08 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Wed, 17 Mar 2004 22:08:15 +0000 (22:08 +0000)
include/OggFLAC/file_decoder.h
include/OggFLAC/seekable_stream_decoder.h
include/OggFLAC/stream_decoder.h
src/libOggFLAC/file_decoder.c
src/libOggFLAC/seekable_stream_decoder.c
src/libOggFLAC/stream_decoder.c

index f0019b4..19167dd 100644 (file)
@@ -91,9 +91,6 @@ typedef enum {
         * check OggFLAC__file_decoder_get_seekable_stream_decoder_state().
         */
 
-       OggFLAC__FILE_DECODER_INVALID_CALLBACK,
-       /**< The decoder was initialized before setting all the required callbacks. */
-
        OggFLAC__FILE_DECODER_MEMORY_ALLOCATION_ERROR,
        /**< Memory allocation failed. */
 
@@ -103,6 +100,9 @@ typedef enum {
         * OggFLAC__file_decoder_finish() was not called.
         */
 
+       OggFLAC__FILE_DECODER_INVALID_CALLBACK,
+       /**< The decoder was initialized before setting all the required callbacks. */
+
        OggFLAC__FILE_DECODER_UNINITIALIZED
        /**< The decoder is in the uninitialized state. */
 
index cb11351..496e11f 100644 (file)
@@ -91,9 +91,6 @@ typedef enum {
        OggFLAC__SEEKABLE_STREAM_DECODER_READ_ERROR,
        /**< The read callback returned an error. */
 
-       OggFLAC__SEEKABLE_STREAM_DECODER_INVALID_CALLBACK,
-       /**< The decoder was initialized before setting all the required callbacks. */
-
        OggFLAC__SEEKABLE_STREAM_DECODER_MEMORY_ALLOCATION_ERROR,
        /**< Memory allocation failed. */
 
@@ -103,6 +100,9 @@ typedef enum {
         * OggFLAC__seekable_stream_decoder_finish() was not called.
         */
 
+       OggFLAC__SEEKABLE_STREAM_DECODER_INVALID_CALLBACK,
+       /**< The decoder was initialized before setting all the required callbacks. */
+
        OggFLAC__SEEKABLE_STREAM_DECODER_UNINITIALIZED
        /**< The decoder is in the uninitialized state. */
 
index ab5b03f..983f94c 100644 (file)
@@ -103,9 +103,6 @@ typedef enum {
         * check OggFLAC__stream_decoder_get_FLAC_stream_decoder_state().
         */
 
-       OggFLAC__STREAM_DECODER_INVALID_CALLBACK,
-       /**< The decoder was initialized before setting all the required callbacks. */
-
        OggFLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR,
        /**< Memory allocation failed. */
 
@@ -115,6 +112,9 @@ typedef enum {
         * OggFLAC__stream_decoder_finish() was not called.
         */
 
+       OggFLAC__STREAM_DECODER_INVALID_CALLBACK,
+       /**< The decoder was initialized before setting all the required callbacks. */
+
        OggFLAC__STREAM_DECODER_UNINITIALIZED
        /**< The decoder is in the uninitialized state. */
 
index 990ba8d..393ac2d 100644 (file)
@@ -89,9 +89,9 @@ OggFLAC_API const char * const OggFLAC__FileDecoderStateString[] = {
        "OggFLAC__FILE_DECODER_ERROR_OPENING_FILE",
        "OggFLAC__FILE_DECODER_SEEK_ERROR",
        "OggFLAC__FILE_DECODER_SEEKABLE_STREAM_DECODER_ERROR",
-       "OggFLAC__FILE_DECODER_INVALID_CALLBACK",
        "OggFLAC__FILE_DECODER_MEMORY_ALLOCATION_ERROR",
        "OggFLAC__FILE_DECODER_ALREADY_INITIALIZED",
+       "OggFLAC__FILE_DECODER_INVALID_CALLBACK",
        "OggFLAC__FILE_DECODER_UNINITIALIZED"
 };
 
index bc7773f..f7f777c 100644 (file)
@@ -82,9 +82,9 @@ OggFLAC_API const char * const OggFLAC__SeekableStreamDecoderStateString[] = {
        "OggFLAC__SEEKABLE_STREAM_DECODER_OGG_ERROR",
        "OggFLAC__SEEKABLE_STREAM_DECODER_FLAC_SEEKABLE_STREAM_DECODER_ERROR",
        "OggFLAC__SEEKABLE_STREAM_DECODER_READ_ERROR",
-       "OggFLAC__SEEKABLE_STREAM_DECODER_INVALID_CALLBACK",
        "OggFLAC__SEEKABLE_STREAM_DECODER_MEMORY_ALLOCATION_ERROR",
        "OggFLAC__SEEKABLE_STREAM_DECODER_ALREADY_INITIALIZED",
+       "OggFLAC__SEEKABLE_STREAM_DECODER_INVALID_CALLBACK",
        "OggFLAC__SEEKABLE_STREAM_DECODER_UNINITIALIZED"
 };
 
index be242d3..73f56ef 100644 (file)
@@ -74,9 +74,9 @@ OggFLAC_API const char * const OggFLAC__StreamDecoderStateString[] = {
        "OggFLAC__STREAM_DECODER_OGG_ERROR",
        "OggFLAC__STREAM_DECODER_READ_ERROR",
        "OggFLAC__STREAM_DECODER_FLAC_STREAM_DECODER_ERROR",
-       "OggFLAC__STREAM_DECODER_INVALID_CALLBACK",
        "OggFLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR",
        "OggFLAC__STREAM_DECODER_ALREADY_INITIALIZED",
+       "OggFLAC__STREAM_DECODER_INVALID_CALLBACK",
        "OggFLAC__STREAM_DECODER_UNINITIALIZED"
 };