• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 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 #ifndef WAYLAND_DRM_AUTH_SERVER_H
16 #define WAYLAND_DRM_AUTH_SERVER_H
17 
18 #include "wayland-server.h"
19 
20 /* *
21  * @brief init the wayland drm authenticate service
22  *
23  * it will create drm auth global to the wayland server, and handle the client authenticate resquest
24  *
25  * @param display Indicates the pointer of wayland display
26  *
27  * @param drmMasterFd Indicates the file descriptor of drm mast
28  *
29  * @return Returns <b>0</b> if the operation is successful; returns an error code defined in {@link DispErrCode}
30  * otherwise.
31  * @since 1.0
32  * @version 1.0
33  */
34 extern int InitWaylandDrmAuthService(struct wl_display *display, int drmMasterFd);
35 
36 /* *
37  * @brief deinit the wayland drm authenticate service
38  *
39  * it will destroy the drm auth global and free the memory of drm auth service
40  *
41  * otherwise.
42  * @since 1.0
43  * @version 1.0
44  */
45 extern void DeInitWaylandDrmAuthService();
46 
47 #endif // WAYLAND_DRM_AUTH_SERVER_H