26
26
namespace WPEFramework {
27
27
namespace Exchange {
28
28
29
- #ifndef RUNTIME_CONFIG
30
- struct RuntimeConfig {
31
- bool dial;
32
- bool wanLanAccess;
33
- bool thunder;
34
- int32_t systemMemoryLimit;
35
- int32_t gpuMemoryLimit;
36
- std::string envVariables;
37
- uint32_t userId;
38
- uint32_t groupId;
39
- uint32_t dataImageSize;
40
-
41
- bool resourceManagerClientEnabled;
42
- std::string dialId;
43
- std::string command;
44
- std::string appType;
45
- std::string appPath;
46
- std::string runtimePath;
47
-
48
- std::string logFilePath;
49
- uint32_t logFileMaxSize;
50
- std::string logLevels; // json array of strings
51
- bool mapi;
52
- std::string fkpsFiles; // json array of strings
53
-
54
- std::string fireboltVersion;
55
- bool enableDebugger;
56
- };
57
- #define RUNTIME_CONFIG
58
- #endif
59
-
60
29
// @json 1.0.0 @text:keep
61
30
struct EXTERNAL IPreinstallManager : virtual public Core::IUnknown {
62
31
enum { ID = ID_PREINSTALL_MANAGER };
63
32
64
- enum PreinstallState : uint8_t {
65
- PREINSTALL_STATE_UNKNOWN = 0 /* @text PREINSTALL_STATE_UNKNOWN */ , // required?
66
- PREINSTALL_STATE_INSTALLED = 1 /* @text PREINSTALL_STATE_INSTALLED */ ,
67
- PREINSTALL_STATE_INSTALL_FAILURE = 2 /* @text PREINSTALL_STATE_INSTALL_FAILURE */
68
- };
69
-
70
- enum PreinstallFailReason : uint8_t {
71
- PREINSTALL_FAIL_REASON_NONE = 0 /* @text PREINSTALL_FAIL_REASON_NONE */ ,
72
- PREINSTALL_FAIL_REASON_UNKNOWN = 1 /* @text PREINSTALL_FAIL_REASON_UNKNOWN */ ,
73
- PREINSTALL_FAIL_REASON_SIGNATURE_VERIFICATION_FAILURE = 2 /* @text PREINSTALL_FAIL_REASON_SIGNATURE_VERIFICATION_FAILURE */ ,
74
- PREINSTALL_FAIL_REASON_PERSISTENCE_FAILURE = 3 /* @text PREINSTALL_FAIL_REASON_PERSISTENCE_FAILURE */
75
- };
76
-
77
-
78
- struct AppInstallInfo {
79
- string packageId;
80
- string version;
81
- PreinstallState state;
82
- PreinstallFailReason failReason;
83
- };
84
-
85
33
86
- // using IAppInstallInfoIterator = RPC::IIteratorType<AppInstallInfo, ID_PREINSTALL_MANAGER_INSTALL_INFO_ITERATOR>;
87
34
88
35
// @event
89
36
struct EXTERNAL INotification : virtual public Core::IUnknown {
@@ -92,8 +39,8 @@ struct EXTERNAL IPreinstallManager : virtual public Core::IUnknown {
92
39
93
40
// @text onAppInstallationStatus
94
41
// @brief Emitted when the installation of a preinstalled app succeeds or fails.
95
- // @param appInstallInfoArray : Output installation status details as string object
96
- virtual void OnAppInstallationStatus (const string& jsonresponse) {};
42
+ // @param jsonresponse : Output installation status details as string object
43
+ virtual void OnAppInstallationStatus (const string& jsonresponse /* @opaque */ ) {};
97
44
};
98
45
99
46
/* * Register notification interface */
0 commit comments