[PATCH libinput 01/10] Add an enum for configuration return codes

Jonas Ådahl jadahl at gmail.com
Tue Jun 3 13:41:37 PDT 2014


On Tue, Jun 03, 2014 at 03:34:54PM +1000, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  src/libinput.h | 32 ++++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/src/libinput.h b/src/libinput.h
> index d771e21..c9ec71a 100644
> --- a/src/libinput.h
> +++ b/src/libinput.h
> @@ -1330,6 +1330,38 @@ int
>  libinput_device_has_capability(struct libinput_device *device,
>  			       enum libinput_device_capability capability);
>  
> +/**
> + * @defgroup config Device configuration
> + *
> + * Enable, disable and check for device-specific features. For all features,
> + * libinput assigns a default based on the hardware configuration. This
> + * default can be restored with the matching reset function call.
> + *
> + * Some configuration option may be dependent on or mutually exclusive with
> + * with other options. The behavior in those cases is
> + * implementation-defined, the caller must ensure that the options are set
> + * in the right order.
> + */
> +
> +enum libinput_config_status {
> +	LIBINPUT_CONFIG_STATUS_SUCCESS = 0,	/**< Config applied successfully */
> +	LIBINPUT_CONFIG_STATUS_UNSUPPORTED,	/**< Configuration not available on
> +						     this device */
> +	LIBINPUT_CONFIG_STATUS_INVALID,		/**< Invalid parameter range */
> +};
> +
> +/**
> + * @ingroup config Device configuration
> + *
> + * Return a string describing the error.
> + *
> + * @param status The status to translate to a string
> + * @return A human-readable string representing the error or NULL for an
> + * invalid status.
> + */
> +const char *
> +libinput_config_status_to_str(enum libinput_config_status status);
> +

Can't see the implementation of this function anywhere.


Jonas

>  #ifdef __cplusplus
>  }
>  #endif
> -- 
> 1.9.0
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list