forked from drath/libratbag
Whenever we do something that may fail, return an enum of possible errors. This also changes the API for ratbag_device_new_from_udev_device() to return an error code now too instead of just NULL on failure. Error numbers start at -1000 to avoid overlap with errnos, error_code() should be used internally to avoid returning an errno. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>