diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-26 05:19:47 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-26 05:19:47 +0000 |
commit | 1b23ad7e208929b8b99e37de64282f74070f37b6 (patch) | |
tree | 3b36d1df9b2f7357d2f541435bb4855ce9860ee5 /src/xine-utils/xine_buffer.h | |
parent | 8e0cafbd9c5afcbb083d891bb138313aac76b04a (diff) | |
download | xine-lib-1b23ad7e208929b8b99e37de64282f74070f37b6.tar.gz xine-lib-1b23ad7e208929b8b99e37de64282f74070f37b6.tar.bz2 |
Use protected visibility for all the functions exported by libxine.so, so that their binding is local to the library (has a similar effect to -Bsymbolic, but will work better with hidden visibility enabled, that is step two).
CVS patchset: 8289
CVS date: 2006/09/26 05:19:47
Diffstat (limited to 'src/xine-utils/xine_buffer.h')
-rw-r--r-- | src/xine-utils/xine_buffer.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/xine-utils/xine_buffer.h b/src/xine-utils/xine_buffer.h index 197807d57..02a9e2cb1 100644 --- a/src/xine-utils/xine_buffer.h +++ b/src/xine-utils/xine_buffer.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_buffer.h,v 1.6 2006/06/23 18:24:22 dsalt Exp $ + * $Id: xine_buffer.h,v 1.7 2006/09/26 05:19:49 dgp85 Exp $ * * * generic dynamic buffer functions. The goals @@ -64,40 +64,40 @@ * chunk_size bytes. This will prevent permanent * reallocation on slow growing buffers. */ -void *xine_buffer_init(int chunk_size); +void *xine_buffer_init(int chunk_size) XINE_PROTECTED; /* * frees a buffer, the macro ensures, that a freed * buffer pointer is set to NULL */ #define xine_buffer_free(buf) buf=_xine_buffer_free(buf) -void *_xine_buffer_free(void *buf); +void *_xine_buffer_free(void *buf) XINE_PROTECTED; /* * duplicates a buffer */ -void *xine_buffer_dup(const void *buf); +void *xine_buffer_dup(const void *buf) XINE_PROTECTED; /* * will copy len bytes of data into buf at position index. */ #define xine_buffer_copyin(buf,i,data,len) \ buf=_xine_buffer_copyin(buf,i,data,len) -void *_xine_buffer_copyin(void *buf, int index, const void *data, int len); +void *_xine_buffer_copyin(void *buf, int index, const void *data, int len) XINE_PROTECTED; /* * will copy len bytes out of buf+index into data. * no checks are made in data. It is treated as an ordinary * user-malloced data chunk. */ -void xine_buffer_copyout(const void *buf, int index, void *data, int len); +void xine_buffer_copyout(const void *buf, int index, void *data, int len) XINE_PROTECTED; /* * set len bytes in buf+index to b. */ #define xine_buffer_set(buf,i,b,len) \ buf=_xine_buffer_set(buf,i,b,len) -void *_xine_buffer_set(void *buf, int index, uint8_t b, int len); +void *_xine_buffer_set(void *buf, int index, uint8_t b, int len) XINE_PROTECTED; /* * concatenates given buf (which should contain a null terminated string) @@ -105,26 +105,26 @@ void *_xine_buffer_set(void *buf, int index, uint8_t b, int len); */ #define xine_buffer_strcat(buf,data) \ buf=_xine_buffer_strcat(buf,data) -void *_xine_buffer_strcat(void *buf, const char *data); +void *_xine_buffer_strcat(void *buf, const char *data) XINE_PROTECTED; /* * copies given string to buf+index */ #define xine_buffer_strcpy(buf,index,data) \ buf=_xine_buffer_strcpy(buf,index,data) -void *_xine_buffer_strcpy(void *buf, int index, const char *data); +void *_xine_buffer_strcpy(void *buf, int index, const char *data) XINE_PROTECTED; /* * returns a pointer to the first occurence of ch. * note, that the returned pointer cannot be used * in any other xine_buffer_* functions. */ -char *xine_buffer_strchr(const void *buf, int ch); +char *xine_buffer_strchr(const void *buf, int ch) XINE_PROTECTED; /* * get allocated memory size */ -int xine_buffer_get_size(const void *buf); +int xine_buffer_get_size(const void *buf) XINE_PROTECTED; /* * ensures a specified buffer size if the user want to @@ -133,6 +133,6 @@ int xine_buffer_get_size(const void *buf); */ #define xine_buffer_ensure_size(buf,data) \ buf=_xine_buffer_ensure_size(buf,data) -void *_xine_buffer_ensure_size(void *buf, int size); +void *_xine_buffer_ensure_size(void *buf, int size) XINE_PROTECTED; #endif |