view stream/url.h @ 25372:9850c8b67ccc

Always enable largefile support by default The largefile configure option was disabled by default, but the enabled-by-default dvdread and dvdcss options force in on (dvdnav code also tries to enable it, but sets the variable too late so that is has no effect). Change configure to enable largefile support independently of other options unless explicitly disabled.
author uau
date Fri, 14 Dec 2007 22:02:48 +0000
parents 3f0d00abc073
children 4129c8cfa742
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_redirect(URL_t **url, const char *redir);
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 */