view libmpdemux/url.h @ 17893:aa38bf333f18

1.1230: Typo fix: "URLs to forces" --> "URLs to force" 1.1229: Allows the LIVE555 library to forces the client's port to be used... 1.1228: dwStart support for mencoder. 1.1227: This patch removes mmap support because it doesn't have any benefit. 1.1226: Rephrase telecine and film2pal mpegopts. 1.1225: Remove stray space. 1.1224: mention film2pal in -mpegopts 1.1223: -fixed-vo shall no longer be called BETA-CODE.
author kraymer
date Sat, 18 Mar 2006 20:02:47 +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