2022-04-01 13:55:56 +00:00
|
|
|
/*
|
|
|
|
|
* 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 {
|
2022-04-01 19:23:33 +00:00
|
|
|
std::string hwc_value;
|
2022-04-01 19:23:33 +00:00
|
|
|
std::string model_value;
|
2022-04-01 13:55:56 +00:00
|
|
|
|
|
|
|
|
std::string brand;
|
|
|
|
|
std::string device;
|
|
|
|
|
std::string marketname;
|
|
|
|
|
std::string model;
|
2022-04-01 19:23:33 +00:00
|
|
|
std::string name;
|
2022-04-01 13:55:56 +00:00
|
|
|
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
|