summaryrefslogtreecommitdiffstats
path: root/discover/native-parser.c
Commit message (Collapse)AuthorAgeFilesLines
* discover: Reimplement native-parser as a Bison parserSamuel Mendoza-Jonas2018-11-161-131/+0
| | | | | | | | | | | | | | | | | | | Occasionally you look at some code and realise that a) this never gets built, and b) even if it did it would never compile. Today's example is native-parser.c which we must have just assumed worked for quite a while. The native parser has bitrotted entirely and needs to be brought up to date. While we're here, lets take the chance to implement a proper grammar for it. This helps us reason more effectively about the parser, lets us extend it easily in the future, and.. I wanted to write a Bison parser too. This implements most of the old functionality, but drops off some smaller details like settings icons which needs some separate attention to bring up to date. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
* Use static array for parsersGeoff Levand2012-03-161-1/+1
| | | | | | | | | Change the parser structure array implementation from using an array in a seperate parsers section to a static array of pointers in parser.c. Parser priority is now set by the position in the new parsers array. Signed-off-by: Geoff Levand <geoff@infradead.org>
* Use define_parser() for nativeGeoff Levand2012-03-161-12/+19
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Initial support for multiple UIsJeremy Kerr2008-12-151-0/+124
Move the device discovery code from separate udev helpers to a single process to listen on two sockets: one SOCK_DGRAM for incoming udev events, and one SOCK_STREAM for UIs to connect. Initial support for client/server infrastructure, still need to wire-up the udev messages. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
OpenPOWER on IntegriCloud