1 #ifndef _DISCOVER_CLIENT_H
2 #define _DISCOVER_CLIENT_H
4 #include <pb-protocol/pb-protocol.h>
6 struct discover_client;
8 struct discover_client_ops {
9 int (*add_device)(struct device *);
10 void (*remove_device)(char *);
13 struct discover_client *discover_client_init(struct discover_client_ops *ops);
15 int discover_client_get_fd(struct discover_client *client);
17 void discover_client_destroy(struct discover_client *client);
20 * Process data from the server.
22 * Will read from the client socket, and call add_device on any discovered
26 int discover_client_process(struct discover_client *client);