RDK Documentation (Open Sourced RDK Components)
webpa_parameter.h File Reference
#include <wdmp-c.h>
#include "webpa_adapter.h"
Include dependency graph for webpa_parameter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WEBPA_DATA_MODEL_FILE   "/etc/data-model.xml"
 
#define MAX_NUM_PARAMETERS   2048
 
#define MAX_DATATYPE_LENGTH   48
 
#define MAX_PARAM_LENGTH   TR69HOSTIFMGR_MAX_PARAM_LEN
 
#define MAX_PARAMETER_LENGTH   512
 
#define MAX_PARAMETERVALUE_LEN   128
 

Functions

void getValues (const char *paramName[], const unsigned int paramCount, param_t ***paramValArr, size_t **retValCount, WDMP_STATUS **retStatus)
 getValues interface returns the parameter values. More...
 
void setValues (const ParamVal paramVal[], const unsigned int paramCount, const WEBPA_SET_TYPE setType, money_trace_spans *timeSpan, WDMP_STATUS **retStatus, char *transaction_id)
 setValues interface sets the parameter value. More...
 

yes

@description This file describes the Webpa Abstraction Layer

Definition in file webpa_parameter.h.

Function Documentation

◆ getValues()

void getValues ( const char *  paramName[],
const unsigned int  paramCount,
param_t ***  paramValArr,
size_t **  retValCount,
WDMP_STATUS **  retStatus 
)

getValues interface returns the parameter values.

getValues supports an option to pass wildward parameters. This can be achieved by passing an object name followed by '.' instead of parameter name.

Parameters
[in]paramNameList of Parameters.
[in]paramCountNumber of parameters.
[out]timeSpantiming_values for each component.
[out]paramValArrTwo dimentional array of parameter name/value pairs.
[out]retValCountList of "number of parameters" for each input paramName. Usually retValCount will be 1 except for wildcards request where it represents the number of param/value pairs retrieved for the particular wildcard parameter.
[out]retStatusList of Return status.

getValues supports an option to pass wildward parameters. This can be achieved by passing an object name followed by '.' instead of parameter name.

Parameters
[in]paramNameList of Parameters.
[in]paramCountNumber of parameters.
[out]paramValArrTwo dimentional array of parameter name/value pairs.
[out]retValCountList of "number of parameters" for each input paramName. Usually retValCount will be 1 except for wildcards request where it represents the number of param/value pairs retrieved for the particular wildcard parameter.
[out]retStatusList of Return status.

Definition at line 68 of file webpa_parameter.cpp.

◆ setValues()

void setValues ( const ParamVal  paramVal[],
const unsigned int  paramCount,
const WEBPA_SET_TYPE  setType,
money_trace_spans *  timeSpan,
WDMP_STATUS **  retStatus,
char *  transaction_id 
)

setValues interface sets the parameter value.

Parameters
[in]paramValList of Parameter name/value pairs.
[in]paramCountNumber of parameters.
[in]setTypeFlag to specify the type of set operation.
[out]timeSpantiming_values for each component.
[out]retStatusList of Return status.
[in]paramValList of Parameter name/value pairs.
[in]paramCountNumber of parameters.
[out]retStatusList of Return status.

Definition at line 95 of file webpa_parameter.cpp.