ROGueENEMY/dev_hidraw.h
2023-12-08 22:27:32 +01:00

20 lines
No EOL
381 B
C

#pragma once
#include "input_dev.h"
typedef struct dev_hidraw {
struct hidraw_devinfo info;
struct hidraw_report_descriptor rdesc;
int fd;
} dev_hidraw_t;
int dev_hidraw_open(
const hidraw_filters_t *const in_filters,
dev_hidraw_t **const out_dev
);
void dev_hidraw_close(dev_hidraw_t *const inout_dev);
int dev_hidraw_get_fd(const dev_hidraw_t* in_dev);