#ifndef BOOL #define BOOL unsigned char #endif #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif typedef struct _field_select_typ { char *field; char *dest; char *information; struct _field_select_typ *next; struct _field_select_typ *prev; } field_select_typ; typedef struct _song_typ { BOOL convert; /* Convert to mp3 */ char *artist; /* Artist of Song */ char *title; /* Title of Song */ char *album; /* Albumname */ char *comment; /* Comment */ int year; /* year */ int genre; /* mp3 - genre */ char *filename; /* Filename */ char *dirname; /* Dirname */ BOOL on_fly; /* Convert on fly */ char toc; /* Tracknumber */ BOOL fn_auto; /* generate fname */ long int cddb_id; /* ID of CDDB */ char *tmp_wav_file; /* ripped wavefile*/ long int frame_len; /* length of file */ BOOL sampler; /* is sampler? */ struct _song_typ *next; /* Pointer */ struct _song_typ *prev; } song_typ; #define PRG_VERSION VERSION /* Default values */ #define MP3C_RCFILE "mp3crc" #define DEF_ETC_PATH "@prefix@/etc" #define TOT_GENRES 147 #define MP3C_BACKSPACE '' #define MP3C_LOCKFILE "~/.mp3c.lock" #include #include #ifdef HAVE_FCNTL_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_STRINGS_H #include #endif #ifdef HAVE_SYS_IOCTL_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #ifdef HAVE_STRING_H #include #endif #ifdef HAVE_TIME_H #include #endif /* Hmm, there seems to be two definitions ;-) */ #ifdef ENABLE_NLS #ifndef HAVE_NLS #define HAVE_NLS 1 #endif #endif #ifdef HAVE_NLS #ifdef HAVE_LIBINTL_H #include #else #include "../intl/libintl.h" #endif #ifdef HAVE_LOCALE_H #include #endif #define _(str) gettext(str) #else #define _(str) str #endif