mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-05-08 04:18:03 +02:00
Constify libevdev_get_repeat
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
aac29742b0
commit
0aae85122d
2 changed files with 2 additions and 2 deletions
|
|
@ -1335,7 +1335,7 @@ libevdev_event_type_get_max(unsigned int type)
|
||||||
}
|
}
|
||||||
|
|
||||||
LIBEVDEV_EXPORT int
|
LIBEVDEV_EXPORT int
|
||||||
libevdev_get_repeat(struct libevdev *dev, int *delay, int *period)
|
libevdev_get_repeat(const struct libevdev *dev, int *delay, int *period)
|
||||||
{
|
{
|
||||||
if (!libevdev_has_event_type(dev, EV_REP))
|
if (!libevdev_has_event_type(dev, EV_REP))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
|
|
@ -1614,7 +1614,7 @@ int libevdev_event_code_from_name_n(unsigned int type, const char *name,
|
||||||
*
|
*
|
||||||
* @note This function is signal-safe
|
* @note This function is signal-safe
|
||||||
*/
|
*/
|
||||||
int libevdev_get_repeat(struct libevdev *dev, int *delay, int *period);
|
int libevdev_get_repeat(const struct libevdev *dev, int *delay, int *period);
|
||||||
|
|
||||||
|
|
||||||
/********* DEPRECATED SECTION *********/
|
/********* DEPRECATED SECTION *********/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue