/* EasyPLX beta version, first version Licensed under GNU GPL Copyleft Olle Bergkvist 2007 www.olle.tk e-mail: olle dot bergvist at yahoo dot se */ #define VERSION "BETA, first version, 2007-06-14" #define MAXNUM 255 #define MAXLENGTH 1023 #define MAXFILELENGTH 32767 #define MAXMEM 32767 #define FILE_EXT ".plx" #define ERROR_INTERNAL 1 #define ERROR_CMD 2 #define ERROR_OUT 3 #define ERROR_IN 4 #define ERROR_NO_FILES 5 #define ERROR_PLX 6 /* For portability: To make this work on GNU/Linux: On GNU/Linux, WIN32 is not defined. This will enable the GNU/Linux-specific code. Then, you will have to change some other constants to make it work the best for your certain GNU/Linux distro. So I guess this program isnt so portable after all :( Those constants you should change are located after "#ifdef WIN32" */ /* Uncomment the following #define if you want to use long (GNU) options, e.g. --out=/mnt/E10 instead of -out=/mnt/E10 */ //#define LONG_OPTIONS /*Here are the constants you may change, and _should_ change if you are compiling for GNU/Linux. OUT_DIR_DEFAULT is the default mount point for the audio player. PLX_DIR_DEFAULT is the default directory to save the PLX file in. This should not be changed. DRIVE_LETTER_OFFSET specifies how many bytes the "drive letter" is, from the beginning of the file path. */ #ifdef WIN32 #define OUT_DIR_DEFAULT "E:\\" #define PLX_DIR_DEFAULT "Playlists\\" #define DRIVE_LETTER_OFFSET 0 #else #define OUT_DIR_DEFAULT "/mnt/sda1/" #define PLX_DIR_DEFAULT "Playlists/" #define DRIVE_LETTER_OFFSET 8 #endif #ifdef LONG_OPTIONS #define CMD_LINE_OFFSET 2 #define ARG_LEN_DRIVE 8 #define ARG_LEN_OUT 6 #define ARG_LEN_PLX 6 #define ARG_LEN_NAME 7 #define ARG_LEN_LIST 7 #define USAGE "\ \n\ Licensed under GNU GPL\n\ Copyleft Olle Bergkvist 2007\n\ www.olle.tk\n\ \n\ Usage: \n\ ./easyplx [--help] [--drive=drive_letter] [--out=path_to_player] \n\ [--name=playlist_name] [--list=path_to_m3u_or_similar] \n\ [picturefile1] [picturefile2] [picturefile3] and so on \n\ For more info see the source code. \n\ " #else #define CMD_LINE_OFFSET 1 #define ARG_LEN_DRIVE 7 #define ARG_LEN_OUT 5 #define ARG_LEN_PLX 5 #define ARG_LEN_NAME 6 #define ARG_LEN_LIST 6 #define USAGE "\ \n\ Licensed under GNU GPL\n\ Copyleft Olle Bergkvist 2007\n\ www.olle.tk\n\ \n\ Usage: \n\ ./easyplx [-help] [-drive=drive_letter] [-out=path_to_player] \n\ [-name=playlist_name] [-list=path_to_m3u_or_similar] \n\ [picturefile1] [picturefile2] [picturefile3] and so on \n\ For more info see the source code. \n\ " #endif