mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Merge pull request #944 from SuisChan/update-protos
Add more connectivity.proto fields
This commit is contained in:
commit
a447bb5be9
2 changed files with 20 additions and 11 deletions
|
@ -125,10 +125,10 @@ impl SpClient {
|
||||||
let windows_data = platform_data.mut_windows();
|
let windows_data = platform_data.mut_windows();
|
||||||
windows_data.set_os_version(10);
|
windows_data.set_os_version(10);
|
||||||
windows_data.set_os_build(21370);
|
windows_data.set_os_build(21370);
|
||||||
windows_data.set_unknown_value_4(2);
|
windows_data.set_platform_id(2);
|
||||||
windows_data.set_unknown_value_6(9);
|
windows_data.set_unknown_value_6(9);
|
||||||
windows_data.set_unknown_value_7(332);
|
windows_data.set_image_file_machine(332);
|
||||||
windows_data.set_unknown_value_8(34404);
|
windows_data.set_pe_machine(34404);
|
||||||
windows_data.set_unknown_value_10(true);
|
windows_data.set_unknown_value_10(true);
|
||||||
|
|
||||||
let body = message.write_to_bytes()?;
|
let body = message.write_to_bytes()?;
|
||||||
|
|
|
@ -20,11 +20,14 @@ message PlatformSpecificData {
|
||||||
}
|
}
|
||||||
|
|
||||||
message NativeAndroidData {
|
message NativeAndroidData {
|
||||||
int32 major_sdk_version = 1;
|
Screen screen_dimensions = 1;
|
||||||
int32 minor_sdk_version = 2;
|
string android_version = 2;
|
||||||
int32 patch_sdk_version = 3;
|
int32 api_version = 3;
|
||||||
uint32 api_version = 4;
|
string device_name = 4;
|
||||||
Screen screen_dimensions = 5;
|
string model_str = 5;
|
||||||
|
string vendor = 6;
|
||||||
|
string vendor_2 = 7;
|
||||||
|
int32 unknown_value_8 = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NativeIOSData {
|
message NativeIOSData {
|
||||||
|
@ -38,10 +41,14 @@ message NativeIOSData {
|
||||||
message NativeWindowsData {
|
message NativeWindowsData {
|
||||||
int32 os_version = 1;
|
int32 os_version = 1;
|
||||||
int32 os_build = 3;
|
int32 os_build = 3;
|
||||||
int32 unknown_value_4 = 4;
|
// https://docs.microsoft.com/en-us/dotnet/api/system.platformid?view=net-6.0
|
||||||
|
int32 platform_id = 4;
|
||||||
|
int32 unknown_value_5 = 5;
|
||||||
int32 unknown_value_6 = 6;
|
int32 unknown_value_6 = 6;
|
||||||
int32 unknown_value_7 = 7;
|
// https://docs.microsoft.com/en-us/dotnet/api/system.reflection.imagefilemachine?view=net-6.0
|
||||||
int32 unknown_value_8 = 8;
|
int32 image_file_machine = 7;
|
||||||
|
// https://docs.microsoft.com/en-us/dotnet/api/system.reflection.portableexecutable.machine?view=net-6.0
|
||||||
|
int32 pe_machine = 8;
|
||||||
bool unknown_value_10 = 10;
|
bool unknown_value_10 = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,4 +56,6 @@ message Screen {
|
||||||
int32 width = 1;
|
int32 width = 1;
|
||||||
int32 height = 2;
|
int32 height = 2;
|
||||||
int32 density = 3;
|
int32 density = 3;
|
||||||
|
int32 unknown_value_4 = 4;
|
||||||
|
int32 unknown_value_5 = 5;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue