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