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