author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Tue, 03 Dec 2024 21:26:52 +0100 | |
changeset 4058 | 5472b88bbc9d |
permissions | -rw-r--r-- |
4058
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1 |
/* |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
2 |
* Generated by erpcgen 1.13.0 on Fri Nov 22 15:03:08 2024. |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
3 |
* |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
4 |
* AUTOGENERATED - DO NOT EDIT |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
5 |
*/ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
6 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
7 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
8 |
#include <new> |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
9 |
#include "c_erpc_PLCObject_server.h" |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
10 |
#include "erpc_PLCObject_server.hpp" |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
11 |
#include "erpc_manually_constructed.hpp" |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
12 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
13 |
using namespace erpc; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
14 |
using namespace std; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
15 |
using namespace erpcShim; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
16 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
17 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
18 |
class BeremizPLCObjectService_server: public BeremizPLCObjectService_interface |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
19 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
20 |
public: |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
21 |
virtual ~BeremizPLCObjectService_server() {}; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
22 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
23 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
24 |
uint32_t AppendChunkToBlob(const binary_t * data, const binary_t * blobID, binary_t * newBlobID) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
25 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
26 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
27 |
result = ::AppendChunkToBlob(data, blobID, newBlobID); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
28 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
29 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
30 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
31 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
32 |
uint32_t GetLogMessage(uint8_t level, uint32_t msgID, log_message * message) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
33 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
34 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
35 |
result = ::GetLogMessage(level, msgID, message); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
36 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
37 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
38 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
39 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
40 |
uint32_t GetPLCID(PSKID * plcID) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
41 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
42 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
43 |
result = ::GetPLCID(plcID); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
44 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
45 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
46 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
47 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
48 |
uint32_t GetPLCstatus(PLCstatus * status) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
49 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
50 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
51 |
result = ::GetPLCstatus(status); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
52 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
53 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
54 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
55 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
56 |
uint32_t GetTraceVariables(uint32_t debugToken, TraceVariables * traces) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
57 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
58 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
59 |
result = ::GetTraceVariables(debugToken, traces); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
60 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
61 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
62 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
63 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
64 |
uint32_t MatchMD5(const char * MD5, bool * match) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
65 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
66 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
67 |
result = ::MatchMD5(MD5, match); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
68 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
69 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
70 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
71 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
72 |
uint32_t NewPLC(const char * md5sum, const binary_t * plcObjectBlobID, const list_extra_file_1_t * extrafiles, bool * success) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
73 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
74 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
75 |
result = ::NewPLC(md5sum, plcObjectBlobID, extrafiles, success); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
76 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
77 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
78 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
79 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
80 |
uint32_t PurgeBlobs(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
81 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
82 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
83 |
result = ::PurgeBlobs(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
84 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
85 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
86 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
87 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
88 |
uint32_t RepairPLC(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
89 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
90 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
91 |
result = ::RepairPLC(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
92 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
93 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
94 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
95 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
96 |
uint32_t ResetLogCount(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
97 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
98 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
99 |
result = ::ResetLogCount(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
100 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
101 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
102 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
103 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
104 |
uint32_t SeedBlob(const binary_t * seed, binary_t * blobID) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
105 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
106 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
107 |
result = ::SeedBlob(seed, blobID); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
108 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
109 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
110 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
111 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
112 |
uint32_t SetTraceVariablesList(const list_trace_order_1_t * orders, int32_t * debugtoken) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
113 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
114 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
115 |
result = ::SetTraceVariablesList(orders, debugtoken); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
116 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
117 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
118 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
119 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
120 |
uint32_t StartPLC(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
121 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
122 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
123 |
result = ::StartPLC(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
124 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
125 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
126 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
127 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
128 |
uint32_t StopPLC(bool * success) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
129 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
130 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
131 |
result = ::StopPLC(success); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
132 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
133 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
134 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
135 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
136 |
uint32_t ExtendedCall(const char * method, const binary_t * argument, binary_t * answer) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
137 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
138 |
uint32_t result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
139 |
result = ::ExtendedCall(method, argument, answer); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
140 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
141 |
return result; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
142 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
143 |
}; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
144 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
145 |
ERPC_MANUALLY_CONSTRUCTED_STATIC(BeremizPLCObjectService_service, s_BeremizPLCObjectService_service); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
146 |
ERPC_MANUALLY_CONSTRUCTED_STATIC(BeremizPLCObjectService_server, s_BeremizPLCObjectService_server); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
147 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
148 |
erpc_service_t create_BeremizPLCObjectService_service(void) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
149 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
150 |
erpc_service_t service; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
151 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
152 |
#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
153 |
service = new (nothrow) BeremizPLCObjectService_service(new (nothrow)BeremizPLCObjectService_server()); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
154 |
#else |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
155 |
if (s_BeremizPLCObjectService_service.isUsed()) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
156 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
157 |
service = NULL; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
158 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
159 |
else |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
160 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
161 |
s_BeremizPLCObjectService_server.construct(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
162 |
s_BeremizPLCObjectService_service.construct(s_BeremizPLCObjectService_server.get()); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
163 |
service = s_BeremizPLCObjectService_service.get(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
164 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
165 |
#endif |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
166 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
167 |
return service; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
168 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
169 |
|
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
170 |
void destroy_BeremizPLCObjectService_service(erpc_service_t service) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
171 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
172 |
#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
173 |
if (service) |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
174 |
{ |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
175 |
delete (BeremizPLCObjectService_server *)(((BeremizPLCObjectService_service *)service)->getHandler()); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
176 |
delete (BeremizPLCObjectService_service *)service; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
177 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
178 |
#else |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
179 |
(void)service; |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
180 |
erpc_assert(service == s_BeremizPLCObjectService_service.get()); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
181 |
s_BeremizPLCObjectService_service.destroy(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
182 |
s_BeremizPLCObjectService_server.destroy(); |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
183 |
#endif |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
184 |
} |
5472b88bbc9d
C runtime: move generated erpc interface in separate "service" directory
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
185 |