2de4fa45c82035e860dc3e846b424e3bb5d0b8c1
[src/drm-lease-manager.git] / drm-lease-manager / drm-lease.h
1 /* Copyright 2020-2021 IGEL Co., Ltd.
2  *
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
16 #ifndef DRM_LEASE_H
17 #define DRM_LEASE_H
18 #include <stdint.h>
19
20 struct lease_handle {
21         char *name;
22         void *user_data;
23 };
24
25 struct connector_config {
26         char *name;
27 };
28
29 struct lease_config {
30         char *lease_name;
31
32         int ncids;
33         uint32_t *connector_ids;
34
35         int nconnectors;
36         struct connector_config *connectors;
37 };
38
39 #endif