1/*
2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License") = 0;
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
16#ifndef IFACE_AUTH_H
17#define IFACE_AUTH_H
18#include <list>
19#include <vector>
20
21#include "ibuffer_producer.h"
22#include "iremote_broker.h"
23#include "iremote_object.h"
24
25#include "face_auth_defines.h"
26#include "iface_auth_ipc_interface_code.h"
27
28namespace OHOS {
29namespace UserIam {
30namespace FaceAuth {
31class IFaceAuth : public IRemoteBroker {
32public:
33    DECLARE_INTERFACE_DESCRIPTOR(u"ohos.faceauth.IFaceAuth");
34
35    /**
36     * @brief Set buffer producer for enroll preview.
37     *
38     * @return 0 success, others failure.
39     */
40    virtual int32_t SetBufferProducer(sptr<IBufferProducer> &producer) = 0;
41};
42} // namespace FaceAuth
43} // namespace UserIam
44} // namespace OHOS
45
46#endif // IFACE_AUTH_H
47