mirror of
https://github.com/team-infusion-developers/android_device_samsung_msm8976-common.git
synced 2024-11-07 06:19:20 +00:00
61a4c37735
msm8976-common: ril: add open-sourced libsecnativefeature, used by libsec-ril Change-Id: I2f487db23b31c63ba919863f393ca37cc9a81191 libsecnativefeature: fix build with clang Change-Id: Ibda3234af2b1184e094913e35cb919a75f972c87 Change-Id: Iaaa06fa527cedce6609a95b21d787c13dda6a30a
27 lines
725 B
C++
27 lines
725 B
C++
#ifndef SEC_NATIVE_FEATURE_CPPIF_H
|
|
#define SEC_NATIVE_FEATURE_CPPIF_H
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
class SecNativeFeature {
|
|
public:
|
|
bool getEnableStatus(const char* tag);
|
|
bool getEnableStatus(const char* tag, bool defaultValue);
|
|
const char* getString(const char* tag);
|
|
const char* getString(const char* tag, char* defaultValue);
|
|
int getInteger(const char* tag);
|
|
int getInteger(const char* tag, int defaultValue);
|
|
|
|
static SecNativeFeature* getInstance();
|
|
private:
|
|
static SecNativeFeature* _instance;
|
|
SecNativeFeature();
|
|
~SecNativeFeature();
|
|
int _loadFeature();
|
|
int _loadDefault();
|
|
std::map<std::string,std::string> _features;
|
|
};
|
|
|
|
#endif // SEC_NATIVE_FEATURE_CPPIF_H
|
|
|