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 edouard@4058: #include "c_erpc_PLCObject_server.h" edouard@4058: #include "erpc_PLCObject_server.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: class BeremizPLCObjectService_server: public BeremizPLCObjectService_interface edouard@4058: { edouard@4058: public: edouard@4058: virtual ~BeremizPLCObjectService_server() {}; edouard@4058: 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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::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 = ::ExtendedCall(method, argument, answer); edouard@4058: edouard@4058: return result; edouard@4058: } edouard@4058: }; edouard@4058: edouard@4058: ERPC_MANUALLY_CONSTRUCTED_STATIC(BeremizPLCObjectService_service, s_BeremizPLCObjectService_service); edouard@4058: ERPC_MANUALLY_CONSTRUCTED_STATIC(BeremizPLCObjectService_server, s_BeremizPLCObjectService_server); edouard@4058: edouard@4058: erpc_service_t create_BeremizPLCObjectService_service(void) edouard@4058: { edouard@4058: erpc_service_t service; edouard@4058: edouard@4058: #if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC edouard@4058: service = new (nothrow) BeremizPLCObjectService_service(new (nothrow)BeremizPLCObjectService_server()); edouard@4058: #else edouard@4058: if (s_BeremizPLCObjectService_service.isUsed()) edouard@4058: { edouard@4058: service = NULL; edouard@4058: } edouard@4058: else edouard@4058: { edouard@4058: s_BeremizPLCObjectService_server.construct(); edouard@4058: s_BeremizPLCObjectService_service.construct(s_BeremizPLCObjectService_server.get()); edouard@4058: service = s_BeremizPLCObjectService_service.get(); edouard@4058: } edouard@4058: #endif edouard@4058: edouard@4058: return service; edouard@4058: } edouard@4058: edouard@4058: void destroy_BeremizPLCObjectService_service(erpc_service_t service) edouard@4058: { edouard@4058: #if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC edouard@4058: if (service) edouard@4058: { edouard@4058: delete (BeremizPLCObjectService_server *)(((BeremizPLCObjectService_service *)service)->getHandler()); edouard@4058: delete (BeremizPLCObjectService_service *)service; edouard@4058: } edouard@4058: #else edouard@4058: (void)service; edouard@4058: erpc_assert(service == s_BeremizPLCObjectService_service.get()); edouard@4058: s_BeremizPLCObjectService_service.destroy(); edouard@4058: s_BeremizPLCObjectService_server.destroy(); edouard@4058: #endif edouard@4058: } edouard@4058: