Browse Source

move networking #includes into separate file

patch by Ramiro Polla angustia =a= arrozcru =d= no-ip =d= org

Originally committed as revision 7817 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Ramiro Polla Måns Rullgård 18 years ago
parent
commit
42572ef53f
8 changed files with 37 additions and 34 deletions
  1. +1
    -5
      libavformat/http.c
  2. +30
    -0
      libavformat/network.h
  3. +1
    -5
      libavformat/rtp.c
  4. +1
    -5
      libavformat/rtp_h264.c
  5. +1
    -5
      libavformat/rtpproto.c
  6. +1
    -4
      libavformat/rtsp.c
  7. +1
    -5
      libavformat/tcp.c
  8. +1
    -5
      libavformat/udp.c

+ 1
- 5
libavformat/http.c View File

@@ -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"



+ 30
- 0
libavformat/network.h View File

@@ -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

+ 1
- 5
libavformat/rtp.c View File

@@ -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"


+ 1
- 5
libavformat/rtp_h264.c View File

@@ -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"


+ 1
- 5
libavformat/rtpproto.c View File

@@ -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)


+ 1
- 4
libavformat/rtsp.c View File

@@ -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"



+ 1
- 5
libavformat/tcp.c View File

@@ -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>



+ 1
- 5
libavformat/udp.c View File

@@ -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


Loading…
Cancel
Save