blob: 884ccb0e66d7400b58ccc5cd379f00718f96a48f [file] [log] [blame]
Weston Carvalho6ab20652024-12-03 15:21:45 -06001/*
2 * Copyright (C) 2024 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 specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _VENDOR_VOLD_NATIVE_SERVICE_H_
18#define _VENDOR_VOLD_NATIVE_SERVICE_H_
19
20#include <android/system/vold/BnVold.h>
21#include <android/system/vold/CheckpointingState.h>
22#include <android/system/vold/IVoldCheckpointListener.h>
23
24namespace android::vold {
25
26class VendorVoldNativeService : public android::system::vold::BnVold {
27 public:
28 /** Start the service, but if it's not declared, give up and return OK. */
29 static status_t try_start();
30
31 binder::Status registerCheckpointListener(
32 const sp<android::system::vold::IVoldCheckpointListener>& listener,
33 android::system::vold::CheckpointingState* _aidl_return) final;
34};
35
36} // namespace android::vold
37
38#endif // _VENDOR_VOLD_NATIVE_SERVICE_H_