RDK Documentation (Open Sourced RDK Components)
webpa_attribute.h
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 /**
20  * @file webpa_attribute.h
21  *
22  * @description This file describes the Webpa Abstraction Layer
23  *
24  */
25 #include "webpa_adapter.h"
26 
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31 #include <wdmp-c.h>
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 /**
37  *
38  *
39  * @param[in] paramName List of Parameters.
40  * @param[in] paramCount Number of parameters.
41  * @param[out] attr Two dimentional array of attribute name/value pairs.
42  * @param[out] retAttrCount List of "number of attributes" for each input paramName.
43  * @param[out] retStatus List of Return status.
44  */
45 void getAttributes(const char *paramName[], const unsigned int paramCount, money_trace_spans *timeSpan, AttrVal ***attr, int *retAttrCount, WAL_STATUS *retStatus);
46 
47 /**
48  * @brief setAttributes interface sets the attribute values.
49  *
50  * @param[in] paramName List of Parameters.
51  * @param[in] paramCount Number of parameters.
52  * @param[in] attr List of attribute name/value pairs.
53  * @param[out] retStatus List of Return status.
54  */
55 void setAttributes(ParamVal params[], const unsigned int paramCount, money_trace_spans *timeSpan, const AttrVal *attr[], WDMP_STATUS **retStatus);
setAttributes
void setAttributes(ParamVal params[], const unsigned int paramCount, money_trace_spans *timeSpan, const AttrVal *attr[], WDMP_STATUS **retStatus)
setAttributes interface sets the attribute values.
Definition: webpa_attribute.cpp:79
webpa_adapter.h
WAL_STATUS
WAL_STATUS
WebPA Error codes.
Definition: webpa_adapter.h:60
getAttributes
void getAttributes(const char *paramName[], const unsigned int paramCount, money_trace_spans *timeSpan, AttrVal ***attr, int *retAttrCount, WAL_STATUS *retStatus)
Definition: webpa_attribute.cpp:61
ParamVal
Structure to store Parameter info or Attribute info.
Definition: webpa_adapter.h:159