-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusbmuxdHost_internal.h
30 lines (25 loc) · 1.16 KB
/
usbmuxdHost_internal.h
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
/******************************************************************************
* usbmuxdHost_internal.h
*****************************************************************************/
#ifndef __MCE_USBMUXD_HOST_INTERNAL_H__
#define __MCE_USBMUXD_HOST_INTERNAL_H__
/******************************************************************************
* Defs & Types
*****************************************************************************/
/* Command line parsing */
#define CMD_ARGC (5)
#define CMD_ARG_PORT (1)
#define CMD_ARG_HUB_ADDRESS (2)
#define CMD_ARG_READY_EVENT (3)
#define CMD_ARG_SHUTDOWN_EVENT (4)
#define SHUTDOWN_EVENT_WAIT_INTERVAL (2500)
#define NO_DEVICES_SHUTDOWN_TIMEOUT (50000)
#define WAIT_EVENTS_COUNT (2)
#define WAIT_EVENT_SHUTDOWN (0)
#define WAIT_EVENT_KEEP_ALIVE (1)
/******************************************************************************
* Internal Functions Declarations
*****************************************************************************/
static int RunUsbmuxdHost(WORD wPort, DWORD dwHubAddress, LPCWSTR pszReadyEventName, LPCWSTR pszShutdownEventName);
static int InternalWinMain();
#endif /* __MCE_USBMUXD_HOST_INTERNAL_H__ */