mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
647 B
C
31 lines
647 B
C
#ifndef SC_ADB_PARSER_H
|
|
#define SC_ADB_PARSER_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "adb_device.h"
|
|
|
|
/**
|
|
* Parse the available devices from the output of `adb devices`
|
|
*
|
|
* The parameter must be a NUL-terminated string.
|
|
*
|
|
* Warning: this function modifies the buffer for optimization purposes.
|
|
*/
|
|
bool
|
|
sc_adb_parse_devices(char *str, struct sc_vec_adb_devices *out_vec);
|
|
|
|
/**
|
|
* Parse the ip from the output of `adb shell ip route`
|
|
*
|
|
* The parameter must be a NUL-terminated string.
|
|
*
|
|
* Warning: this function modifies the buffer for optimization purposes.
|
|
*/
|
|
char *
|
|
sc_adb_parse_device_ip_from_output(char *str);
|
|
|
|
#endif
|