X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/87b5259b3ebe094ed7571de9cd2f7614d6488f66..e194c23144e69c1acbebb2d872c8d45fd1b52762:/server/decode.c diff --git a/server/decode.c b/server/decode.c index b609d4e..3a1e1a9 100644 --- a/server/decode.c +++ b/server/decode.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2007 Richard Kettlewell + * Copyright (C) 2007, 2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,20 +21,10 @@ * @brief General-purpose decoder for use by speaker process */ -#include -#include "types.h" - -#include -#include -#include -#include -#include -#include -#include -#include +#include "disorder-server.h" + #include #include -#include /* libFLAC has had an API change and stupidly taken away the old API */ #if HAVE_FLAC_FILE_DECODER_H @@ -45,9 +35,6 @@ #define FLAC__FileDecoderState FLAC__StreamDecoderState #endif -#include "log.h" -#include "syscalls.h" -#include "defs.h" #include "wav.h" #include "speaker-protocol.h" @@ -444,13 +431,6 @@ static void help(void) { exit(0); } -/* Display version number and terminate. */ -static void version(void) { - xprintf("%s", disorder_version_string); - xfclose(stdout); - exit(0); -} - int main(int argc, char **argv) { int n; const char *e; @@ -460,7 +440,7 @@ int main(int argc, char **argv) { while((n = getopt_long(argc, argv, "hV", options, 0)) >= 0) { switch(n) { case 'h': help(); - case 'V': version(); + case 'V': version("disorder-decode"); default: fatal(0, "invalid option"); } }