diff options
Diffstat (limited to 'src/client.h')
| -rw-r--r-- | src/client.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h new file mode 100644 index 0000000..60d8348 --- /dev/null +++ b/src/client.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* | ||
| 2 | usbmuxd - iPhone/iPod Touch USB multiplex server daemon | ||
| 3 | |||
| 4 | Copyright (C) 2009 Hector Martin "marcan" <hector@marcansoft.com> | ||
| 5 | Copyright (C) 2009 Nikias Bassen <nikias@gmx.li> | ||
| 6 | |||
| 7 | This program is free software; you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 2 or version 3. | ||
| 10 | |||
| 11 | This program is distributed in the hope that it will be useful, | ||
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | GNU General Public License for more details. | ||
| 15 | |||
| 16 | You should have received a copy of the GNU General Public License | ||
| 17 | along with this program; if not, write to the Free Software | ||
| 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 19 | |||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef __CLIENT_H__ | ||
| 23 | #define __CLIENT_H__ | ||
| 24 | |||
| 25 | #include <stdint.h> | ||
| 26 | #include "usbmuxd-proto.h" | ||
| 27 | |||
| 28 | struct device_info; | ||
| 29 | struct mux_client; | ||
| 30 | |||
| 31 | int client_read(struct mux_client *client, void *buffer, uint32_t len); | ||
| 32 | int client_write(struct mux_client *client, void *buffer, uint32_t len); | ||
| 33 | int client_set_events(struct mux_client *client, short events); | ||
| 34 | void client_close(struct mux_client *client); | ||
| 35 | int client_notify_connect(struct mux_client *client, enum usbmuxd_result result); | ||
| 36 | |||
| 37 | void client_device_add(struct device_info *dev); | ||
| 38 | void client_device_remove(int device_id); | ||
| 39 | |||
| 40 | int client_accept(int fd); | ||
| 41 | void client_get_fds(struct fdlist *list); | ||
| 42 | void client_process(int fd, short events); | ||
| 43 | |||
| 44 | void client_init(void); | ||
| 45 | void client_shutdown(void); | ||
| 46 | |||
| 47 | #endif | ||
