[vlc-devel] commit: Remove unused vlc_(send|recv)msg ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Apr 12 11:51:39 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 12 12:51:21 2009 +0300| [15c3e9e9e742ad592d219c820d9dc31b973b02cf] | committer: Rémi Denis-Courmont
Remove unused vlc_(send|recv)msg
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15c3e9e9e742ad592d219c820d9dc31b973b02cf
---
include/vlc_network.h | 6 ------
src/libvlccore.sym | 2 --
src/network/io.c | 15 ---------------
src/network/winsock.c | 2 ++
4 files changed, 2 insertions(+), 23 deletions(-)
diff --git a/include/vlc_network.h b/include/vlc_network.h
index 0cd5029..c3cc983 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -60,9 +60,6 @@ struct msghdr
int msg_flags;
};
-#define sendmsg vlc_sendmsg
-#define recvmsg vlc_recvmsg
-
# ifndef IPV6_V6ONLY
# define IPV6_V6ONLY 27
# endif
@@ -80,9 +77,6 @@ struct msghdr
# define net_errno errno
#endif
-VLC_EXPORT( ssize_t, vlc_sendmsg, ( int, struct msghdr *, int ) );
-VLC_EXPORT( ssize_t, vlc_recvmsg, ( int, struct msghdr *, int ) );
-
# ifdef __cplusplus
extern "C" {
# endif
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 3e04bb6..af5a6b1 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -475,7 +475,6 @@ __vlc_object_set_destructor
vlc_plugin_set
vlc_poll
vlc_rand_bytes
-vlc_recvmsg
vlc_release
vlc_restorecancel
vlc_savecancel
@@ -484,7 +483,6 @@ vlc_sd_GetNames
vlc_sdp_Start
vlc_sd_Start
vlc_sd_Stop
-vlc_sendmsg
vlc_testcancel
vlc_thread_create
__vlc_thread_join
diff --git a/src/network/io.c b/src/network/io.c
index 2c1c80e..6b62d90 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -564,18 +564,3 @@ ssize_t __net_vaPrintf( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
return i_ret;
}
-
-#ifdef WIN32
- /* vlc_sendmsg, vlc_recvmsg Defined in winsock.c */
-#else /* !WIN32 */
-ssize_t vlc_sendmsg (int s, struct msghdr *hdr, int flags)
-{
- return sendmsg (s, hdr, flags);
-}
-
-ssize_t vlc_recvmsg (int s, struct msghdr *hdr, int flags)
-{
- return recvmsg (s, hdr, flags);
-}
-#endif /* WIN32 */
-
diff --git a/src/network/winsock.c b/src/network/winsock.c
index 977f62e..dd7f598 100644
--- a/src/network/winsock.c
+++ b/src/network/winsock.c
@@ -148,6 +148,7 @@ const char *net_strerror( int value )
return "Unknown network stack error";
}
+#if 0
ssize_t vlc_sendmsg (int s, struct msghdr *hdr, int flags)
{
/* WSASendMsg would be more straightforward, and would support ancilliary
@@ -208,3 +209,4 @@ ssize_t vlc_recvmsg (int s, struct msghdr *hdr, int flags)
#endif
return -1;
}
+#endif
More information about the vlc-devel
mailing list