stream_cddb: move structs to the file they're used in
Move cddb_data_t and cd_toc_t structs to the only place they are used. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31514 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
1 parent
5a9c26af59
commit
322fecd8de
2 files changed
+18
-18
No files matched your search
@@ -21,24 +21,6 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef struct {
|
||||
char cddb_hello[1024];
|
||||
unsigned long disc_id;
|
||||
unsigned int tracks;
|
||||
char *cache_dir;
|
||||
char *freedb_server;
|
||||
int freedb_proto_level;
|
||||
int anonymous;
|
||||
char category[100];
|
||||
char *xmcd_file;
|
||||
size_t xmcd_file_size;
|
||||
void *user_data;
|
||||
} cddb_data_t;
|
||||
|
||||
typedef struct {
|
||||
unsigned int min, sec, frame;
|
||||
} cd_toc_t;
|
||||
|
||||
typedef struct cd_track {
|
||||
char *name;
|
||||
unsigned int track_nb;
|
||||
|
||||
@@ -78,6 +78,24 @@
|
||||
#define DEFAULT_FREEDB_SERVER "freedb.freedb.org"
|
||||
#define DEFAULT_CACHE_DIR "/.cddb/"
|
||||
|
||||
typedef struct {
|
||||
char cddb_hello[1024];
|
||||
unsigned long disc_id;
|
||||
unsigned int tracks;
|
||||
char *cache_dir;
|
||||
char *freedb_server;
|
||||
int freedb_proto_level;
|
||||
int anonymous;
|
||||
char category[100];
|
||||
char *xmcd_file;
|
||||
size_t xmcd_file_size;
|
||||
void *user_data;
|
||||
} cddb_data_t;
|
||||
|
||||
typedef struct {
|
||||
unsigned int min, sec, frame;
|
||||
} cd_toc_t;
|
||||
|
||||
static cd_toc_t cdtoc[100];
|
||||
static int cdtoc_last_track;
|
||||
|
||||
|
||||
Reference in new issue
Block a user