[Libva] [PATCH] Add ATTRIBUTE_HIDDEN helper

Gwenole Beauchesne gbeauchesne at splitted-desktop.com
Thu Sep 10 21:27:49 PDT 2009


Hi,

This patch adds ATTRIBUTE_HIDDEN defined as  
__attribute__((visibility("hidden"))) wherever available.

The aim is to not expose private VA API, i.e. internal functions.  
Candidates are functions like dri_get_drawable(), dri_swap_buffer(),  
etc. Probably VA_*() functions too but I noticed one day that GMA500  
used them? (or my backtrace was broken).

Usage:
<usual function declaration> ATTRIBUTE_HIDDEN;

e.g. int some_function(void) ATTRIBUTE_HIDDEN;

Regards,
Gwenole.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 102_attribute_visibility.patch
Type: application/octet-stream
Size: 1777 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/libva/attachments/20090911/a84e0b99/attachment.obj 
-------------- next part --------------



More information about the Libva mailing list