demux_lavf: Add support for uncompressed BGR24 pixfmt
[mplayer/glamo.git] / stream / url.h
blobc89d91a663ef7c54a8d3fa7b8d84971cd4622cc3
1 /*
2 * URL Helper
4 * Copyright (C) 2001 Bertrand Baudet <bertrand_baudet@yahoo.com>
6 * This file is part of MPlayer.
8 * MPlayer is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * MPlayer is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef MPLAYER_URL_H
24 #define MPLAYER_URL_H
26 //#define URL_DEBUG
28 typedef struct {
29 char *url;
30 char *noauth_url;
31 char *protocol;
32 char *hostname;
33 char *file;
34 unsigned int port;
35 char *username;
36 char *password;
37 } URL_t;
39 URL_t *url_redirect(URL_t **url, const char *redir);
40 URL_t* url_new(const char* url);
41 void url_free(URL_t* url);
43 void url_unescape_string(char *outbuf, const char *inbuf);
44 void url_escape_string(char *outbuf, const char *inbuf);
46 #ifdef URL_DEBUG
47 void url_debug(const URL_t* url);
48 #endif /* URL_DEBUG */
50 #endif /* MPLAYER_URL_H */