Lines Matching refs:control
127 auto control = IncFs_Mount(details::c_str(backingPath), details::c_str(targetDir), options); in mount() local
128 return UniqueControl(control); in mount()
132 auto control = IncFs_Open(details::c_str(dir)); in open() local
133 return UniqueControl(control); in open()
140 inline ErrorCode setOptions(const Control& control, MountOptions newOptions) { in setOptions() argument
141 return IncFs_SetOptions(control, newOptions); in setOptions()
152 inline std::string root(const Control& control) { in root() argument
156 if (auto err = IncFs_Root(control, result.data(), &size); err < 0) { in root()
164 inline ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId fileId, in makeFile() argument
166 return IncFs_MakeFile(control, details::c_str(path), mode, fileId, params); in makeFile()
168 inline ErrorCode makeDir(const Control& control, std::string_view path, int mode) { in makeDir() argument
169 return IncFs_MakeDir(control, details::c_str(path), mode); in makeDir()
171 inline ErrorCode makeDirs(const Control& control, std::string_view path, int mode) { in makeDirs() argument
172 return IncFs_MakeDirs(control, details::c_str(path), mode); in makeDirs()
175 inline RawMetadata getMetadata(const Control& control, FileId fileId) { in getMetadata() argument
178 if (IncFs_GetMetadataById(control, fileId, metadata.data(), &size) < 0) { in getMetadata()
185 inline RawMetadata getMetadata(const Control& control, std::string_view path) { in getMetadata() argument
188 if (IncFs_GetMetadataByPath(control, details::c_str(path), metadata.data(), &size) < 0) { in getMetadata()
195 inline RawSignature getSignature(const Control& control, FileId fileId) { in getSignature() argument
198 if (IncFs_GetSignatureById(control, fileId, signature.data(), &size) < 0) { in getSignature()
205 inline RawSignature getSignature(const Control& control, std::string_view path) { in getSignature() argument
208 if (IncFs_GetSignatureByPath(control, details::c_str(path), signature.data(), &size) < 0) { in getSignature()
215 inline FileId getFileId(const Control& control, std::string_view path) { in getFileId() argument
216 return IncFs_GetId(control, details::c_str(path)); in getFileId()
219 inline ErrorCode link(const Control& control, std::string_view sourcePath, in link() argument
221 return IncFs_Link(control, details::c_str(sourcePath), details::c_str(targetPath)); in link()
224 inline ErrorCode unlink(const Control& control, std::string_view path) { in unlink() argument
225 return IncFs_Unlink(control, details::c_str(path)); in unlink()
228 inline WaitResult waitForPendingReads(const Control& control, std::chrono::milliseconds timeout, in waitForPendingReads() argument
236 IncFs_WaitForPendingReads(control, timeout.count(), pendingReadsBuffer->data(), &size); in waitForPendingReads()
247 inline WaitResult waitForPageReads(const Control& control, std::chrono::milliseconds timeout, in waitForPageReads() argument
256 IncFs_WaitForPageReads(control, timeout.count(), pageReadsBuffer->data(), &size); in waitForPageReads()
267 inline UniqueFd openForSpecialOps(const Control& control, FileId fileId) { in openForSpecialOps() argument
268 return UniqueFd(IncFs_OpenForSpecialOpsById(control, fileId)); in openForSpecialOps()
270 inline UniqueFd openForSpecialOps(const Control& control, std::string_view path) { in openForSpecialOps() argument
271 return UniqueFd(IncFs_OpenForSpecialOpsByPath(control, details::c_str(path))); in openForSpecialOps()