Skip to content
Snippets Groups Projects
Commit dbfa5261 authored by Neeraj Bijalwan's avatar Neeraj Bijalwan Committed by Vivek Dutta
Browse files

Added DUStateChange event in data model

parent 5b4edbc4
No related branches found
No related tags found
1 merge request!29Add du state chagne event
Pipeline #37779 passed
......@@ -845,6 +845,30 @@ static int operate_SoftwareModulesExecutionUnit_SetRequestedState(char *refparam
return CMD_SUCCESS;
}
/*************************************************************
* EVENTS
*************************************************************/
static event_args du_state_change_args = {
.param = (const char *[]) {
"UUID",
"DeploymentUnitRef",
"Version",
"CurrentState",
"Resolved",
"ExecutionUnitRefList",
"StartTime",
"CompleteTime",
"OperationPerformed",
NULL
}
};
static int get_event_DUStateChagne(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
{
*value = (char *)&du_state_change_args;
return 0;
}
/**********************************************************************************************************************************
* OBJ & PARAM DEFINITION
***********************************************************************************************************************************/
......@@ -870,6 +894,7 @@ DMLEAF tSoftwareModulesParams[] = {
{"DeploymentUnitNumberOfEntries", &DMREAD, DMT_UNINT, get_SoftwareModules_DeploymentUnitNumberOfEntries, NULL, BBFDM_BOTH},
{"ExecutionUnitNumberOfEntries", &DMREAD, DMT_UNINT, get_SoftwareModules_ExecutionUnitNumberOfEntries, NULL, BBFDM_BOTH},
{"InstallDU()", &DMASYNC, DMT_COMMAND, get_operate_args_SoftwareModules_InstallDU, operate_SoftwareModules_InstallDU, BBFDM_USP},
{"DUStateChange!", &DMREAD, DMT_EVENT, get_event_DUStateChagne, NULL, BBFDM_USP},
{0}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment