diff options
Diffstat (limited to 'app/xinput/src/version.c')
-rw-r--r-- | app/xinput/src/version.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app/xinput/src/version.c b/app/xinput/src/version.c new file mode 100644 index 000000000..be35d436c --- /dev/null +++ b/app/xinput/src/version.c @@ -0,0 +1,43 @@ +/* + * Copyright 1996-1997 by Frederic Lepied, France. <Frederic.Lepied@sugix.frmug.org> + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Frederic Lepied not be used in + * advertising or publicity pertaining to distribution of the software without + * specific, written prior permission. Frederic Lepied makes no + * representations about the suitability of this software for any purpose. It + * is provided "as is" without express or implied warranty. + * + * FREDERIC LEPIED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL FREDERIC LEPIED BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + * + */ + +#include "xinput.h" + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +static const char version_id[] = VERSION; + +int +version(Display *display, + int argc, + char *argv[], + char *name, + char *desc) +{ + printf("%s %s\n", name, version_id); + return EXIT_SUCCESS; +} + +/* end of version.c */ |