6
6
7
7
namespace WPEFramework {
8
8
namespace Exchange {
9
+ #ifndef RUNTIME_CONFIG
10
+ struct RuntimeConfig {
11
+ bool dial;
12
+ bool wanLanAccess;
13
+ bool thunder;
14
+ int32_t systemMemoryLimit;
15
+ int32_t gpuMemoryLimit;
16
+ std::string envVars;
17
+ uint32_t userId;
18
+ uint32_t groupId;
19
+ uint32_t dataImageSize;
20
+
21
+ bool resourceManagerClientEnabled;
22
+ std::string dialId;
23
+ std::string command;
24
+ uint32_t appType;
25
+ std::string appPath;
26
+ std::string runtimePath;
27
+
28
+ std::string fireboltVersion;
29
+ bool enableDebugger;
30
+ };
31
+ #define RUNTIME_CONFIG
32
+ #endif
9
33
10
34
// @json 1.0.0 @text:keep
11
35
struct EXTERNAL IPackageDownloader : virtual public Core::IUnknown {
@@ -48,7 +72,7 @@ namespace Exchange {
48
72
virtual Core::hresult Initialize (PluginHost::IShell* service) = 0;
49
73
50
74
// @json:omit
51
- virtual void Deinitialize (PluginHost::IShell* service) = 0;
75
+ virtual Core::hresult Deinitialize (PluginHost::IShell* service) = 0;
52
76
53
77
54
78
// @brief Download
@@ -191,7 +215,7 @@ namespace Exchange {
191
215
virtual Core::hresult Config (
192
216
const string &packageId,
193
217
const string &version,
194
- string &config /* @out */ // XXX: JsonObject ?!
218
+ RuntimeConfig &configMetadata /* @out */
195
219
) = 0;
196
220
197
221
// @brief PackageState
@@ -232,7 +256,7 @@ namespace Exchange {
232
256
const LockReason &lockReason,
233
257
uint32_t &lockId /* @out */ ,
234
258
string &unpackedPath /* @out */ ,
235
- string &configMetadata /* @out */ ,
259
+ RuntimeConfig &configMetadata /* @out */ ,
236
260
string &appMetadata /* @out */
237
261
// XXX: appContextPath ?!
238
262
) = 0;
@@ -253,7 +277,7 @@ namespace Exchange {
253
277
const string &packageId,
254
278
const string &version,
255
279
string &unpackedPath /* @out */ ,
256
- string &configMetadata /* @out */ ,
280
+ RuntimeConfig &configMetadata /* @out */ ,
257
281
string &gatewayMetadataPath /* @out */ ,
258
282
bool &locked /* @out */
259
283
) = 0;
0 commit comments