Add 'optional' property 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 };
30
31 struct lease_config {
32         char *lease_name;
33
34         int ncids;
35         uint32_t *connector_ids;
36
37         int nconnectors;
38         struct connector_config *connectors;
39 };
40
41 #endif