- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files
- Examples

Data Structures | Typedefs | Functions
Efreet_Uri: The FDO URI Specification functions
Efreet

## Data Structures
struct | Efreet_Uri
| Efreet_Uri. More...

## Typedefs
typedef struct Efreet_Uri | Efreet_Uri
| Efreet_Uri.

## Functions
const char * | efreet_uri_encode (Efreet_Uri *uri)
| Get the string rapresentation of the given uri struct escaping illegal caracters. Remember to free the string with eina_stringshare_del() when you don't need it anymore. More...
Efreet_Uri * | efreet_uri_decode (const char *val)
| Read a single uri and return an Efreet_Uri struct. If there's no hostname in the uri then the hostname parameter will be NULL. All the uri escaped chars will be converted to normal. More...
void | efreet_uri_free (Efreet_Uri *uri)
| Free the given uri structure. More...

## Detailed Description

## Function Documentation

const char* efreet_uri_encode | ( | Efreet_Uri * | uri | ) |

Get the string rapresentation of the given uri struct escaping illegal caracters. Remember to free the string with eina_stringshare_del() when you don't need it anymore.

Parameters

  uri | Create an URI string from an Efreet_Uri struct

Returns
  The string rapresentation of uri (ex: 'file:///home/my%20name')

Note
  The resulting string will contain the protocol and the path but not the hostname, as many apps doesn't handle it.

References eina_stringshare_add(), path, and protocol.

Referenced by efreet_trash_delete_uri().

Efreet_Uri* efreet_uri_decode | ( | const char * | val | ) |

Read a single uri and return an Efreet_Uri struct. If there's no hostname in the uri then the hostname parameter will be NULL. All the uri escaped chars will be converted to normal.

Parameters

  val | a valid uri string to parse

Returns
  Return The corresponding Efreet_Uri structure. Or NULL on errors.

References eina_stringshare_add(), hostname, path, and protocol.

void efreet_uri_free | ( | Efreet_Uri * | uri | ) |

Free the given uri structure.

Parameters

  uri | The uri to free

References hostname, path, and protocol.