13 lines
208 B
C
13 lines
208 B
C
|
|
#include <socks/device.h>
|
||
|
|
|
||
|
|
struct input_device *input_device_create(void)
|
||
|
|
{
|
||
|
|
struct device *dev = device_alloc();
|
||
|
|
if (!dev) {
|
||
|
|
return NULL;
|
||
|
|
}
|
||
|
|
|
||
|
|
dev->dev_type = DEV_TYPE_INPUT;
|
||
|
|
return INPUT_DEVICE(dev);
|
||
|
|
}
|