- SV publisher/subscriber: removed deprecated header files. Moved wrapper functions for deprecated API to .c files
parent
5cabd43702
commit
ce0ed1d39c
@ -1,211 +0,0 @@
|
||||
/*
|
||||
* sv_publisher.h
|
||||
*
|
||||
* Copyright 2016 Michael Zillgith
|
||||
*
|
||||
* This file is part of libIEC61850.
|
||||
*
|
||||
* libIEC61850 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* libIEC61850 is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with libIEC61850. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* See COPYING file for the complete license text.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef LIBIEC61850_SRC_SAMPLED_VALUES_SV_PUBLISHER_DEPRECATED_H_
|
||||
#define LIBIEC61850_SRC_SAMPLED_VALUES_SV_PUBLISHER_DEPRECATED_H_
|
||||
|
||||
#include "libiec61850_platform_includes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define DEPRECATED __attribute__((deprecated))
|
||||
#else
|
||||
#define DEPRECATED
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \addtogroup sv_publisher_deprecated_api_group Deprecated API
|
||||
* \ingroup sv_publisher_api_group IEC 61850 Sampled Values (SV) publisher API
|
||||
* \deprecated
|
||||
* @{
|
||||
*/
|
||||
|
||||
typedef DEPRECATED struct sSVPublisher* SampledValuesPublisher;
|
||||
|
||||
typedef DEPRECATED struct sSV_ASDU* SV_ASDU;
|
||||
|
||||
static DEPRECATED
|
||||
SVPublisher
|
||||
SampledValuesPublisher_create(CommParameters* parameters, const char* interfaceId)
|
||||
{
|
||||
return SVPublisher_create(parameters, interfaceId);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
SVPublisher_ASDU
|
||||
SampledValuesPublisher_addASDU(SVPublisher self, char* svID, char* datset, uint32_t confRev)
|
||||
{
|
||||
return SVPublisher_addASDU(self, svID, datset, confRev);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SampledValuesPublisher_setupComplete(SVPublisher self)
|
||||
{
|
||||
SVPublisher_setupComplete(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SampledValuesPublisher_publish(SVPublisher self)
|
||||
{
|
||||
SVPublisher_publish(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SampledValuesPublisher_destroy(SVPublisher self)
|
||||
{
|
||||
SVPublisher_destroy(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_resetBuffer(SVPublisher_ASDU self)
|
||||
{
|
||||
SVPublisher_ASDU_resetBuffer(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int
|
||||
SV_ASDU_addINT8(SVPublisher_ASDU self)
|
||||
{
|
||||
return SVPublisher_ASDU_addINT8(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setINT8(SVPublisher_ASDU self, int index, int8_t value)
|
||||
{
|
||||
SVPublisher_ASDU_setINT8(self, index, value);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int
|
||||
SV_ASDU_addINT32(SVPublisher_ASDU self)
|
||||
{
|
||||
return SVPublisher_ASDU_addINT32(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setINT32(SVPublisher_ASDU self, int index, int32_t value)
|
||||
{
|
||||
SVPublisher_ASDU_setINT32(self, index, value);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int
|
||||
SV_ASDU_addINT64(SVPublisher_ASDU self)
|
||||
{
|
||||
return SVPublisher_ASDU_addINT64(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setINT64(SVPublisher_ASDU self, int index, int64_t value)
|
||||
{
|
||||
SVPublisher_ASDU_setINT64(self, index, value);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int
|
||||
SV_ASDU_addFLOAT(SVPublisher_ASDU self)
|
||||
{
|
||||
return SVPublisher_ASDU_addFLOAT(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setFLOAT(SVPublisher_ASDU self, int index, float value)
|
||||
{
|
||||
SVPublisher_ASDU_setFLOAT(self, index, value);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int
|
||||
SV_ASDU_addFLOAT64(SVPublisher_ASDU self)
|
||||
{
|
||||
return SVPublisher_ASDU_addFLOAT64(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setFLOAT64(SVPublisher_ASDU self, int index, double value)
|
||||
{
|
||||
SVPublisher_ASDU_setFLOAT64(self, index, value);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setSmpCnt(SVPublisher_ASDU self, uint16_t value)
|
||||
{
|
||||
SVPublisher_ASDU_setSmpCnt(self, value);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
uint16_t
|
||||
SV_ASDU_getSmpCnt(SVPublisher_ASDU self)
|
||||
{
|
||||
return SVPublisher_ASDU_getSmpCnt(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_increaseSmpCnt(SVPublisher_ASDU self)
|
||||
{
|
||||
SVPublisher_ASDU_increaseSmpCnt(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setRefrTm(SVPublisher_ASDU self, uint64_t refrTm)
|
||||
{
|
||||
SVPublisher_ASDU_setRefrTm(self, refrTm);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setSmpMod(SVPublisher_ASDU self, uint8_t smpMod)
|
||||
{
|
||||
SVPublisher_ASDU_setSmpMod(self, smpMod);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
void
|
||||
SV_ASDU_setSmpRate(SVPublisher_ASDU self, uint16_t smpRate)
|
||||
{
|
||||
SVPublisher_ASDU_setSmpRate(self, smpRate);
|
||||
}
|
||||
|
||||
/**@}*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBIEC61850_SRC_SAMPLED_VALUES_SV_PUBLISHER_DEPRECATED_H_ */
|
@ -1,167 +0,0 @@
|
||||
/*
|
||||
* sv_subscriber_deprecated.h
|
||||
*
|
||||
* Copyright 2015 Michael Zillgith
|
||||
*
|
||||
* This file is part of libIEC61850.
|
||||
*
|
||||
* libIEC61850 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* libIEC61850 is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with libIEC61850. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* See COPYING file for the complete license text.
|
||||
*/
|
||||
|
||||
#ifndef SAMPLED_VALUES_SV_SUBSCRIBER_DEPRECATED_H_
|
||||
#define SAMPLED_VALUES_SV_SUBSCRIBER_DEPRECATED_H_
|
||||
|
||||
#include "libiec61850_common_api.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define DEPRECATED __attribute__((deprecated))
|
||||
#else
|
||||
#define DEPRECATED
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \addtogroup sv_subscriber_deprecated_api_group Deprecated API
|
||||
* \ingroup sv_subscriber_api_group IEC 61850 Sampled Values (SV) publisher API
|
||||
* \deprecated
|
||||
* @{
|
||||
*/
|
||||
|
||||
typedef struct sSVSubscriberASDU* SVClientASDU;
|
||||
|
||||
static DEPRECATED
|
||||
uint16_t
|
||||
SVClientASDU_getSmpCnt(SVSubscriber_ASDU self)
|
||||
{
|
||||
return SVSubscriber_ASDU_getSmpCnt(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
const char*
|
||||
SVClientASDU_getSvId(SVSubscriber_ASDU self)
|
||||
{
|
||||
return SVSubscriber_ASDU_getSvId(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
uint32_t
|
||||
SVClientASDU_getConfRev(SVSubscriber_ASDU self)
|
||||
{
|
||||
return SVSubscriber_ASDU_getConfRev(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
bool
|
||||
SVClientASDU_hasRefrTm(SVSubscriber_ASDU self)
|
||||
{
|
||||
return SVSubscriber_ASDU_hasRefrTm(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
uint64_t
|
||||
SVClientASDU_getRefrTmAsMs(SVSubscriber_ASDU self)
|
||||
{
|
||||
return SVSubscriber_ASDU_getRefrTmAsMs(self);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int8_t
|
||||
SVClientASDU_getINT8(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getINT8(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int16_t
|
||||
SVClientASDU_getINT16(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getINT16(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int32_t
|
||||
SVClientASDU_getINT32(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getINT32(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int64_t
|
||||
SVClientASDU_getINT64(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getINT64(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
uint8_t
|
||||
SVClientASDU_getINT8U(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getINT8U(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
uint16_t
|
||||
SVClientASDU_getINT16U(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getINT16U(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
uint32_t
|
||||
SVClientASDU_getINT32U(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getINT32U(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
uint64_t
|
||||
SVClientASDU_getINT64U(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getINT64U(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
float
|
||||
SVClientASDU_getFLOAT32(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getFLOAT32(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
double
|
||||
SVClientASDU_getFLOAT64(SVSubscriber_ASDU self, int index)
|
||||
{
|
||||
return SVSubscriber_ASDU_getFLOAT64(self, index);
|
||||
}
|
||||
|
||||
static DEPRECATED
|
||||
int
|
||||
SVClientASDU_getDataSize(SVSubscriber_ASDU self)
|
||||
{
|
||||
return SVSubscriber_ASDU_getDataSize(self);
|
||||
}
|
||||
|
||||
/**@}*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* SAMPLED_VALUES_SV_SUBSCRIBER_DEPRECATED_H_ */
|
Loading…
Reference in New Issue