From a8dcede8c73361350257e8af482e0e4eb79da24a Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 11 Jan 2012 15:28:06 +0100 Subject: [PATCH] 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 --- src/output.c | 14 -------------- src/output.h | 1 - 2 files changed, 15 deletions(-) diff --git a/src/output.c b/src/output.c index 1149b89..de2325d 100644 --- a/src/output.c +++ b/src/output.c @@ -1046,20 +1046,6 @@ int kmscon_compositor_use(struct kmscon_compositor *comp) } /* - * 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 * outputs. diff --git a/src/output.h b/src/output.h index d80e926..719581d 100644 --- a/src/output.h +++ b/src/output.h @@ -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); -- 2.7.4