1 /*
2  * Copyright 2024 NXP
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 #include <stdint.h>
18 
19 /******************************************************************************
20  * Function         phNxpNciHal_getVendorProp_int32
21  *
22  * Description      This function will read and return property
23  *                  value of input key as integer.
24  * Parameters       key - property string for which value to be read.
25  *                  default_value - default value to be return if property not
26  *                  set.
27  *
28  * Returns          integer value of key from vendor properties if set else
29  *                  return the input default_value.
30  *
31  ******************************************************************************/
32 int32_t phNxpNciHal_getVendorProp_int32(const char* key, int32_t default_value);
33 
34 /******************************************************************************
35  * Function         phNxpNciHal_setVendorProp
36  *
37  * Description      This function will set the value for input property.
38  *
39  * Parameters       key - property string for which value to be set.
40  *                  value - value of key property be set.
41  *
42  * Returns          returns 0 on success and, < 0 on failure
43  *
44  ******************************************************************************/
45 int phNxpNciHal_setVendorProp(const char* key, const char* value);
46