Revision 725b3da9

View differences:

libavformat/avio.h
50 50
    int is_streamed;  /**< true if streamed (no seek possible), default = false */
51 51
    int max_packet_size;  /**< if non zero, the stream is packetized with this max packet size */
52 52
    void *priv_data;
53
    char *filename; /**< specified filename */
53
    char *filename; /**< specified URL */
54 54
} URLContext;
55 55

  
56 56
typedef struct URLPollEntry {
......
67 67

  
68 68
/**
69 69
 * Creates an URLContext for accessing to the resource indicated by
70
 * filename, and opens it using the URLProtocol up.
70
 * url, and opens it using the URLProtocol up.
71 71
 *
72 72
 * @param puc pointer to the location where, in case of success, the
73 73
 * function puts the pointer to the created URLContext
74
 * @param flags flags which control how the resource indicated by filename
74
 * @param flags flags which control how the resource indicated by url
75 75
 * is to be opened
76 76
 * @return 0 in case of success, a negative value corresponding to an
77 77
 * AVERROR code in case of failure
78 78
 */
79 79
int url_open_protocol (URLContext **puc, struct URLProtocol *up,
80
                       const char *filename, int flags);
80
                       const char *url, int flags);
81 81

  
82
int url_open(URLContext **h, const char *filename, int flags);
82
int url_open(URLContext **h, const char *url, int flags);
83 83

  
84 84
/**
85 85
 * Reads up to size bytes from the resource accessed by h, and stores
......
113 113
 */
114 114
int url_close(URLContext *h);
115 115

  
116
int url_exist(const char *filename);
116
int url_exist(const char *url);
117 117
int64_t url_filesize(URLContext *h);
118 118

  
119 119
/**
......
183 183

  
184 184
typedef struct URLProtocol {
185 185
    const char *name;
186
    int (*url_open)(URLContext *h, const char *filename, int flags);
186
    int (*url_open)(URLContext *h, const char *url, int flags);
187 187
    int (*url_read)(URLContext *h, unsigned char *buf, int size);
188 188
    int (*url_write)(URLContext *h, unsigned char *buf, int size);
189 189
    int64_t (*url_seek)(URLContext *h, int64_t pos, int whence);
......
383 383

  
384 384
/** @note when opened as read/write, the buffers are only used for
385 385
    writing */
386
int url_fopen(ByteIOContext **s, const char *filename, int flags);
386
int url_fopen(ByteIOContext **s, const char *url, int flags);
387 387
int url_fclose(ByteIOContext *s);
388 388
URLContext *url_fileno(ByteIOContext *s);
389 389

  

Also available in: Unified diff