1 /* |
|
2 * Generated by erpcgen 1.13.0 on Fri Nov 22 15:03:08 2024. |
|
3 * |
|
4 * AUTOGENERATED - DO NOT EDIT |
|
5 */ |
|
6 |
|
7 |
|
8 #include "c_erpc_PLCObject_client.h" |
|
9 #include "erpc_PLCObject_client.hpp" |
|
10 #include "erpc_manually_constructed.hpp" |
|
11 |
|
12 using namespace erpc; |
|
13 using namespace std; |
|
14 using namespace erpcShim; |
|
15 |
|
16 |
|
17 #if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
|
18 BeremizPLCObjectService_client *s_BeremizPLCObjectService_client = nullptr; |
|
19 #else |
|
20 ERPC_MANUALLY_CONSTRUCTED_STATIC(BeremizPLCObjectService_client, s_BeremizPLCObjectService_client); |
|
21 #endif |
|
22 |
|
23 uint32_t AppendChunkToBlob(const binary_t * data, const binary_t * blobID, binary_t * newBlobID) |
|
24 { |
|
25 uint32_t result; |
|
26 result = s_BeremizPLCObjectService_client->AppendChunkToBlob(data, blobID, newBlobID); |
|
27 |
|
28 return result; |
|
29 } |
|
30 |
|
31 uint32_t GetLogMessage(uint8_t level, uint32_t msgID, log_message * message) |
|
32 { |
|
33 uint32_t result; |
|
34 result = s_BeremizPLCObjectService_client->GetLogMessage(level, msgID, message); |
|
35 |
|
36 return result; |
|
37 } |
|
38 |
|
39 uint32_t GetPLCID(PSKID * plcID) |
|
40 { |
|
41 uint32_t result; |
|
42 result = s_BeremizPLCObjectService_client->GetPLCID(plcID); |
|
43 |
|
44 return result; |
|
45 } |
|
46 |
|
47 uint32_t GetPLCstatus(PLCstatus * status) |
|
48 { |
|
49 uint32_t result; |
|
50 result = s_BeremizPLCObjectService_client->GetPLCstatus(status); |
|
51 |
|
52 return result; |
|
53 } |
|
54 |
|
55 uint32_t GetTraceVariables(uint32_t debugToken, TraceVariables * traces) |
|
56 { |
|
57 uint32_t result; |
|
58 result = s_BeremizPLCObjectService_client->GetTraceVariables(debugToken, traces); |
|
59 |
|
60 return result; |
|
61 } |
|
62 |
|
63 uint32_t MatchMD5(const char * MD5, bool * match) |
|
64 { |
|
65 uint32_t result; |
|
66 result = s_BeremizPLCObjectService_client->MatchMD5(MD5, match); |
|
67 |
|
68 return result; |
|
69 } |
|
70 |
|
71 uint32_t NewPLC(const char * md5sum, const binary_t * plcObjectBlobID, const list_extra_file_1_t * extrafiles, bool * success) |
|
72 { |
|
73 uint32_t result; |
|
74 result = s_BeremizPLCObjectService_client->NewPLC(md5sum, plcObjectBlobID, extrafiles, success); |
|
75 |
|
76 return result; |
|
77 } |
|
78 |
|
79 uint32_t PurgeBlobs(void) |
|
80 { |
|
81 uint32_t result; |
|
82 result = s_BeremizPLCObjectService_client->PurgeBlobs(); |
|
83 |
|
84 return result; |
|
85 } |
|
86 |
|
87 uint32_t RepairPLC(void) |
|
88 { |
|
89 uint32_t result; |
|
90 result = s_BeremizPLCObjectService_client->RepairPLC(); |
|
91 |
|
92 return result; |
|
93 } |
|
94 |
|
95 uint32_t ResetLogCount(void) |
|
96 { |
|
97 uint32_t result; |
|
98 result = s_BeremizPLCObjectService_client->ResetLogCount(); |
|
99 |
|
100 return result; |
|
101 } |
|
102 |
|
103 uint32_t SeedBlob(const binary_t * seed, binary_t * blobID) |
|
104 { |
|
105 uint32_t result; |
|
106 result = s_BeremizPLCObjectService_client->SeedBlob(seed, blobID); |
|
107 |
|
108 return result; |
|
109 } |
|
110 |
|
111 uint32_t SetTraceVariablesList(const list_trace_order_1_t * orders, int32_t * debugtoken) |
|
112 { |
|
113 uint32_t result; |
|
114 result = s_BeremizPLCObjectService_client->SetTraceVariablesList(orders, debugtoken); |
|
115 |
|
116 return result; |
|
117 } |
|
118 |
|
119 uint32_t StartPLC(void) |
|
120 { |
|
121 uint32_t result; |
|
122 result = s_BeremizPLCObjectService_client->StartPLC(); |
|
123 |
|
124 return result; |
|
125 } |
|
126 |
|
127 uint32_t StopPLC(bool * success) |
|
128 { |
|
129 uint32_t result; |
|
130 result = s_BeremizPLCObjectService_client->StopPLC(success); |
|
131 |
|
132 return result; |
|
133 } |
|
134 |
|
135 uint32_t ExtendedCall(const char * method, const binary_t * argument, binary_t * answer) |
|
136 { |
|
137 uint32_t result; |
|
138 result = s_BeremizPLCObjectService_client->ExtendedCall(method, argument, answer); |
|
139 |
|
140 return result; |
|
141 } |
|
142 |
|
143 void initBeremizPLCObjectService_client(erpc_client_t client) |
|
144 { |
|
145 #if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
|
146 erpc_assert(s_BeremizPLCObjectService_client == nullptr); |
|
147 s_BeremizPLCObjectService_client = new BeremizPLCObjectService_client(reinterpret_cast<ClientManager *>(client)); |
|
148 #else |
|
149 erpc_assert(!s_BeremizPLCObjectService_client.isUsed()); |
|
150 s_BeremizPLCObjectService_client.construct(reinterpret_cast<ClientManager *>(client)); |
|
151 #endif |
|
152 } |
|
153 |
|
154 void deinitBeremizPLCObjectService_client(void) |
|
155 { |
|
156 #if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
|
157 if (s_BeremizPLCObjectService_client != nullptr) |
|
158 { |
|
159 delete s_BeremizPLCObjectService_client; |
|
160 s_BeremizPLCObjectService_client = nullptr; |
|
161 } |
|
162 #else |
|
163 s_BeremizPLCObjectService_client.destroy(); |
|
164 #endif |
|
165 } |
|