mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Add support for Device.Services.VoiceService.{i}.CallLogNumberOfEntries parameters
This commit is contained in:
parent
6d7d64f99a
commit
c7ff030f91
1 changed files with 8 additions and 0 deletions
|
|
@ -234,6 +234,13 @@ static int set_service_alias(char *refparam, struct dmctx *ctx, void *data, char
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int get_ServicesVoiceService_CallLogNumberOfEntries(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||||
|
{
|
||||||
|
int cnt = get_number_of_entries(ctx, data, instance, browseServicesVoiceServiceCallLogInst);
|
||||||
|
dmasprintf(value, "%d", cnt);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**********************************************************************************************************************************
|
/**********************************************************************************************************************************
|
||||||
* OBJ & PARAM DEFINITION
|
* OBJ & PARAM DEFINITION
|
||||||
***********************************************************************************************************************************/
|
***********************************************************************************************************************************/
|
||||||
|
|
@ -262,5 +269,6 @@ DMOBJ tServicesVoiceServiceObj[] = {
|
||||||
DMLEAF tServicesVoiceServiceParams[] = {
|
DMLEAF tServicesVoiceServiceParams[] = {
|
||||||
/* PARAM, permission, type, getvalue, setvalue, bbfdm_type*/
|
/* PARAM, permission, type, getvalue, setvalue, bbfdm_type*/
|
||||||
{"Alias", &DMWRITE, DMT_STRING, get_service_alias, set_service_alias, BBFDM_BOTH},
|
{"Alias", &DMWRITE, DMT_STRING, get_service_alias, set_service_alias, BBFDM_BOTH},
|
||||||
|
{"CallLogNumberOfEntries", &DMREAD, DMT_UNINT, get_ServicesVoiceService_CallLogNumberOfEntries, NULL, BBFDM_BOTH},
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue