Commit Graph

100 Commits

Author SHA1 Message Date
illiliti
f6afe3602b eliminate race conditions 2020-08-17 16:57:50 +03:00
illiliti
bcd28de858 fix potential UB while reading sysattr 2020-08-16 14:00:03 +03:00
illiliti
408249b34b simplify key=val parsing 2020-08-16 12:53:13 +03:00
illiliti
0105b25e70 add examples 2020-08-15 15:49:36 +03:00
illiliti
752f500a90 grab properties from uevent 2020-08-15 12:20:24 +03:00
illiliti
ca2fb1d5fa update readme 2020-08-15 11:36:12 +03:00
illiliti
f1388e805d create UDEV_MONITOR_DIR 2020-08-15 10:53:14 +03:00
illiliti
f8c3526a63 move pthread_create to udev_device_enable_receiving 2020-08-15 07:56:36 +03:00
illiliti
508424a3a2 fix sysname 2020-08-15 07:39:02 +03:00
illiliti
3029436ea6 oops 2020-08-14 19:44:05 +03:00
illiliti
380e7f8890 implement hotplugging support 2020-08-14 19:33:18 +03:00
illiliti
56bcf25461 minor fixes, add joystick support 2020-08-12 23:31:37 +03:00
illiliti
dc75e2b44e correctly find ID_INPUT_KEY 2020-08-10 00:48:02 +03:00
illiliti
ca956fa663 add support for tablets, pointing sticks and accelerometers 2020-08-09 07:05:09 +03:00
illiliti
9c681d6cad update readme 2020-08-07 21:00:37 +03:00
illiliti
011d3db9e1 check if switch has EV_KEY capability 2020-08-07 05:42:20 +03:00
illiliti
4bbd8ddf3e update readme 2020-08-05 04:01:49 +03:00
illiliti
f60cb919d4 update readme 2020-08-05 01:10:34 +03:00
illiliti
a445c3ce47 update readme 2020-08-05 00:53:23 +03:00
illiliti
25977fddb5 cleanup 2020-08-04 21:32:06 +03:00
illiliti
e1e78b525e update readme 2020-08-04 18:02:06 +03:00
illiliti
c0d6c58393 switch to for loop 2020-08-04 16:11:17 +03:00
illiliti
7754aa691c prevent array index out of bounds 2020-08-03 18:37:40 +03:00
illiliti
8fa88d6697 remove useless NULL checks 2020-08-03 00:05:12 +03:00
illiliti
3700b9c642 check NULL 2020-08-02 15:50:17 +03:00
illiliti
a41459e81c fix broken input 2020-08-01 18:31:29 +03:00
illiliti
8547b55072 use buffered io 2020-08-01 04:20:27 +03:00
illiliti
c73a89dafc update readme 2020-08-01 03:47:37 +03:00
illiliti
fca883ed54 get rid of ioctl
before - 2.964 total
after  - 0.932 total

still slow ???
2020-08-01 03:23:56 +03:00
illiliti
c60bcdf666 rename len to cnt 2020-08-01 03:21:01 +03:00
illiliti
8a57e66afe pass O_NONBLOCK to open 2020-07-31 22:12:29 +03:00
illiliti
8c30f20b7e change logic 2020-07-31 21:30:38 +03:00
illiliti
314f1b005a change style 2020-07-31 01:19:27 +03:00
illiliti
e751c69241 do not try to search parent device very deeply 2020-07-31 01:13:41 +03:00
illiliti
bfd09f153e simplify logic 2020-07-31 00:28:09 +03:00
illiliti
37fe740623 check NULL before open devnode 2020-07-31 00:12:50 +03:00
illiliti
a0528c5585 check NULL 2020-07-31 00:08:37 +03:00
illiliti
760346ed08 continue, no return 2020-07-30 23:37:51 +03:00
illiliti
a73c1f89b1 update readme 2020-07-30 14:51:08 +03:00
illiliti
9b7641d9ec do not handle unique values when no need 2020-07-29 12:27:40 +03:00
illiliti
edaf268cac const char where possible 2020-07-29 12:09:11 +03:00
illiliti
eea8f66e76 further simplify 2020-07-29 11:56:29 +03:00
illiliti
f96a573155 simplify error handling 2020-07-28 21:38:57 +03:00
illiliti
1e7ec603bc do udev_device_unref before lock 2020-07-28 20:51:01 +03:00
illiliti
89f33b8d9c update readme 2020-07-28 20:13:36 +03:00
illiliti
16a99644ad update readme 2020-07-28 20:13:09 +03:00
illiliti
60fd0bb19b update readme 2020-07-28 20:12:14 +03:00
illiliti
052dfec0d2 update readme 2020-07-28 20:05:59 +03:00
illiliti
2231740380 use static allocation 2020-07-28 19:45:36 +03:00
illiliti
e988d6f67c implement pthreads
before - 3.870 total
after  - 2.964 total

not really big difference, huh ?
2020-07-28 13:05:51 +03:00