1 #ifndef _DISCOVER_CLIENT_H
2 #define _DISCOVER_CLIENT_H
4 #include <pb-protocol/pb-protocol.h>
5 #include "ui/common/device.h"
7 struct discover_client;
9 struct discover_client_ops {
10 int (*add_device)(struct device *);
11 void (*remove_device)(char *);
14 struct discover_client *discover_client_init(struct discover_client_ops *ops);
16 int discover_client_get_fd(struct discover_client *client);
18 void discover_client_destroy(struct discover_client *client);
21 * Process data from the server.
23 * Will read from the client socket, and call add_device on any discovered
27 int discover_client_process(struct discover_client *client);