diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2014-07-19 11:01:47 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2014-07-19 10:40:32 -0700 |
commit | 6cb973e59d7b3fa50404d9d0ec30476ad1753bfd (patch) | |
tree | aadf6e2a29a5713903d0c444b6917cfdb2961b4a | |
parent | 9d27eb0a3947603c061607b94515e906d47c1b8a (diff) |
vdpau: do not export _vdp_DRI2* functions
Neither one is part of the public API, thus should never be used outside
of the library itself.
Add macro PRIVATE, that is used to annotate the function visibility by
setting __attribute__((visibility("hidden"))).
v2: Provide only PRIVATE macro. Requested by Aaron.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r-- | src/mesa_dri2.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mesa_dri2.h b/src/mesa_dri2.h index 09bde8c..369b271 100644 --- a/src/mesa_dri2.h +++ b/src/mesa_dri2.h @@ -37,17 +37,24 @@ #include <X11/extensions/dri2tokens.h> -extern Bool +#if (defined(__GNUC__) && __GNUC__ >= 4) + #define PRIVATE __attribute__ ((visibility("hidden"))) +#else + #define PRIVATE +#endif + + +PRIVATE extern Bool _vdp_DRI2QueryExtension(Display * display, int *eventBase, int *errorBase); -extern Bool +PRIVATE extern Bool _vdp_DRI2QueryVersion(Display * display, int *major, int *minor); -extern Bool +PRIVATE extern Bool _vdp_DRI2Connect(Display * display, XID window, char **driverName, char **deviceName); -extern void +PRIVATE extern void _vdp_DRI2RemoveExtension(Display * display); #endif |