mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Ticket refs #963: TR-181: Device.RootDataModelVersion parameter
This commit is contained in:
parent
b8d5e9fde5
commit
9574e5dc0b
4 changed files with 17 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
7
dmtree/tr181/datamodelversion.c
Normal file
7
dmtree/tr181/datamodelversion.c
Normal 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;
|
||||
}
|
||||
6
dmtree/tr181/datamodelversion.h
Normal file
6
dmtree/tr181/datamodelversion.h
Normal 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
|
||||
|
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue