|
|
@ -84,6 +84,7 @@ ReportBuffer_create(int bufferSize)
|
|
|
|
static void
|
|
|
|
static void
|
|
|
|
ReportBuffer_destroy(ReportBuffer* self)
|
|
|
|
ReportBuffer_destroy(ReportBuffer* self)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (self) {
|
|
|
|
GLOBAL_FREEMEM(self->memoryBlock);
|
|
|
|
GLOBAL_FREEMEM(self->memoryBlock);
|
|
|
|
|
|
|
|
|
|
|
|
#if (CONFIG_MMS_THREADLESS_STACK != 1)
|
|
|
|
#if (CONFIG_MMS_THREADLESS_STACK != 1)
|
|
|
@ -91,12 +92,15 @@ ReportBuffer_destroy(ReportBuffer* self)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
GLOBAL_FREEMEM(self);
|
|
|
|
GLOBAL_FREEMEM(self);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ReportControl*
|
|
|
|
ReportControl*
|
|
|
|
ReportControl_create(bool buffered, LogicalNode* parentLN, int reportBufferSize, IedServer iedServer)
|
|
|
|
ReportControl_create(bool buffered, LogicalNode* parentLN, int reportBufferSize, IedServer iedServer)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ReportControl* self = (ReportControl*) GLOBAL_MALLOC(sizeof(ReportControl));
|
|
|
|
ReportControl* self = (ReportControl*) GLOBAL_MALLOC(sizeof(ReportControl));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (self) {
|
|
|
|
self->name = NULL;
|
|
|
|
self->name = NULL;
|
|
|
|
self->domain = NULL;
|
|
|
|
self->domain = NULL;
|
|
|
|
self->parentLN = parentLN;
|
|
|
|
self->parentLN = parentLN;
|
|
|
@ -141,6 +145,7 @@ ReportControl_create(bool buffered, LogicalNode* parentLN, int reportBufferSize,
|
|
|
|
self->server = iedServer;
|
|
|
|
self->server = iedServer;
|
|
|
|
|
|
|
|
|
|
|
|
self->reportBuffer = ReportBuffer_create(reportBufferSize);
|
|
|
|
self->reportBuffer = ReportBuffer_create(reportBufferSize);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -206,6 +211,7 @@ deleteDataSetValuesShadowBuffer(ReportControl* self)
|
|
|
|
void
|
|
|
|
void
|
|
|
|
ReportControl_destroy(ReportControl* self)
|
|
|
|
ReportControl_destroy(ReportControl* self)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (self) {
|
|
|
|
if (self->rcbValues != NULL )
|
|
|
|
if (self->rcbValues != NULL )
|
|
|
|
MmsValue_delete(self->rcbValues);
|
|
|
|
MmsValue_delete(self->rcbValues);
|
|
|
|
|
|
|
|
|
|
|
@ -244,6 +250,7 @@ ReportControl_destroy(ReportControl* self)
|
|
|
|
GLOBAL_FREEMEM(self->name);
|
|
|
|
GLOBAL_FREEMEM(self->name);
|
|
|
|
|
|
|
|
|
|
|
|
GLOBAL_FREEMEM(self);
|
|
|
|
GLOBAL_FREEMEM(self);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MmsValue*
|
|
|
|
MmsValue*
|
|
|
|