1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16interface OHOS.FileManagement.Backup.IExtension{ 17 [ipccode 1] void GetFileHandleWithUniqueFd([in] String fileName, [out] int getFileHandleErrCode, [out] FileDescriptor fd); 18 [ipccode 2] void HandleClear(); 19 [ipccode 3] void HandleBackup([in] boolean isClearData); 20 [ipccode 4] void PublishFile([in] String fileName); 21 [ipccode 5] void HandleRestore([in] boolean isClearData); 22 [ipccode 6] void GetIncrementalFileHandle([in] String fileName, 23 [out] FileDescriptor fd, [out] FileDescriptor reportFd, [out] int fdErrCode); 24 [ipccode 7] void PublishIncrementalFile([in] String fileName); 25 [ipccode 8] void HandleIncrementalBackup([in] FileDescriptor incrementalFd, [in] FileDescriptor manifestFd); 26 [ipccode 9] void IncrementalOnBackup([in] boolean isClearData); 27 [ipccode 10] void GetIncrementalBackupFileHandle([out] FileDescriptor fd, [out] FileDescriptor reportFd); 28 [ipccode 11] void GetBackupInfo([out] String getBackupInfoResult); 29 [ipccode 12] void UpdateFdSendRate([in] String bundleName, [in] int sendRate); 30 [ipccode 13] void User0OnBackup(); 31 [ipccode 14] void UpdateDfxInfo([in] long uniqId, [in] unsigned int extConnectSpend, [in] String bundleName); 32 [ipccode 15] void CleanBundleTempDir(); 33 [ipccode 16] void HandleOnRelease([in] int scenario); 34 [ipccode 17] void HandleGetCompatibilityInfo([in] String extInfo, [in] int scenario, 35 [out] String compatibilityInfo); 36}