summaryrefslogtreecommitdiff
path: root/src/core.c
Commit message (Collapse)AuthorAgeFilesLines
* mtdev_close should ignore NULL devices.Peter Hutterer2011-04-191-5/+7
| | | | | | | Saves us one goto label in mtdev_init. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce a stable ABIHenrik Rydberg2010-12-221-46/+80
| | | | | | | | | | | | The current mtdev is not ABI stable, and the upcoming additions to the kernel api will break ABI. This patch starts the process of keeping binary compatibility with old programs, by moving the abi-specific parts under a special flag, MTDEV_NO_LEGACY_API, and makes sure the internal parts compiles with MTDEV_NO_LEGACY_API set. This way, older programs will still work, old programs will still compile, and new programs will be able to use the additions. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Correct logic for kernel MT slots devicesHenrik Rydberg2010-08-181-3/+3
| | | | | | | This patch fixes the broken logic to detect the kernel MT slots protocol, such that MT slots devices may pass through mtdev properly. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Update defuzz() creditsHenrik Rydberg2010-06-221-1/+1
| | | | | | | Correct the credits for the defuzz() function. Used under the MIT license with permission from Vojtech Pavlik. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Apply new package title to all filesHenrik Rydberg2010-06-221-1/+1
| | | | | | | This patch changes the package description title in all relevant files, and touches up the README. All systems go. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* janitor: fix compiler warningsHenrik Rydberg2010-06-221-0/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* match: conform to mtdev namespaceHenrik Rydberg2010-06-221-1/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Unused slot is denoted by MT_TRACKING_ID == -1Henrik Rydberg2010-06-221-7/+10
| | | | | | | | | | | The current MT slot protocol allows any tracking id outside the range specified by the device to denote an unused slot. This is difficult to handle in userspace, since the valid range is unknown. This patch tightens the definition of a valid tracking id to always lie in the range [0, MT_ID_MAX], and uses the value -1 to denote an unused slot. Acked-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Restructure mtdev apiHenrik Rydberg2010-06-191-11/+1
| | | | | | | | | | | | | Split the api into plumbing and porcelain layers and move the plumbing part to its own optional header file. The main usecase is to fetch events from the device, route them through the converter and extract the processed events. To simplify the API, replace the intermediate mtdev_pull() function by the higher-level mtdev_get(). This function does all the required steps, and has the same semantics as read(). Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Initial load of mtdev projectHenrik Rydberg2010-06-171-0/+393
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>