mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-14 21:20:28 +01:00
DeviceInfo: Added CID, PEN, ModelNumber
(cherry picked from commit b6eb7cc321)
This commit is contained in:
parent
46a7b776e7
commit
0842dabc9a
1 changed files with 21 additions and 0 deletions
|
|
@ -707,6 +707,24 @@ static int get_DeviceInfo_FirmwareImageNumberOfEntries(char *refparam, struct dm
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int get_deviceinfo_cid (char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
db_get_value_string("device", "deviceinfo", "CID", value);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int get_deviceinfo_pen (char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
db_get_value_string("device", "deviceinfo", "PEN", value);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int get_deviceinfo_modelnumber (char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
db_get_value_string("device", "deviceinfo", "ModelNumber", value);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int get_vcf_name(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
dmuci_get_value_by_section_string((struct uci_section *)data, "name", value);
|
||||
|
|
@ -1456,6 +1474,9 @@ DMLEAF tDeviceInfoParams[] = {
|
|||
{"VendorConfigFileNumberOfEntries", &DMREAD, DMT_UNINT, get_DeviceInfo_VendorConfigFileNumberOfEntries, NULL, BBFDM_BOTH, "2.0"},
|
||||
{"SupportedDataModelNumberOfEntries", &DMREAD, DMT_UNINT, get_DeviceInfo_SupportedDataModelNumberOfEntries, NULL, BBFDM_CWMP, "2.0"},
|
||||
{"FirmwareImageNumberOfEntries", &DMREAD, DMT_UNINT, get_DeviceInfo_FirmwareImageNumberOfEntries, NULL, BBFDM_BOTH, "2.12"},
|
||||
{"CID", &DMREAD, DMT_STRING, get_deviceinfo_cid, NULL, BBFDM_USP, "2.12"},
|
||||
{"PEN", &DMREAD, DMT_STRING, get_deviceinfo_pen, NULL, BBFDM_USP, "2.12"},
|
||||
{"ModelNumber", &DMREAD, DMT_STRING, get_deviceinfo_modelnumber, NULL, BBFDM_BOTH, "2.12"},
|
||||
{0}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue