Ticket refs #963: TR-181: Device.RootDataModelVersion parameter

This commit is contained in:
Omar Kallel 2019-09-06 10:11:50 +01:00
parent b8d5e9fde5
commit 9574e5dc0b
4 changed files with 17 additions and 1 deletions

View file

@ -54,7 +54,8 @@ libbbfdm_la_SOURCES += \
../dmtree/tr181/dsl.c \
../dmtree/tr181/interfacestack.c \
../dmtree/tr181/qos.c \
../dmtree/tr181/usb.c
../dmtree/tr181/usb.c \
../dmtree/tr181/datamodelversion.c
endif
if BBF_TR104

View file

@ -0,0 +1,7 @@
#include "datamodelversion.h"
int get_Device_RootDataModelVersion(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
{
*value= "2.12";
return 0;
}

View file

@ -0,0 +1,6 @@
#ifndef __DATAMODELVERSION_H
#define __DATAMODELVERSION_H
#include "dmcwmp.h"
#include "dmcommon.h"
int get_Device_RootDataModelVersion(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value);
#endif

View file

@ -49,6 +49,7 @@
#include "interfacestack.h"
#include "qos.h"
#include "usb.h"
#include "datamodelversion.h"
#ifdef BBF_TR104
#include "voice_services.h"
#endif
@ -63,6 +64,7 @@ DMOBJ tEntry181Obj[] = {
DMLEAF tRoot_181_Params[] = {
/* PARAM, permission, type, getvalue, setvalue, forced_inform, notification, bbfdm_type*/
{"InterfaceStackNumberOfEntries", &DMREAD, DMT_UNINT, get_Device_InterfaceStackNumberOfEntries, NULL, NULL, NULL, BBFDM_BOTH},
{"RootDataModelVersion", &DMREAD, DMT_UNINT, get_Device_RootDataModelVersion, NULL, NULL, NULL, BBFDM_BOTH},
{0}
};