output: remove *_get_fd
There is no need to retrieve the fd of the compositor as we now have an eloop subsystem which takes care of event handling. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
2227350145
commit
a8dcede8c7
14
src/output.c
14
src/output.c
@ -1045,20 +1045,6 @@ int kmscon_compositor_use(struct kmscon_compositor *comp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns the DRM file descriptor or -1 on failure.
|
||||
* The DRM descriptor can be used to react on DRI events. This descriptor must
|
||||
* not be closed or modified in any way by the application. The only thing you
|
||||
* are allowed to do is watching for events via epoll, select or similar.
|
||||
*/
|
||||
int kmscon_compositor_get_fd(struct kmscon_compositor *comp)
|
||||
{
|
||||
if (!comp)
|
||||
return -1;
|
||||
|
||||
return comp->drm_fd;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns a pointer to the first output that is bound to the compositor. You
|
||||
* can use kmscon_output_next() to iterate through the single linked list of
|
||||
|
@ -109,7 +109,6 @@ int kmscon_compositor_wake_up(struct kmscon_compositor *comp);
|
||||
bool kmscon_compositor_is_asleep(struct kmscon_compositor *comp);
|
||||
int kmscon_compositor_use(struct kmscon_compositor *comp);
|
||||
|
||||
int kmscon_compositor_get_fd(struct kmscon_compositor *comp);
|
||||
struct kmscon_output *kmscon_compositor_get_outputs(
|
||||
struct kmscon_compositor *comp);
|
||||
int kmscon_compositor_refresh(struct kmscon_compositor *comp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user