Ignore:
Timestamp:
08/12/06 16:21:35 (18 years ago)
Author:
zorg
Message:

Update to 1.2 (work in progress)

Location:
trunk/include/mpcdec
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/mpcdec/reader.h

    r1 r3  
    3535/// \file reader.h
    3636
    37 #ifndef _musepack_reader_h_
    38 #define _musepack_reader_h_
     37#ifndef _mpcdec_reader_h_
     38#define _mpcdec_reader_h_
    3939
    4040/// \brief Stream reader interface structure.
     
    4848
    4949    /// Seeks to byte position offset.
    50         BOOL (*seek)(void *t, mpc_int32_t offset);
     50        mpc_bool_t (*seek)(void *t, mpc_int32_t offset);
    5151
    5252    /// Returns the current byte offset in the stream.
     
    5757
    5858    /// True if the stream is a seekable stream.
    59         BOOL (*canseek)(void *t);
     59        mpc_bool_t (*canseek)(void *t);
    6060
    61     /// Optional field that can be used to identify a particular instance of
     61    /// Field that can be used to identify a particular instance of
    6262    /// reader or carry along data associated with that reader.
    6363    void *data;
    6464
    65     // These are used by provided internal standard file-based reader implementation.
    66     // You shouldn't touch them.  They're included in the main struct to avoid
    67     // malloc/free.
     65} mpc_reader;
     66
     67typedef struct mpc_reader_file_t {
     68        mpc_reader reader;
     69
    6870    FILE *file;
    6971    long file_size;
    70     BOOL is_seekable;
    71 } mpc_reader;
     72    mpc_bool_t is_seekable;
     73} mpc_reader_file;
    7274
    7375/// Initializes reader with default stdio file reader implementation.  Use
     
    7678/// \param r reader struct to initalize
    7779/// \param input input stream to attach to the reader
    78 void mpc_reader_setup_file_reader(mpc_reader *r, FILE *input);
     80void mpc_reader_setup_file_reader(mpc_reader_file *r, FILE *input);
    7981
    80 #endif // _musepack_reader_h_
     82#endif // _mpcdec_reader_h_
Note: See TracChangeset for help on using the changeset viewer.