Lines Matching refs:RetCode
48 enum RetCode : int { enum
75 RetCode Boot(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
76 RetCode Continue(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
77 RetCode CreatePartition(const std::string& partition, const std::string& size);
78 RetCode DeletePartition(const std::string& partition);
79 RetCode Download(const std::string& name, int fd, size_t size, std::string* response = nullptr,
81 RetCode Download(int fd, size_t size, std::string* response = nullptr,
83 RetCode Download(const std::string& name, const std::vector<char>& buf,
85 RetCode Download(const std::vector<char>& buf, std::string* response = nullptr,
87 RetCode Download(const std::string& partition, struct sparse_file* s, uint32_t sz,
90 RetCode Download(sparse_file* s, bool use_crc = false, std::string* response = nullptr,
92 RetCode Erase(const std::string& partition, std::string* response = nullptr,
94 RetCode Flash(const std::string& partition, std::string* response = nullptr,
96 RetCode GetVar(const std::string& key, std::string* val,
98 RetCode GetVarAll(std::vector<std::string>* response);
99 RetCode Reboot(std::string* response = nullptr, std::vector<std::string>* info = nullptr);
100 RetCode RebootTo(std::string target, std::string* response = nullptr,
102 RetCode ResizePartition(const std::string& partition, const std::string& size);
103 RetCode SetActive(const std::string& slot, std::string* response = nullptr,
105 RetCode Upload(const std::string& outfile, std::string* response = nullptr,
109 RetCode FlashPartition(const std::string& partition, const std::vector<char>& data);
110 RetCode FlashPartition(const std::string& partition, int fd, uint32_t sz);
111 RetCode FlashPartition(const std::string& partition, sparse_file* s, uint32_t sz,
114 RetCode Partitions(std::vector<std::tuple<std::string, uint64_t>>* partitions);
115 RetCode Require(const std::string& var, const std::vector<std::string>& allowed, bool* reqmet,
120 static const std::string RCString(RetCode rc);
122 RetCode WaitForDisconnect();
128 RetCode RawCommand(const std::string& cmd, const std::string& message,
132 RetCode RawCommand(const std::string& cmd, std::string* response = nullptr,
136 RetCode DownloadCommand(uint32_t size, std::string* response = nullptr,
138 RetCode HandleResponse(std::string* response = nullptr,
146 RetCode SendBuffer(int fd, size_t size);
147 RetCode SendBuffer(const std::vector<char>& buf);
148 RetCode SendBuffer(const void* buf, size_t size);
150 RetCode ReadBuffer(std::vector<char>& buf);
151 RetCode ReadBuffer(void* buf, size_t size);
153 RetCode UploadInner(const std::string& outfile, std::string* response = nullptr,