[Base] Android content URI file descriptor opening
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#include "xenia/base/platform.h"
|
||||
#include "xenia/base/string.h"
|
||||
|
||||
namespace xe {
|
||||
@@ -122,6 +124,14 @@ struct FileInfo {
|
||||
bool GetInfo(const std::filesystem::path& path, FileInfo* out_info);
|
||||
std::vector<FileInfo> ListFiles(const std::filesystem::path& path);
|
||||
|
||||
#if XE_PLATFORM_ANDROID
|
||||
void AndroidInitialize();
|
||||
void AndroidShutdown();
|
||||
bool IsAndroidContentUri(const std::string_view source);
|
||||
int OpenAndroidContentFileDescriptor(const std::string_view uri,
|
||||
const char* mode);
|
||||
#endif // XE_PLATFORM_ANDROID
|
||||
|
||||
} // namespace filesystem
|
||||
} // namespace xe
|
||||
|
||||
|
||||
Reference in New Issue
Block a user