1 /* 2 * Copyright (C) 2013 SAMSUNG S.LSI 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at: 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 * 17 */ 18 #ifndef __NFC_SEC_HALUTIL__ 19 #define __NFC_SEC_HALUTIL__ 20 21 #include "osi.h" 22 23 #ifndef __bool_true_false_are_defined 24 #define __bool_true_false_are_defined 25 typedef enum { false, true } bool; 26 #endif 27 28 #define HAL_UTIL_GET_INT_16 0x0001 29 30 bool get_config_int(const char* field, int* data); 31 int get_config_string(const char* field, char* strBuffer, size_t bufferSize); 32 int get_config_count(const char* field); 33 int get_hw_rev(); 34 35 #ifdef NFC_HAL_NCI_TRACE 36 #define util_nci_analyzer(x) sec_nci_analyzer(x) 37 #else 38 #define util_nci_analyzer(x) 39 #endif 40 41 #endif //__NFC_SEC_HALUTIL__ 42