summaryrefslogtreecommitdiff
path: root/src/core.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>