Commit 09854f8c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

tls: improve vlc_tls_(Read|Write) return type

parent 10de5cff
...@@ -91,13 +91,13 @@ VLC_API void vlc_tls_SessionDelete (vlc_tls_t *); ...@@ -91,13 +91,13 @@ VLC_API void vlc_tls_SessionDelete (vlc_tls_t *);
/** /**
* Receives data through a TLS session. * Receives data through a TLS session.
*/ */
VLC_API int vlc_tls_Read(vlc_tls_t *, void *buf, size_t len, bool waitall); VLC_API ssize_t vlc_tls_Read(vlc_tls_t *, void *buf, size_t len, bool waitall);
VLC_API char *vlc_tls_GetLine(vlc_tls_t *); VLC_API char *vlc_tls_GetLine(vlc_tls_t *);
/** /**
* Sends data through a TLS session. * Sends data through a TLS session.
*/ */
VLC_API int vlc_tls_Write(vlc_tls_t *, const void *buf, size_t len); VLC_API ssize_t vlc_tls_Write(vlc_tls_t *, const void *buf, size_t len);
/** /**
* Terminates a TLS session. * Terminates a TLS session.
......
...@@ -217,7 +217,7 @@ error: ...@@ -217,7 +217,7 @@ error:
return session; return session;
} }
int vlc_tls_Read(vlc_tls_t *session, void *buf, size_t len, bool waitall) ssize_t vlc_tls_Read(vlc_tls_t *session, void *buf, size_t len, bool waitall)
{ {
struct pollfd ufd; struct pollfd ufd;
...@@ -250,7 +250,7 @@ int vlc_tls_Read(vlc_tls_t *session, void *buf, size_t len, bool waitall) ...@@ -250,7 +250,7 @@ int vlc_tls_Read(vlc_tls_t *session, void *buf, size_t len, bool waitall)
} }
} }
int vlc_tls_Write(vlc_tls_t *session, const void *buf, size_t len) ssize_t vlc_tls_Write(vlc_tls_t *session, const void *buf, size_t len)
{ {
struct pollfd ufd; struct pollfd ufd;
......
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