Files
ce_cdm/platforms/example-runtime-client-info/read_client_info.cpp
John "Juce" Bruce f11df1e144 Source release 17.1.1
2022-11-29 12:54:04 -08:00

29 lines
1.0 KiB
C++

// 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