summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-09-18 17:30:31 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2014-10-08 16:10:57 +0800
commitda462b3b26999edef7a9a5691feeec1a054ce9fd (patch)
tree11440937e8bc164f78196c09292fcd72d380c8f6
parentbb3a6e2f182869229e733b588dc398671f7f11c7 (diff)
va_x11: hide private symbols
The following are not part of the API thus should be hidden. - dri2Close - VA_FGLRXGetClientDriverName - VA_NVCTRLQueryDirectRenderingCapable - VA_NVCTRLGetClientDriverName Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--va/x11/dri2_util.c2
-rw-r--r--va/x11/va_fglrx.c1
-rw-r--r--va/x11/va_fglrx.h1
-rw-r--r--va/x11/va_nvctrl.c1
-rw-r--r--va/x11/va_nvctrl.h2
5 files changed, 6 insertions, 1 deletions
diff --git a/va/x11/dri2_util.c b/va/x11/dri2_util.c
index 0a2ac45..9f0dc76 100644
--- a/va/x11/dri2_util.c
+++ b/va/x11/dri2_util.c
@@ -161,7 +161,7 @@ dri2GetRenderingBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable)
return &dri2_drawable->buffers[dri2_drawable->front_index];
}
-void
+static void
dri2Close(VADriverContextP ctx)
{
struct dri_state *dri_state = (struct dri_state *)ctx->drm_state;
diff --git a/va/x11/va_fglrx.c b/va/x11/va_fglrx.c
index 77149cb..058e23d 100644
--- a/va/x11/va_fglrx.c
+++ b/va/x11/va_fglrx.c
@@ -22,6 +22,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#include "sysdeps.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/va/x11/va_fglrx.h b/va/x11/va_fglrx.h
index 6616044..93ddd4b 100644
--- a/va/x11/va_fglrx.h
+++ b/va/x11/va_fglrx.h
@@ -27,6 +27,7 @@
#include <X11/Xlib.h>
+DLL_HIDDEN
Bool VA_FGLRXGetClientDriverName( Display *dpy, int screen,
int *ddxDriverMajorVersion, int *ddxDriverMinorVersion,
int *ddxDriverPatchVersion, char **clientDriverName );
diff --git a/va/x11/va_nvctrl.c b/va/x11/va_nvctrl.c
index b14db47..20c63d5 100644
--- a/va/x11/va_nvctrl.c
+++ b/va/x11/va_nvctrl.c
@@ -22,6 +22,7 @@
*/
#define _GNU_SOURCE 1
+#include "sysdeps.h"
#include <string.h>
#define NEED_REPLIES
diff --git a/va/x11/va_nvctrl.h b/va/x11/va_nvctrl.h
index c137b86..3617537 100644
--- a/va/x11/va_nvctrl.h
+++ b/va/x11/va_nvctrl.h
@@ -26,9 +26,11 @@
#include <X11/Xlib.h>
+DLL_HIDDEN
Bool VA_NVCTRLQueryDirectRenderingCapable( Display *dpy, int screen,
Bool *isCapable );
+DLL_HIDDEN
Bool VA_NVCTRLGetClientDriverName( Display *dpy, int screen,
int *ddxDriverMajorVersion, int *ddxDriverMinorVersion,
int *ddxDriverPatchVersion, char **clientDriverName );