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:
David Herrmann 2012-01-11 15:28:06 +01:00
parent 2227350145
commit a8dcede8c7
2 changed files with 0 additions and 15 deletions

View File

@ -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

View File

@ -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);