Source release 17.1.1
This commit is contained in:
28
platforms/example-runtime-client-info/read_client_info.cpp
Normal file
28
platforms/example-runtime-client-info/read_client_info.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright 2022 Google LLC. All Rights Reserved. This file and proprietary
|
||||
// source code may only be used and distributed under the Widevine License
|
||||
// Agreement.
|
||||
|
||||
#include "read_client_info.h"
|
||||
|
||||
namespace widevine {
|
||||
|
||||
bool ReadClientInformation(std::string* company_name, std::string* model_name,
|
||||
std::string* model_year, std::string* product_name,
|
||||
std::string* device_name, std::string* arch_name,
|
||||
std::string* platform, std::string* form_factor,
|
||||
std::string* version) {
|
||||
// A real implementation would read these fields from a file or system API,
|
||||
// but for this example implementation, hardcoded values are fine.
|
||||
*company_name = "KubrickTech";
|
||||
*model_name = "HAL 9000 with runtime client info";
|
||||
*model_year = "2001";
|
||||
*product_name = "clarke";
|
||||
*device_name = "HAL";
|
||||
*arch_name = "ARMv7";
|
||||
*platform = "Linux";
|
||||
*form_factor = "TV";
|
||||
*version = "1.0.0";
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace widevine
|
||||
Reference in New Issue
Block a user