Blob
1 /** Open file for Gemini response */3 #include "utils.h"4 #include <string>6 #pragma once9 namespace vostok10 {11 namespace open_file12 {15 enum Result16 {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_DIRECTORY28 );31 } // namespace open_file32 } // namespace vostok