format_mp3.h 885 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/* Icecast
 *
 * This program is distributed under the GNU General Public License, version 2.
 * A copy of this license is included with this source.
 *
 * Copyright 2000-2004, Jack Moffitt <jack@xiph.org, 
 *                      Michael Smith <msmith@xiph.org>,
 *                      oddsock <oddsock@xiph.org>,
 *                      Karl Heyes <karl@xiph.org>
 *                      and others (see AUTHORS for details).
 */

Michael Smith's avatar
Michael Smith committed
13 14 15 16 17 18 19 20
/* format_mp3.h
**
** mp3 format plugin
**
*/
#ifndef __FORMAT_MP3_H__
#define __FORMAT_MP3_H__

21 22 23
typedef struct {
    char *metadata;
    int metadata_age;
Michael Smith's avatar
Michael Smith committed
24
    mutex_t lock;
25 26 27 28 29 30 31

    /* These are for inline metadata */
    int inline_metadata_interval;
    int offset;
    int metadata_length;
    char *metadata_buffer;
    int metadata_offset;
32 33
} mp3_state;

34
format_plugin_t *format_mp3_get_plugin(http_parser_t *parser);
Michael Smith's avatar
Michael Smith committed
35 36

#endif  /* __FORMAT_MP3_H__ */