changeset 1754:1f7a6dc01100 libavformat

move networking #includes into separate file patch by Ramiro Polla angustia =a= arrozcru =d= no-ip =d= org
author mru
date Sun, 04 Feb 2007 17:05:44 +0000
parents d0a97c73ee97
children 41160bae24b5
files http.c network.h rtp.c rtp_h264.c rtpproto.c rtsp.c tcp.c udp.c
diffstat 8 files changed, 37 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- a/http.c	Fri Feb 02 17:54:50 2007 +0000
+++ b/http.c	Sun Feb 04 17:05:44 2007 +0000
@@ -20,11 +20,7 @@
  */
 #include "avformat.h"
 #include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+#include "network.h"
 
 #include "base64.h"
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/network.h	Sun Feb 04 17:05:44 2007 +0000
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2007 The FFmpeg Project.
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef NETWORK_H
+#define NETWORK_H
+
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+
+#endif
--- a/rtp.c	Fri Feb 02 17:54:50 2007 +0000
+++ b/rtp.c	Sun Feb 04 17:05:44 2007 +0000
@@ -23,11 +23,7 @@
 #include "bitstream.h"
 
 #include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+#include "network.h"
 
 #include "rtp_internal.h"
 #include "rtp_h264.h"
--- a/rtp_h264.c	Fri Feb 02 17:54:50 2007 +0000
+++ b/rtp_h264.c	Sun Feb 04 17:05:44 2007 +0000
@@ -41,12 +41,8 @@
 #include "bitstream.h"
 
 #include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
+#include "network.h"
 #include <assert.h>
-#include <arpa/inet.h>
-#include <netdb.h>
 
 #include "rtp_internal.h"
 #include "rtp_h264.h"
--- a/rtpproto.c	Fri Feb 02 17:54:50 2007 +0000
+++ b/rtpproto.c	Sun Feb 04 17:05:44 2007 +0000
@@ -22,11 +22,7 @@
 
 #include <unistd.h>
 #include <stdarg.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+#include "network.h"
 #include <fcntl.h>
 
 #define RTP_TX_BUF_SIZE  (64 * 1024)
--- a/rtsp.c	Fri Feb 02 17:54:50 2007 +0000
+++ b/rtsp.c	Sun Feb 04 17:05:44 2007 +0000
@@ -21,10 +21,7 @@
 #include "avformat.h"
 
 #include <unistd.h> /* for select() prototype */
-#include <sys/time.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
+#include "network.h"
 
 #include "rtp_internal.h"
 
--- a/tcp.c	Fri Feb 02 17:54:50 2007 +0000
+++ b/tcp.c	Sun Feb 04 17:05:44 2007 +0000
@@ -20,11 +20,7 @@
  */
 #include "avformat.h"
 #include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+#include "network.h"
 #include <sys/time.h>
 #include <fcntl.h>
 
--- a/udp.c	Fri Feb 02 17:54:50 2007 +0000
+++ b/udp.c	Sun Feb 04 17:05:44 2007 +0000
@@ -20,11 +20,7 @@
  */
 #include "avformat.h"
 #include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
+#include "network.h"
 
 #ifndef IPV6_ADD_MEMBERSHIP
 #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP