summaryrefslogtreecommitdiffstats
path: root/ui/common/discover-client.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert const device in discover_client_opsGeoff Levand2009-06-301-2/+2
| | | | | | | | | | | | | | Make the device structure passed to the discover_client_ops callbacks writable. Commit 2b42cdd35ccd83c52e9df257efdfcda040d170d9 (Make client ops constant) changed the discover_client_ops callback routine arguments to be pointers to const device structures. Typically, the callback routines will initialize and destroy the device.ui_info and boot_option.info variables, so the device instance must be writable by the callback routines. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Rename client add remove opsGeoff Levand2009-03-301-5/+5
| | | | | | | | For consistency, rename the symbols add_device and remove_device to device_add and device_remove. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Pass cb_arg to discover_client_initGeoff Levand2009-02-211-1/+1
| | | | | | | | Pass the client cb_arg to discover_client_init() and have it initialize the structure member. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* [discover client] Add device accessorsJeremy Kerr2009-02-011-0/+17
| | | | | | Allow the UIs to query the current device set. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* [discover client] Make devices persistentJeremy Kerr2009-02-011-1/+1
| | | | | | | Change discover client to keep devices around after they've been added, and freed after removal. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Make client ops constantGeoff Levand2009-02-011-4/+5
| | | | | | | Make the discover_client_ops args read-only. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add client ops instance argGeoff Levand2009-02-011-2/+10
| | | | | | | | | Add a user supplied agument to the struct discover_client_ops callback routines that is suitable for managing client instance data. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Remove reference to device.hJeremy Kerr2008-12-311-1/+0
| | | | | | It isn't needed anymore. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Initial support for multiple UIsJeremy Kerr2008-12-151-0/+29
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