- MMS server API: removed dependency from internal header file iso_server.h

pull/179/head
Michael Zillgith 6 years ago
parent 5a83af9206
commit 16c061b4df

@ -125,7 +125,7 @@ ClientConnection_getPeerAddress(ClientConnection self)
{
MmsServerConnection mmsConnection = (MmsServerConnection) self->serverConnectionHandle;
return IsoConnection_getPeerAddress(MmsServerConnection_getIsoConnection(mmsConnection));
return MmsServerConnection_getClientAddress(mmsConnection);
}
@ -134,5 +134,5 @@ ClientConnection_getSecurityToken(ClientConnection self)
{
MmsServerConnection mmsConnection = (MmsServerConnection) self->serverConnectionHandle;
return IsoConnection_getSecurityToken(MmsServerConnection_getIsoConnection(mmsConnection));
return MmsServerConnection_getSecurityToken(mmsConnection);
}

@ -34,7 +34,7 @@ extern "C" {
#include "mms_device_model.h"
#include "mms_value.h"
#include "iso_server.h"
#include "iso_connection_parameters.h"
typedef enum {
MMS_SERVER_NEW_CONNECTION, MMS_SERVER_CONNECTION_CLOSED
@ -507,9 +507,8 @@ MmsServer_setStatusRequestListener(MmsServer self, MmsStatusRequestListener list
LIB61850_INTERNAL char*
MmsServerConnection_getClientAddress(MmsServerConnection self);
LIB61850_INTERNAL IsoConnection
MmsServerConnection_getIsoConnection(MmsServerConnection self);
LIB61850_INTERNAL void*
MmsServerConnection_getSecurityToken(MmsServerConnection self);
/**@}*/

@ -787,10 +787,10 @@ MmsServerConnection_getClientAddress(MmsServerConnection self)
return IsoConnection_getPeerAddress(self->isoConnection);
}
IsoConnection
MmsServerConnection_getIsoConnection(MmsServerConnection self)
void*
MmsServerConnection_getSecurityToken(MmsServerConnection self)
{
return self->isoConnection;
return IsoConnection_getSecurityToken(self->isoConnection);
}
#if (MMS_DYNAMIC_DATA_SETS == 1)

Loading…
Cancel
Save