Revision f3bfe388 libavformat/internal.h

View differences:

libavformat/internal.h
89 89
                          const char *filename, void *logctx,
90 90
                          unsigned int offset, unsigned int max_probe_size);
91 91

  
92
#if LIBAVFORMAT_VERSION_MAJOR < 53
92 93
/**
93
 * Splits a URL string into components. To reassemble components back into
94
 * a URL, use ff_url_join instead of using snprintf directly.
95
 *
96
 * The pointers to buffers for storing individual components may be null,
97
 * in order to ignore that component. Buffers for components not found are
98
 * set to empty strings. If the port isn't found, it is set to a negative
99
 * value.
100
 *
101
 * @see ff_url_join
102
 *
103
 * @param proto the buffer for the protocol
104
 * @param proto_size the size of the proto buffer
105
 * @param authorization the buffer for the authorization
106
 * @param authorization_size the size of the authorization buffer
107
 * @param hostname the buffer for the host name
108
 * @param hostname_size the size of the hostname buffer
109
 * @param port_ptr a pointer to store the port number in
110
 * @param path the buffer for the path
111
 * @param path_size the size of the path buffer
112
 * @param url the URL to split
94
 * @deprecated use av_url_split() instead
113 95
 */
114 96
void ff_url_split(char *proto, int proto_size,
115 97
                  char *authorization, int authorization_size,
......
117 99
                  int *port_ptr,
118 100
                  char *path, int path_size,
119 101
                  const char *url);
102
#endif
120 103

  
121 104
/**
122 105
 * Assembles a URL string from components. This is the reverse operation
123
 * of ff_url_split.
106
 * of av_url_split.
124 107
 *
125 108
 * Note, this requires networking to be initialized, so the caller must
126 109
 * ensure ff_network_init has been called.
127 110
 *
128
 * @see ff_url_split
111
 * @see av_url_split
129 112
 *
130 113
 * @param str the buffer to fill with the url
131 114
 * @param size the size of the str buffer

Also available in: Unified diff