• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 */
15sequenceable OHOS.Scan.SaneControlParam;
16sequenceable OHOS.Scan.SaneParameters;
17sequenceable OHOS.Scan.SaneOptionDescriptor;
18sequenceable OHOS.Scan.SaneDevice;
19sequenceable OHOS.Scan.SaneOutParam;
20sequenceable OHOS.Scan.SanePictureData;
21
22interface OHOS.Scan.ISaneBackends {
23    void SaneInit([out] int status);
24    void SaneExit();
25    void SaneOpen([in] String scannerId, [out] int status);
26    void SaneClose([in] String scannerId);
27    void SaneGetOptionDescriptor([in] String scannerId, [in] int saneOption, [out] SaneOptionDescriptor saneOptDes, [out] int status);
28    void SaneStart([in] String scannerId, [out] int status);
29    void SaneGetParameters([in] String scannerId, [out] SaneParameters spm, [out] int status);
30    void SaneCancel([in] String scannerId);
31    void SaneGetDevices([out] SaneDevice[] deviceInfos, [out] int status);
32    void SaneControlOption([in] String scannerId, [in] SaneControlParam controlParam, [out] SaneOutParam outParam, [out] int status);
33    void SaneRead([in] String scannerId, [in] int buflen, [out] SanePictureData pictureData, [out] int status);
34    void UnloadSystemAbility();
35}