forked from drath/libratbag
lur: Add a note that we're not doing OOM
Mostly inherited from our zalloc() implementation. But really, if you have no memory left, should you be trying to talk to receivers? Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Benjamin Tissoires
parent
b3237fd001
commit
c95d8e05ca
@@ -111,6 +111,9 @@ lur_is_receiver(uint16_t vid, uint16_t pid);
|
||||
*
|
||||
* @return 0 on success or a negative errno on error
|
||||
* @retval -EINVAL The fd does not point to a lur receiver
|
||||
*
|
||||
* @note liblur does not have OOM handling. If an allocation fails, liblur
|
||||
* will simply abort()
|
||||
*/
|
||||
int
|
||||
lur_receiver_new_from_hidraw(int fd, void *userdata, struct lur_receiver **lur);
|
||||
|
||||
Reference in New Issue
Block a user