- 23 Sep, 2022 1 commit
-
-
Adrián Pérez de Castro authored
Use library() instead of shared_library() to allow specifying which kind of library to build with "meson setup --default-library ..." This allows more easily incorporating libmanette in an application e.g. as a Meson subproject which gets built into a program as a static library.
-
- 27 Jul, 2022 1 commit
-
-
Bartłomiej Piotrowski authored
The gnome-runtime-images have been recently migrated to Quay. This is already reflected in the template. Please note this MR has been created semi-automatically. If it doesn't make sense, feel free to close it.
-
- 27 Feb, 2021 1 commit
-
-
This ensures we read only readable device files starting with event and hence handled by evdev, and not other protocols. This avoids writing garbage to devices that use another protocol, which could lead to messed up input devices.
-
- 28 Nov, 2020 1 commit
-
-
Adrien Plazas authored
-
- 27 Nov, 2020 2 commits
-
-
This uses has_key() and has_abs() instead of libevdev_has_event_code() directly in *_new(), making it simpler to read.
-
This uses the file change event type to check for file deletion, rather than using g_file_query_exists(). This prevents some race conditions, as explained by the documentation of g_file_query_exists().
-
- 26 Nov, 2020 2 commits
-
-
As g_udev_device_get_property will already return NULL if there's no such property for the device, and as such it won't match the g_strcmp0.
-
This shorten all this part a lot, and lets the thoroughly tested printf do the job.
-
- 23 Nov, 2020 8 commits
-
-
Adrien Plazas authored
Fixes #23
-
This way it makes sense straight away that you're getting the sdl_string for the guid.
-
NXIO has a specific use case, that is, no such device or address, and isn't meant for general-purpose use. Since there isn't any G_FILE_ERROR_NOT_A_GAME_CONTROLLER, use G_FILE_ERROR_FAILED which is made to be used when no unix error code exists for it.
-
Those were used when the mapping string is wrong (i.e. user mapping string), so it's not a programmer error (as that's what g_critical() is made for).
-
It doesn't make sense to pass G_FILE_ERROR_FAILED, as this one is only meant for when there isn't any existing error code for this file error, but here it isn't the case since we have the errno set on error.
-
It wasn't used anywhere in the code.
-
So you don't need to look at the code to understand.
-
It would have made sense if there was extra things done on @self but here it doesn't make much sense. So shorten it to help scanning the code and quickly understanding it.
-
- 22 Nov, 2020 21 commits
-
-
Adrien Plazas authored
These aren't programming errors from our side nor from the library user's side, but from some bad data.
-
As g_return_if_fail is only for public API checking. If there need to be some arguments checking in static functions, it is a programmer error and so must assert. This commit also removes type checking for self (i.e. the type defined in this file), since those check should already be put for public API functions.
-
Adrien Plazas authored
-
Adrien Plazas authored
-
-
-
Adrien Plazas authored
This tests on Fedora to allow testing with it works with gudev.
-
I accidentally didn't test with udev when refactoring a MR and messed up that function.
-
Add the namespace_object_ prefix to the finalize function to match the code style.
-
Add the namespace_object_ prefix to the finalize function to match the code style.
-
Adrien Plazas authored
This makes our database more consistent, and will help us when we will normalize the database, as normalized mappings don't have the platform key.
-
Adrien Plazas authored
This prepares the normalization of the file.
-
-
That is, of the form <object_type_name>_<signal_name>_<cb>.
-
That is, of the form <object_type_name>_<signal_name>_<cb>.
-
Adrien Plazas authored
That's what we do almost everywhere else and in other libs I maintain, let's standardize on that.
-
Adrien Plazas authored
-
Adrien Plazas authored
This makes the functions trying to free some data simpler and hopefully more optimized.
-
Adrien Plazas authored
-
Adrien Plazas authored
This simplifies the code and make it cleaner.
-
Adrien Plazas authored
A mapping string is always expected to start with a 32 hex-digits field and a text field, otherwise it's invalid, so let's check that.
-
- 21 Nov, 2020 3 commits
-
-
Adrien Plazas authored
Thanks to changes introduced by the previous commit, the mapping object can always expect to be fed a complete mapping string, with he first field being the GUID and the second one being the gamepad's name. These two first fields must hence be skipped.
-
Adrien Plazas authored
This will allow the mapping object to always expect a full mapping string, with the GUID and the gamepad name.
-
It speeds up a lot the initial flatpak build. This commit also disables the tests and documentation of evdev to speed up more the build.
-