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/ring_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/ring_buffer.h')
-rw-r--r-- | src/xine-utils/ring_buffer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xine-utils/ring_buffer.h b/src/xine-utils/ring_buffer.h index ece5e7beb..fc826ba21 100644 --- a/src/xine-utils/ring_buffer.h +++ b/src/xine-utils/ring_buffer.h @@ -17,24 +17,24 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: ring_buffer.h,v 1.2 2006/01/27 19:37:15 tmattern Exp $ + * $Id: ring_buffer.h,v 1.3 2006/09/26 05:19:49 dgp85 Exp $ * * Fifo + Ring Buffer */ typedef struct xine_ring_buffer_s xine_ring_buffer_t; /* Creates a new ring buffer */ -xine_ring_buffer_t *xine_ring_buffer_new(size_t size); +xine_ring_buffer_t *xine_ring_buffer_new(size_t size) XINE_PROTECTED; /* Deletes a ring buffer */ -void xine_ring_buffer_delete(xine_ring_buffer_t *ring_buffer); +void xine_ring_buffer_delete(xine_ring_buffer_t *ring_buffer) XINE_PROTECTED; /* Returns a new chunk of the specified size */ /* Might block if the ring buffer is full */ -void *xine_ring_buffer_alloc(xine_ring_buffer_t *ring_buffer, size_t size); +void *xine_ring_buffer_alloc(xine_ring_buffer_t *ring_buffer, size_t size) XINE_PROTECTED; /* Put a chunk into the ring */ -void xine_ring_buffer_put(xine_ring_buffer_t *ring_buffer, void *chunk); +void xine_ring_buffer_put(xine_ring_buffer_t *ring_buffer, void *chunk) XINE_PROTECTED; /* Get a chunk of a specified size from the ring buffer * Might block if the ring buffer is empty @@ -43,15 +43,15 @@ void xine_ring_buffer_put(xine_ring_buffer_t *ring_buffer, void *chunk); * rsize is not equal to size at the end of stream, the caller MUST check * rsize value. */ -void *xine_ring_buffer_get(xine_ring_buffer_t *ring_buffer, size_t size, size_t *rsize); +void *xine_ring_buffer_get(xine_ring_buffer_t *ring_buffer, size_t size, size_t *rsize) XINE_PROTECTED; /* Releases the chunk, makes memory available for the alloc function */ -void xine_ring_buffer_release(xine_ring_buffer_t *ring_buffer, void *chunk); +void xine_ring_buffer_release(xine_ring_buffer_t *ring_buffer, void *chunk) XINE_PROTECTED; /* Closes the ring buffer * The writer uses this function to signal the end of stream to the reader. * The reader MUST check the rsize value returned by the get function. */ -void xine_ring_buffer_close(xine_ring_buffer_t *ring_buffer); +void xine_ring_buffer_close(xine_ring_buffer_t *ring_buffer) XINE_PROTECTED; |