
See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9a6df4b1ab0e467f23ccdcbb82700cfb3eaf44a3
29 lines
820 B
C
29 lines
820 B
C
/*
|
|
* Copyright (c) 2019 Luís Ferreira <luis@aurorafoss.org>
|
|
* Copyright (c) 2019 Daniel Stuart <daniel.stuart@pucpr.edu.br>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 3 as published by
|
|
* the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
#include <glib.h>
|
|
#include <gudev/gudev.h>
|
|
|
|
#include "accel-scale.h"
|
|
|
|
typedef enum {
|
|
ACCEL_LOCATION_DISPLAY,
|
|
ACCEL_LOCATION_BASE,
|
|
} AccelLocation;
|
|
|
|
AccelLocation setup_accel_location (GUdevDevice *device);
|
|
|
|
gboolean parse_accel_location (const char *location,
|
|
AccelLocation *value);
|
|
gboolean parse_accel_label (const char *location,
|
|
AccelLocation *value);
|
|
|
|
gboolean get_accel_scale (GUdevDevice *device, AccelScale *scale_vec);
|