Add plane setting to connector configuration
[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 <stdbool.h>
19 #include <stdint.h>
20
21 struct lease_handle {
22         char *name;
23         void *user_data;
24 };
25
26 struct connector_config {
27         char *name;
28         bool optional;
29         int nplanes;
30         uint32_t *planes;
31 };
32
33 struct lease_config {
34         char *lease_name;
35
36         int ncids;
37         uint32_t *connector_ids;
38
39         int nconnectors;
40         struct connector_config *connectors;
41 };
42
43 #endif