src/uri.h File Reference

#include <stdbool.h>

Go to the source code of this file.

Functions

bool uri_has_scheme (const char *uri)
 Checks whether the specified URI has a schema in the form "scheme://".
const char * uri_get_suffix (const char *uri)
char * uri_remove_auth (const char *uri)
 Removes HTTP username and password from the URI.

Function Documentation

const char* uri_get_suffix ( const char *  uri  ) 
bool uri_has_scheme ( const char *  uri  ) 

Checks whether the specified URI has a schema in the form "scheme://".

char* uri_remove_auth ( const char *  uri  ) 

Removes HTTP username and password from the URI.

This may be useful for displaying an URI without disclosing secrets. Returns NULL if nothing needs to be removed, or if the URI is not recognized.

Generated on Mon Aug 2 17:09:37 2010 for MPD by  doxygen 1.6.3