mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 14:49:29 +00:00
added socket to cli options
This commit is contained in:
parent
d0f060712f
commit
97be3a4fcf
2 changed files with 4 additions and 1 deletions
|
@ -710,13 +710,15 @@ parse_intent_broadcast(const char *s, uint32_t *intents) {
|
||||||
|
|
||||||
if (STREQ("start", s, limit)) {
|
if (STREQ("start", s, limit)) {
|
||||||
*intents |= SC_INTENT_BROADCAST_START;
|
*intents |= SC_INTENT_BROADCAST_START;
|
||||||
|
} else if (STREQ("socket", s, limit)) {
|
||||||
|
*intents |= SC_INTENT_BROADCAST_SOCKET;
|
||||||
} else if (STREQ("stop", s, limit)) {
|
} else if (STREQ("stop", s, limit)) {
|
||||||
*intents |= SC_INTENT_BROADCAST_STOP;
|
*intents |= SC_INTENT_BROADCAST_STOP;
|
||||||
} else if (STREQ("cleaned", s, limit)) {
|
} else if (STREQ("cleaned", s, limit)) {
|
||||||
*intents |= SC_INTENT_BROADCAST_CLEANED;
|
*intents |= SC_INTENT_BROADCAST_CLEANED;
|
||||||
} else {
|
} else {
|
||||||
LOGE("Unknown broadcast intent: %.*s "
|
LOGE("Unknown broadcast intent: %.*s "
|
||||||
"(must be one of: start, stop, cleaned)",
|
"(must be one of: start, socket, stop, cleaned)",
|
||||||
(int) limit, s);
|
(int) limit, s);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@ struct sc_port_range {
|
||||||
|
|
||||||
enum sc_intent_broadcast {
|
enum sc_intent_broadcast {
|
||||||
SC_INTENT_BROADCAST_START = 1 << 0,
|
SC_INTENT_BROADCAST_START = 1 << 0,
|
||||||
|
SC_INTENT_BROADCAST_SOCKET = 1 << 1,
|
||||||
SC_INTENT_BROADCAST_STOP = 1 << 30,
|
SC_INTENT_BROADCAST_STOP = 1 << 30,
|
||||||
SC_INTENT_BROADCAST_CLEANED = 1 << 31,
|
SC_INTENT_BROADCAST_CLEANED = 1 << 31,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue