mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-05-01 19:47:17 +09:00
* This libinit has been made to commonize device variants props handling [dereference23: Adapt for Xiaomi SM6250] Signed-off-by: Alexander Winkowski <dereference23@outlook.com> Change-Id: Iab68ff451ab1d6e861fb4cda4ef07fad3123ecde
30 lines
565 B
C++
30 lines
565 B
C++
/*
|
|
* Copyright (C) 2021 The LineageOS Project
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef LIBINIT_VARIANT_H
|
|
#define LIBINIT_VARIANT_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
typedef struct variant_info {
|
|
std::string hwc_value;
|
|
|
|
std::string brand;
|
|
std::string device;
|
|
std::string model;
|
|
std::string build_description;
|
|
std::string build_fingerprint;
|
|
|
|
bool nfc;
|
|
} variant_info_t;
|
|
|
|
void search_variant(const std::vector<variant_info_t> variants);
|
|
|
|
void set_variant_props(const variant_info_t variant);
|
|
|
|
#endif // LIBINIT_VARIANT_H
|