1 /* Copyright 2020-2021 IGEL 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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef LEASE_SERVER_H
17 #define LEASE_SERVER_H
20 #include "drm-lease.h"
27 LS_REQ_CLIENT_DISCONNECT,
31 struct lease_handle *lease_handle;
32 struct ls_client *client;
33 enum ls_req_type type;
36 struct ls *ls_create(struct lease_handle **lease_handles, int count);
37 void ls_destroy(struct ls *ls);
39 bool ls_get_request(struct ls *ls, struct ls_req *req);
40 bool ls_send_fd(struct ls *ls, struct ls_client *client, int fd);
42 void ls_disconnect_client(struct ls *ls, struct ls_client *client);