• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 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 "iremote_broker.h"
22 #include "iremote_object.h"
23 #include "ibuffer_producer.h"
24 
25 #include "face_auth_defines.h"
26 
27 namespace OHOS {
28 namespace UserIam {
29 namespace FaceAuth {
30 class IFaceAuth : public IRemoteBroker {
31 public:
32     DECLARE_INTERFACE_DESCRIPTOR(u"ohos.faceauth.IFaceAuth");
33 
34     /**
35      * @brief Set buffer producer for enroll preview.
36      *
37      * @return 0 success, others failure.
38      */
39     virtual int32_t SetBufferProducer(sptr<IBufferProducer> &producer) = 0;
40 
41     enum {
42         FACE_AUTH_SET_BUFFER_PRODUCER = 1,
43     };
44 };
45 } // namespace FaceAuth
46 } // namespace UserIam
47 } // namespace OHOS
48 
49 #endif // IFACE_AUTH_H