| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2007 The FFmpeg Project | 2 * Copyright (c) 2007 The FFmpeg Project |
| 3 * | 3 * |
| 4 * This file is part of FFmpeg. | 4 * This file is part of FFmpeg. |
| 5 * | 5 * |
| 6 * FFmpeg is free software; you can redistribute it and/or | 6 * FFmpeg is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2.1 of the License, or (at your option) any later version. | 9 * version 2.1 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 return 1; | 56 return 1; |
| 57 } | 57 } |
| 58 | 58 |
| 59 static inline void ff_network_close(void) | 59 static inline void ff_network_close(void) |
| 60 { | 60 { |
| 61 #if HAVE_WINSOCK2_H | 61 #if HAVE_WINSOCK2_H |
| 62 WSACleanup(); | 62 WSACleanup(); |
| 63 #endif | 63 #endif |
| 64 } | 64 } |
| 65 | 65 |
| 66 #if !HAVE_INET_ATON | 66 int ff_inet_aton (const char * str, struct in_addr * add); |
| 67 /* in os_support.c */ | |
| 68 int inet_aton (const char * str, struct in_addr * add); | |
| 69 #endif | |
| 70 | 67 |
| 71 #if !HAVE_STRUCT_SOCKADDR_STORAGE | 68 #if !HAVE_STRUCT_SOCKADDR_STORAGE |
| 72 struct sockaddr_storage { | 69 struct sockaddr_storage { |
| 73 #if HAVE_STRUCT_SOCKADDR_SA_LEN | 70 #if HAVE_STRUCT_SOCKADDR_SA_LEN |
| 74 uint8_t ss_len; | 71 uint8_t ss_len; |
| 75 uint8_t ss_family; | 72 uint8_t ss_family; |
| 76 #else | 73 #else |
| 77 uint16_t ss_family; | 74 uint16_t ss_family; |
| 78 #endif | 75 #endif |
| 79 char ss_pad1[6]; | 76 char ss_pad1[6]; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 #define NI_DGRAM 16 | 137 #define NI_DGRAM 16 |
| 141 #endif | 138 #endif |
| 142 | 139 |
| 143 #if !HAVE_GETADDRINFO | 140 #if !HAVE_GETADDRINFO |
| 144 int ff_getaddrinfo(const char *node, const char *service, | 141 int ff_getaddrinfo(const char *node, const char *service, |
| 145 const struct addrinfo *hints, struct addrinfo **res); | 142 const struct addrinfo *hints, struct addrinfo **res); |
| 146 void ff_freeaddrinfo(struct addrinfo *res); | 143 void ff_freeaddrinfo(struct addrinfo *res); |
| 147 int ff_getnameinfo(const struct sockaddr *sa, int salen, | 144 int ff_getnameinfo(const struct sockaddr *sa, int salen, |
| 148 char *host, int hostlen, | 145 char *host, int hostlen, |
| 149 char *serv, int servlen, int flags); | 146 char *serv, int servlen, int flags); |
| 147 const char *ff_gai_strerror(int ecode); |
| 150 #define getaddrinfo ff_getaddrinfo | 148 #define getaddrinfo ff_getaddrinfo |
| 151 #define freeaddrinfo ff_freeaddrinfo | 149 #define freeaddrinfo ff_freeaddrinfo |
| 152 #define getnameinfo ff_getnameinfo | 150 #define getnameinfo ff_getnameinfo |
| 151 #define gai_strerror ff_gai_strerror |
| 153 #endif | 152 #endif |
| 154 | 153 |
| 155 #endif /* AVFORMAT_NETWORK_H */ | 154 #endif /* AVFORMAT_NETWORK_H */ |
| OLD | NEW |