typedef struct mixState { char *input; char *output; char *name; float dBGain; } mixState; typedef enum bool { false, true } bool; void parseArgs(int argc, char *argv[]); void setWorkdir(); void syncState(); void readState(); void writeState(); int openSyncFile(FILE **file, char *fileName, char *fileMode, bool errOK); void cleanExit(int r); void errMsg(int r, int *errno, char *head, char *detail);