Lines Matching refs:updateMsg
31 static bool WriteToMiscAndRebootToUpdater(const struct UpdateMessage &updateMsg)
35 int ret = strncpy_s(const_cast<char*>(updateMsg.command), sizeof(updateMsg.command), bootCmd,
36 sizeof(updateMsg.command) - 1);
41 WriteUpdaterMiscMsg(updateMsg);
81 static std::string ParsePkgPath(const struct UpdateMessage &updateMsg)
84 std::string pathInfo(updateMsg.update, sizeof(updateMsg.update));
99 static bool WriteToMiscAndResultFileRebootToUpdater(const struct UpdateMessage &updateMsg)
103 int ret = strncpy_s(const_cast<char*>(updateMsg.command), sizeof(updateMsg.command), bootCmd,
104 sizeof(updateMsg.command) - 1);
108 std::string pkgPath = ParsePkgPath(updateMsg);
113 WriteUpdaterMiscMsg(updateMsg);
194 struct UpdateMessage updateMsg {};
197 ret = snprintf_s(updateMsg.update, sizeof(updateMsg.update), sizeof(updateMsg.update) - 1,
200 ret = snprintf_s(updateMsg.update, sizeof(updateMsg.update), sizeof(updateMsg.update) - 1,
207 int addRet = AddPkgPath(updateMsg, static_cast<size_t>(ret), packageName);
212 WriteToMiscAndResultFileRebootToUpdater(updateMsg);
214 WriteToMiscAndRebootToUpdater(updateMsg);
229 struct UpdateMessage updateMsg {};
230 if (strncpy_s(updateMsg.update, sizeof(updateMsg.update), cmd.c_str(), cmd.size()) != EOK) {
235 WriteToMiscAndRebootToUpdater(updateMsg);