Fix vf_tcdump's compilation
[mplayer/kovensky.git] / stream / url.h
blobfab81ecacea76f6733f1320ec748b67387d162a7
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 *protocol;
31 char *hostname;
32 char *file;
33 unsigned int port;
34 char *username;
35 char *password;
36 } URL_t;
38 URL_t *url_redirect(URL_t **url, const char *redir);
39 URL_t* url_new(const char* url);
40 void url_free(URL_t* url);
42 void url_unescape_string(char *outbuf, const char *inbuf);
43 void url_escape_string(char *outbuf, const char *inbuf);
45 #ifdef URL_DEBUG
46 void url_debug(const URL_t* url);
47 #endif /* URL_DEBUG */
49 #endif /* MPLAYER_URL_H */