summaryrefslogtreecommitdiff
path: root/src/xine-engine/io_helper.h
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-26 05:19:47 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-26 05:19:47 +0000
commit1b23ad7e208929b8b99e37de64282f74070f37b6 (patch)
tree3b36d1df9b2f7357d2f541435bb4855ce9860ee5 /src/xine-engine/io_helper.h
parent8e0cafbd9c5afcbb083d891bb138313aac76b04a (diff)
downloadxine-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-engine/io_helper.h')
-rw-r--r--src/xine-engine/io_helper.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xine-engine/io_helper.h b/src/xine-engine/io_helper.h
index 09267f882..3b7cac17a 100644
--- a/src/xine-engine/io_helper.h
+++ b/src/xine-engine/io_helper.h
@@ -58,7 +58,7 @@
* XIO_ABORTED command aborted by an other thread
* XIO_TIMEOUT the file descriptor is not ready after timeout_msec milliseconds
*/
-int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec);
+int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec) XINE_PROTECTED;
/*
@@ -71,7 +71,7 @@ int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec);
*
* returns a socket descriptor or -1 if an error occured
*/
-int _x_io_tcp_connect(xine_stream_t *stream, const char *host, int port);
+int _x_io_tcp_connect(xine_stream_t *stream, const char *host, int port) XINE_PROTECTED;
/*
* wait for finish connection
@@ -87,7 +87,7 @@ int _x_io_tcp_connect(xine_stream_t *stream, const char *host, int port);
* XIO_ABORTED command aborted by an other thread
* XIO_TIMEOUT the file descriptor is not ready after timeout
*/
-int _x_io_tcp_connect_finish(xine_stream_t *stream, int fd, int timeout_msec);
+int _x_io_tcp_connect_finish(xine_stream_t *stream, int fd, int timeout_msec) XINE_PROTECTED;
/*
* read from tcp socket checking demux_action_pending
@@ -97,7 +97,7 @@ int _x_io_tcp_connect_finish(xine_stream_t *stream, int fd, int timeout_msec);
*
* aborts with zero if no data is available and *abort is set
*/
-off_t _x_io_tcp_read (xine_stream_t *stream, int s, char *buf, off_t todo);
+off_t _x_io_tcp_read (xine_stream_t *stream, int s, char *buf, off_t todo) XINE_PROTECTED;
/*
@@ -108,7 +108,7 @@ off_t _x_io_tcp_read (xine_stream_t *stream, int s, char *buf, off_t todo);
*
* aborts with zero if no data is available and *abort is set
*/
-off_t _x_io_tcp_write (xine_stream_t *stream, int s, char *buf, off_t todo);
+off_t _x_io_tcp_write (xine_stream_t *stream, int s, char *buf, off_t todo) XINE_PROTECTED;
/*
* read from a file descriptor checking demux_action_pending
@@ -118,7 +118,7 @@ off_t _x_io_tcp_write (xine_stream_t *stream, int s, char *buf, off_t todo);
*
* aborts with zero if no data is available and *abort is set
*/
-off_t _x_io_file_read (xine_stream_t *stream, int fd, char *buf, off_t todo);
+off_t _x_io_file_read (xine_stream_t *stream, int fd, char *buf, off_t todo) XINE_PROTECTED;
/*
@@ -129,13 +129,13 @@ off_t _x_io_file_read (xine_stream_t *stream, int fd, char *buf, off_t todo);
*
* aborts with zero if *abort is set
*/
-off_t _x_io_file_write (xine_stream_t *stream, int fd, char *buf, off_t todo);
+off_t _x_io_file_write (xine_stream_t *stream, int fd, char *buf, off_t todo) XINE_PROTECTED;
/*
* read a string from socket, return string length (same as strlen)
* the string is always '\0' terminated but given buffer size is never exceeded
* that is, _x_io_tcp_read_line(,,,X) <= (X-1) ; X > 0
*/
-int _x_io_tcp_read_line(xine_stream_t *stream, int sock, char *str, int size);
+int _x_io_tcp_read_line(xine_stream_t *stream, int sock, char *str, int size) XINE_PROTECTED;
#endif