view libmpdemux/url.h @ 17362:9179e0c4340b

1.1201: Explain DVDREAD_NOKEYS environment variable. 1.1200: [does not apply / previously applied] 1.1199: Expand the configuration file section to include MEncoder examples. 1.1198: [does not apply] 1.1197: removed frame reording option 1.1196: small wording/spelling/syntax fixes 1.1195: add bitexact's lavd flag desc. 1.1194: [left out for later work on x264!]
author kraymer
date Wed, 11 Jan 2006 23:43:55 +0000
parents a9b7b6055563
children
line wrap: on
line source

/* 
 * URL Helper
 * by Bertrand Baudet <bertrand_baudet@yahoo.com>
 * (C) 2001, MPlayer team.
 */

#ifndef __URL_H
#define __URL_H

//#define __URL_DEBUG

typedef struct {
	char *url;
	char *protocol;
	char *hostname;
	char *file;
	unsigned int port;
	char *username;
	char *password;
} URL_t;

URL_t* url_new(const char* url);
void   url_free(URL_t* url);

void url_unescape_string(char *outbuf, const char *inbuf);
void url_escape_string(char *outbuf, const char *inbuf);

#ifdef __URL_DEBUG
void url_debug(const URL_t* url);
#endif // __URL_DEBUG

#endif // __URL_H