xref: /aosp_15_r20/bootable/deprecated-ota/updater/mounts.h (revision acea8879c968027b49a027136800575dd9783ddf)
1*acea8879SAndroid Build Coastguard Worker /*
2*acea8879SAndroid Build Coastguard Worker  * Copyright (C) 2007 The Android Open Source Project
3*acea8879SAndroid Build Coastguard Worker  *
4*acea8879SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*acea8879SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*acea8879SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*acea8879SAndroid Build Coastguard Worker  *
8*acea8879SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*acea8879SAndroid Build Coastguard Worker  *
10*acea8879SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*acea8879SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*acea8879SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*acea8879SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*acea8879SAndroid Build Coastguard Worker  * limitations under the License.
15*acea8879SAndroid Build Coastguard Worker  */
16*acea8879SAndroid Build Coastguard Worker 
17*acea8879SAndroid Build Coastguard Worker #pragma once
18*acea8879SAndroid Build Coastguard Worker 
19*acea8879SAndroid Build Coastguard Worker struct MountedVolume;
20*acea8879SAndroid Build Coastguard Worker 
21*acea8879SAndroid Build Coastguard Worker bool scan_mounted_volumes();
22*acea8879SAndroid Build Coastguard Worker 
23*acea8879SAndroid Build Coastguard Worker MountedVolume* find_mounted_volume_by_mount_point(const char* mount_point);
24*acea8879SAndroid Build Coastguard Worker 
25*acea8879SAndroid Build Coastguard Worker int unmount_mounted_volume(MountedVolume* volume);
26