Commit 6cb973e5 authored by Emil Velikov's avatar Emil Velikov Committed by Aaron Plattner
Browse files

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: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: default avatarAaron Plattner <aplattner@nvidia.com>
Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
parent 9d27eb0a
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment