[PATCH xserver 1/8] Add stubs to input.h

Peter Hutterer peter.hutterer at who-t.net
Thu Dec 10 01:24:41 PST 2015


On Wed, Dec 09, 2015 at 03:12:35PM -0800, Keith Packard wrote:
> ---
>  include/input.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/include/input.h b/include/input.h
> index d8bd9c6..5bc60f0 100644
> --- a/include/input.h
> +++ b/include/input.h
> @@ -712,4 +712,10 @@ extern _X_HIDDEN void input_constrain_cursor(DeviceIntPtr pDev, ScreenPtr screen
>                                               int *out_x, int *out_y,
>                                               int *nevents, InternalEvent* events);
>  
> +static inline void input_lock(void) {
> +}
> +
> +static inline void input_unlock(void) {
> +}
> +

in light of Mark's comments to 4/8 these should be an opaque API rather than
inlined so we don't need to export the globals.

Cheers,
   Peter


>  #endif                          /* INPUT_H */
> -- 
> 2.6.2


More information about the xorg-devel mailing list