X-Git-Url: https://diplodocus.org/git/xorg-xinput/blobdiff_plain/8806f3db5417f1c5946b6589cf2f043e9e7c68d3..2722d1a177c9482989e314e0177c782563a0b54e:/src/xinput.h diff --git a/src/xinput.h b/src/xinput.h index 02058a2..4b68090 100644 --- a/src/xinput.h +++ b/src/xinput.h @@ -1,19 +1,19 @@ /* * Copyright 1996 by Frederic Lepied, France. - * + * * 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 + * documentation, and that the name of the authors not be used in * advertising or publicity pertaining to distribution of the software without - * specific, written prior permission. Frederic Lepied makes no + * specific, written prior permission. The authors make 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, + * is provided "as is" without express or implied warranty. + * + * THE AUTHORS DISCLAIM 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 + * EVENT SHALL THE AUTHORS 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 @@ -21,8 +21,15 @@ * */ +#if HAVE_CONFIG_H +#include +#endif + #include #include +#ifdef HAVE_XI2 +#include +#endif #include #include #include @@ -36,121 +43,45 @@ XDeviceInfo* find_device_info( -#if NeedFunctionPrototypes Display *display, char *name, Bool only_extended -#endif ); int -get_feedbacks( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); +xi2_find_device_id(Display *display, char *name); -int -set_ptr_feedback( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); +int xinput_version(Display* display); -int -set_button_map( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); - -int -set_pointer( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); - -int -set_mode( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); +#define DECLARE(name) \ + int (name) ( \ + Display* display, \ + int argc, \ + char *argv[], \ + char *prog_name, \ + char *prog_desc \ +) -int -list( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); - -int -test( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); - -int -version( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); - -int -set_integer_feedback( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); - -int -query_state( -#if NeedFunctionPrototypes - Display* display, - int argc, - char *argv[], - char *prog_name, - char *prog_desc -#endif -); - -/* end of xinput.h - */ +DECLARE(get_feedbacks); +DECLARE(set_ptr_feedback); +DECLARE(get_button_map); +DECLARE(set_button_map); +DECLARE(set_pointer); +DECLARE(set_mode); +DECLARE(list); +DECLARE(test); +DECLARE(version); +DECLARE(set_integer_feedback); +DECLARE(query_state); +DECLARE(create_master); +DECLARE(remove_master); +DECLARE(change_attachment); +DECLARE(float_device); +DECLARE(set_clientpointer); +DECLARE(test_xi2); +DECLARE(list_props); +DECLARE(set_int_prop); +DECLARE(set_float_prop); +DECLARE(set_atom_prop); +DECLARE(watch_props); +DECLARE(delete_prop); +/* end of xinput.h */