Lines Matching refs:headInfo
56 void UpdateInfoInMisc(const std::string headInfo, const std::optional<int> message, bool isRemove)
58 if (headInfo.empty()) {
70 if (arg.find(headInfo) == std::string::npos) {
81 char buffer[128] {}; // 128 : set headInfo size
83 LOG(INFO) << "remove --" << headInfo << " from misc";
85 if (snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, "--%s", headInfo.c_str()) == -1) {
91 headInfo.c_str(), message.value()) == -1) {
815 void SetMessageToMisc(const std::string &miscCmd, const int message, const std::string headInfo)
817 if (headInfo.empty()) {
833 if (arg.find(headInfo) == std::string::npos) {
844 char buffer[128] {}; // 128 : set headInfo size
845 if (headInfo == "sdcard_update") {
846 if (snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, "--%s", headInfo.c_str()) == -1) {
851 if (snprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, "--%s=%d", headInfo.c_str(), message) == -1) {
884 void AddUpdateInfoToMisc(const std::string headInfo, const std::optional<int> message)
886 UpdateInfoInMisc(headInfo, message, false);
889 void RemoveUpdateInfoFromMisc(const std::string &headInfo)
891 UpdateInfoInMisc(headInfo, std::nullopt, true);