diff -r 129202e555e0 -r e13543d716b6 C_runtime/c_erpc_PLCObject_client.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C_runtime/c_erpc_PLCObject_client.cpp Wed Apr 24 02:15:33 2024 +0200 @@ -0,0 +1,157 @@ +/* + * Generated by erpcgen 1.11.0 on Wed Mar 27 13:43:44 2024. + * + * AUTOGENERATED - DO NOT EDIT + */ + + +#include "c_erpc_PLCObject_client.h" +#include "erpc_PLCObject_client.hpp" +#include "erpc_manually_constructed.hpp" + +using namespace erpc; +using namespace std; +using namespace erpcShim; + + +#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC +BeremizPLCObjectService_client *s_BeremizPLCObjectService_client = nullptr; +#else +ERPC_MANUALLY_CONSTRUCTED_STATIC(BeremizPLCObjectService_client, s_BeremizPLCObjectService_client); +#endif + +uint32_t AppendChunkToBlob(const binary_t * data, const binary_t * blobID, binary_t * newBlobID) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->AppendChunkToBlob(data, blobID, newBlobID); + + return result; +} + +uint32_t GetLogMessage(uint8_t level, uint32_t msgID, log_message * message) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->GetLogMessage(level, msgID, message); + + return result; +} + +uint32_t GetPLCID(PSKID * plcID) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->GetPLCID(plcID); + + return result; +} + +uint32_t GetPLCstatus(PLCstatus * status) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->GetPLCstatus(status); + + return result; +} + +uint32_t GetTraceVariables(uint32_t debugToken, TraceVariables * traces) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->GetTraceVariables(debugToken, traces); + + return result; +} + +uint32_t MatchMD5(const char * MD5, bool * match) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->MatchMD5(MD5, match); + + return result; +} + +uint32_t NewPLC(const char * md5sum, const binary_t * plcObjectBlobID, const list_extra_file_1_t * extrafiles, bool * success) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->NewPLC(md5sum, plcObjectBlobID, extrafiles, success); + + return result; +} + +uint32_t PurgeBlobs(void) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->PurgeBlobs(); + + return result; +} + +uint32_t RepairPLC(void) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->RepairPLC(); + + return result; +} + +uint32_t ResetLogCount(void) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->ResetLogCount(); + + return result; +} + +uint32_t SeedBlob(const binary_t * seed, binary_t * blobID) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->SeedBlob(seed, blobID); + + return result; +} + +uint32_t SetTraceVariablesList(const list_trace_order_1_t * orders, uint32_t * debugtoken) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->SetTraceVariablesList(orders, debugtoken); + + return result; +} + +uint32_t StartPLC(void) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->StartPLC(); + + return result; +} + +uint32_t StopPLC(bool * success) +{ + uint32_t result; + result = s_BeremizPLCObjectService_client->StopPLC(success); + + return result; +} + +void initBeremizPLCObjectService_client(erpc_client_t client) +{ +#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC + erpc_assert(s_BeremizPLCObjectService_client == nullptr); + s_BeremizPLCObjectService_client = new BeremizPLCObjectService_client(reinterpret_cast(client)); +#else + erpc_assert(!s_BeremizPLCObjectService_client.isUsed()); + s_BeremizPLCObjectService_client.construct(reinterpret_cast(client)); +#endif +} + +void deinitBeremizPLCObjectService_client(void) +{ +#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC + if (s_BeremizPLCObjectService_client != nullptr) + { + delete s_BeremizPLCObjectService_client; + s_BeremizPLCObjectService_client = nullptr; + } +#else + s_BeremizPLCObjectService_client.destroy(); +#endif +}