2020-09-17 15:56:41 +10:00
|
|
|
// SPDX-License-Identifier: MIT
|
2013-06-05 11:17:11 +10:00
|
|
|
/*
|
|
|
|
|
* Copyright © 2013 Red Hat, Inc.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-14 10:13:18 +10:00
|
|
|
#include "config.h"
|
2013-06-05 11:17:11 +10:00
|
|
|
#include <libevdev/libevdev.h>
|
|
|
|
|
|
|
|
|
|
#define DEFAULT_IDS NULL
|
|
|
|
|
|
|
|
|
|
struct uinput_device* uinput_device_new(const char *name);
|
|
|
|
|
int uinput_device_new_with_events(struct uinput_device **dev, const char *name, const struct input_id *ids, ...);
|
2013-06-29 18:10:01 +10:00
|
|
|
int uinput_device_new_with_events_v(struct uinput_device **dev, const char *name, const struct input_id *ids, va_list args);
|
2013-06-05 11:17:11 +10:00
|
|
|
void uinput_device_free(struct uinput_device *dev);
|
|
|
|
|
|
|
|
|
|
int uinput_device_create(struct uinput_device* dev);
|
|
|
|
|
int uinput_device_set_name(struct uinput_device* dev, const char *name);
|
|
|
|
|
int uinput_device_set_ids(struct uinput_device* dev, const struct input_id *ids);
|
|
|
|
|
int uinput_device_set_bit(struct uinput_device* dev, unsigned int bit);
|
2013-07-11 09:09:14 +10:00
|
|
|
int uinput_device_set_prop(struct uinput_device *dev, unsigned int prop);
|
2013-06-05 11:17:11 +10:00
|
|
|
int uinput_device_set_event_bit(struct uinput_device* dev, unsigned int type, unsigned int code);
|
|
|
|
|
int uinput_device_set_event_bits(struct uinput_device* dev, ...);
|
|
|
|
|
int uinput_device_set_event_bits_v(struct uinput_device* dev, va_list args);
|
2013-07-01 08:54:39 +10:00
|
|
|
int uinput_device_set_abs_bit(struct uinput_device* dev, unsigned int code, const struct input_absinfo *absinfo);
|
2013-06-05 11:17:11 +10:00
|
|
|
int uinput_device_event(const struct uinput_device* dev, unsigned int type, unsigned int code, int value);
|
|
|
|
|
int uinput_device_event_multiple(const struct uinput_device* dev, ...);
|
|
|
|
|
int uinput_device_event_multiple_v(const struct uinput_device* dev, va_list args);
|
|
|
|
|
int uinput_device_get_fd(const struct uinput_device *dev);
|
2013-09-12 14:03:55 +10:00
|
|
|
const char* uinput_device_get_devnode(const struct uinput_device *dev);
|
2013-07-29 13:50:41 +10:00
|
|
|
|
|
|
|
|
char *uinput_devnode_from_syspath(const char *syspath);
|