blob: fcbee528c9eb18d16b815ec888d1b0c946cca36a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#ifndef __USBMUXD_H
#define __USBMUXD_H
#include <stdint.h>
struct usbmux_header {
uint32_t length; // length of message, including header
uint32_t reserved; // always zero
uint32_t type; // message type
uint32_t tag; // responses to this query will echo back this tag
};
struct usbmux_result {
struct usbmux_header header;
uint32_t result;
};
struct usbmux_connect_request {
struct usbmux_header header;
uint32_t device_id;
uint16_t port; // TCP port number
uint16_t reserved; // set to zero
};
struct usbmux_dev_info {
uint32_t device_id;
uint16_t product_id;
char serial_number[40];
};
struct usbmux_dev_info_request {
struct usbmux_header header;
struct usbmux_dev_info dev_info;
unsigned char padding[222];
};
enum {
usbmux_result = 1,
usbmux_connect = 2,
usbmux_hello = 3,
usbmux_device_info = 4,
};
#endif
|