Blob


1 /** Open file for Gemini response */
3 #include "utils.h"
4 #include <string>
6 #pragma once
9 namespace vostok
10 {
11 namespace open_file
12 {
15 enum Result
16 {
17 SUCCESS_FILE,
18 SUCCESS_DIRECTORY,
20 ERROR_NOT_EXIST,
21 ERROR,
22 };
24 Result open(
25 /* in */ int directory_fd,
26 /* in */ const std::string &path,
27 /* out */ UniqueFd &opened_fd // filled if OPENED or OPENED_DIRECTORY
28 );
31 } // namespace open_file
32 } // namespace vostok