summaryrefslogtreecommitdiff
path: root/libdrm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-05-30 12:29:45 +1000
committerDave Airlie <airlied@redhat.com>2008-05-30 12:29:45 +1000
commit514147e3f3180b46d3e9e6e906580fe232d4ad26 (patch)
tree90ca22225eebdcef83db47e831acaa6347d9f22c /libdrm
parent1542492b797fbdf4970e0213827e2f9887d6174d (diff)
drm: add encoder free function
Diffstat (limited to 'libdrm')
-rw-r--r--libdrm/xf86drmMode.c5
-rw-r--r--libdrm/xf86drmMode.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/libdrm/xf86drmMode.c b/libdrm/xf86drmMode.c
index 672a5e2a..78efe827 100644
--- a/libdrm/xf86drmMode.c
+++ b/libdrm/xf86drmMode.c
@@ -119,6 +119,11 @@ void drmModeFreeOutput(drmModeOutputPtr ptr)
}
+void drmModeFreeEncoder(drmModeEncoderPtr ptr)
+{
+ drmFree(ptr);
+}
+
/*
* ModeSetting functions.
*/
diff --git a/libdrm/xf86drmMode.h b/libdrm/xf86drmMode.h
index 601a6460..85e3d912 100644
--- a/libdrm/xf86drmMode.h
+++ b/libdrm/xf86drmMode.h
@@ -165,6 +165,7 @@ extern void drmModeFreeResources( drmModeResPtr ptr );
extern void drmModeFreeFB( drmModeFBPtr ptr );
extern void drmModeFreeCrtc( drmModeCrtcPtr ptr );
extern void drmModeFreeOutput( drmModeOutputPtr ptr );
+extern void drmModeFreeEncoder( drmModeEncoderPtr ptr );
/**
* Retrives all of the resources associated with a card.