drm: add encoder free function
authorDave Airlie <airlied@redhat.com>
Fri, 30 May 2008 02:29:45 +0000 (12:29 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 30 May 2008 02:29:45 +0000 (12:29 +1000)
libdrm/xf86drmMode.c
libdrm/xf86drmMode.h

index 672a5e2ac609f10850e351bd2985c8fbadc09af6..78efe827c12f40ab555bfdc37f6e58b57c6f46cb 100644 (file)
@@ -119,6 +119,11 @@ void drmModeFreeOutput(drmModeOutputPtr ptr)
 
 }
 
+void drmModeFreeEncoder(drmModeEncoderPtr ptr)
+{
+       drmFree(ptr);
+}
+
 /*
  * ModeSetting functions.
  */
index 601a646075dacb82a8c136f180852aed9b8aaa91..85e3d912e94cbc13f68c979ea69550a8114c11a9 100644 (file)
@@ -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.