Skip to content

Commit 577f421

Browse files
authored
RDKEMW-2674: RuntimeConfig object for PackageManager (#149)
* Addded struct RuntimeConfig * Use struct RuntimeConfig from RuntimeConfig.h * stubgen:include error, hard code struct * wip * wip * Moved IPackageImpl.h from libpackage-sky * use ifndef around RuntimeConfig struct * cleanup * Pass the plugin config to libPackage * revert IPackageImpl.h move * Change Deinitialize() return value
1 parent cf0f34f commit 577f421

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

apis/PackageManager/IAppPackageManager.h

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@
66

77
namespace WPEFramework {
88
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
933

1034
// @json 1.0.0 @text:keep
1135
struct EXTERNAL IPackageDownloader : virtual public Core::IUnknown {
@@ -48,7 +72,7 @@ namespace Exchange {
4872
virtual Core::hresult Initialize(PluginHost::IShell* service) = 0;
4973

5074
// @json:omit
51-
virtual void Deinitialize(PluginHost::IShell* service) = 0;
75+
virtual Core::hresult Deinitialize(PluginHost::IShell* service) = 0;
5276

5377

5478
// @brief Download
@@ -191,7 +215,7 @@ namespace Exchange {
191215
virtual Core::hresult Config(
192216
const string &packageId,
193217
const string &version,
194-
string &config /* @out */ // XXX: JsonObject ?!
218+
RuntimeConfig &configMetadata /* @out */
195219
) = 0;
196220

197221
// @brief PackageState
@@ -232,7 +256,7 @@ namespace Exchange {
232256
const LockReason &lockReason,
233257
uint32_t &lockId /* @out */,
234258
string &unpackedPath /* @out */,
235-
string &configMetadata /* @out */,
259+
RuntimeConfig &configMetadata /* @out */,
236260
string &appMetadata /* @out */
237261
// XXX: appContextPath ?!
238262
) = 0;
@@ -253,7 +277,7 @@ namespace Exchange {
253277
const string &packageId,
254278
const string &version,
255279
string &unpackedPath /* @out */,
256-
string &configMetadata /* @out */,
280+
RuntimeConfig &configMetadata /* @out */,
257281
string &gatewayMetadataPath /* @out */,
258282
bool &locked /* @out */
259283
) = 0;

0 commit comments

Comments
 (0)