aboutsummaryrefslogtreecommitdiffstats
path: root/utils/include
diff options
context:
space:
mode:
authornxf32288 <ganesh.deva_1@nxp.com>2018-05-07 10:10:31 +0530
committernxf24591 <nanjesh.s_1@nxp.com>2018-06-13 18:04:39 +0530
commit4ed49ded917939b0bafbf6822eaa9c344446e5c4 (patch)
tree952b6a26e2feba5e18677c1cb186bb6de929ece4 /utils/include
parentcbb1cd42b06891708bcf1badf96d9bcdd4de0b00 (diff)
downloadandroid_vendor_nxp_opensource_external_libnfc-nci-4ed49ded917939b0bafbf6822eaa9c344446e5c4.tar.gz
android_vendor_nxp_opensource_external_libnfc-nci-4ed49ded917939b0bafbf6822eaa9c344446e5c4.tar.bz2
android_vendor_nxp_opensource_external_libnfc-nci-4ed49ded917939b0bafbf6822eaa9c344446e5c4.zip
Use new NfcConfig parser (1/2)
Diffstat (limited to 'utils/include')
-rw-r--r--utils/include/config.h2
-rw-r--r--utils/include/nfc_config.h22
2 files changed, 24 insertions, 0 deletions
diff --git a/utils/include/config.h b/utils/include/config.h
index 443abca..90bbcc1 100644
--- a/utils/include/config.h
+++ b/utils/include/config.h
@@ -47,6 +47,8 @@ class ConfigFile {
unsigned getUnsigned(const std::string& key);
std::vector<uint8_t> getBytes(const std::string& key);
+ void clear();
+
private:
ConfigValue& getValue(const std::string& key);
diff --git a/utils/include/nfc_config.h b/utils/include/nfc_config.h
index 3476ab3..843d3c2 100644
--- a/utils/include/nfc_config.h
+++ b/utils/include/nfc_config.h
@@ -20,12 +20,34 @@
#include <config.h>
+#define NAME_NFC_DEBUG_ENABLED "NFC_DEBUG_ENABLED"
+#define NAME_POLLING_TECH_MASK "POLLING_TECH_MASK"
+#define NAME_NFA_DM_CFG "NFA_DM_CFG"
+#define NAME_SCREEN_OFF_POWER_STATE "SCREEN_OFF_POWER_STATE"
+#define NAME_NFA_STORAGE "NFA_STORAGE"
+#define NAME_UICC_LISTEN_TECH_MASK "UICC_LISTEN_TECH_MASK"
+#define NAME_NFA_DM_DISC_DURATION_POLL "NFA_DM_DISC_DURATION_POLL"
+#define NAME_AID_FOR_EMPTY_SELECT "AID_FOR_EMPTY_SELECT"
+#define NAME_PRESERVE_STORAGE "PRESERVE_STORAGE"
+#define NAME_NFA_MAX_EE_SUPPORTED "NFA_MAX_EE_SUPPORTED"
+#define NAME_POLL_FREQUENCY "POLL_FREQUENCY"
+#define NAME_PRESENCE_CHECK_ALGORITHM "PRESENCE_CHECK_ALGORITHM"
+#define NAME_DEVICE_HOST_WHITE_LIST "DEVICE_HOST_WHITE_LIST"
+#define NAME_NFA_POLL_BAIL_OUT_MODE "NFA_POLL_BAIL_OUT_MODE"
+#define NAME_NFA_PROPRIETARY_CFG "NFA_PROPRIETARY_CFG"
+#define NAME_NFA_AID_BLOCK_ROUTE "NFA_AID_BLOCK_ROUTE"
+#define NAME_ISO_DEP_MAX_TRANSCEIVE "ISO_DEP_MAX_TRANSCEIVE"
+
class NfcConfig {
public:
static bool hasKey(const std::string& key);
static std::string getString(const std::string& key);
+ static std::string getString(const std::string& key,
+ std::string default_value);
static unsigned getUnsigned(const std::string& key);
+ static unsigned getUnsigned(const std::string& key, unsigned default_value);
static std::vector<uint8_t> getBytes(const std::string& key);
+ static void clear();
private:
static NfcConfig& getInstance();