blob: 0e350995eb4f4418ad6ae148f188d9a70050a3dd [file] [log] [blame]
Corina633099b2020-06-17 21:55:33 +01001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specic language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef MEDIAPROVIDER_JNI_UTILS_H_
18#define MEDIAPROVIDER_JNI_UTILS_H_
19
20#include <string>
21
22namespace mediaprovider {
23namespace fuse {
24
25/**
Martijn Coenenfc41bbf2021-09-24 10:14:16 +020026 * Returns true if the given path (ignoring case) is mounted for any
Corina762bb252020-07-09 10:30:33 +010027 * userid. Mounted paths are:
Corina633099b2020-06-17 21:55:33 +010028 * "/storage/emulated/<userid>/Android"
29 * "/storage/emulated/<userid>/Android/data"
30 * "/storage/emulated/<userid>/Android/obb" *
31 */
Martijn Coenenfc41bbf2021-09-24 10:14:16 +020032bool containsMount(const std::string& path);
Corina633099b2020-06-17 21:55:33 +010033
34} // namespace fuse
35} // namespace mediaprovider
36
37#endif // MEDIAPROVIDER_JNI_UTILS_H_