Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

uri.h File Reference

Utilities for uri handling and launching. More...


Functions

gchar * rox_unescape_uri (const char *uri)
gchar * rox_encode_path_as_uri (const guchar *path)
gchar * rox_escape_uri_path (const char *path)
int rox_uri_launch (const char *uri)
const char * rox_hostname (void)


Detailed Description

Utilities for uri handling and launching.

Author:
Stephen Watson
Version:
Id
uri.h,v 1.2 2005/09/10 16:17:55 stephen Exp

Function Documentation

gchar* rox_encode_path_as_uri const guchar *  path  ) 
 

Convert a local path into a file: URI with problematic characters replaced with xx escapes.

Parameters:
[in] path to encode
Returns:
the converted URI, pass to g_free() when done.

gchar* rox_escape_uri_path const char *  path  ) 
 

Escape path for future use in URI by replacing problematic characters with a xx escape sequence.

Parameters:
[in] path path to be escaped
Returns:
escaped path, pass to g_free() when done.

const char* rox_hostname void   ) 
 

Return the canonical hostname for use in drag and drop.

Returns:
host name

gchar* rox_unescape_uri const char *  uri  ) 
 

Convert a URI with xx escapes into one without

Parameters:
[in] uri URI to be converted.
Returns:
converted URI, pass to g_free() when done.

int rox_uri_launch const char *  uri  ) 
 

Launch a URI. If there is a handler for the MIME type text/x-uri then that is executed with '-' as a single argument and the URI pass in on standard input. If there is no such handler then each of the following commands is tried in turn:

  • gnome-moz-remote --newwin uri
  • mozilla uri
  • netscape uri

Parameters:
[in] uri URI to launch
Returns:
exit status of the last attempted command (0 for success).


Generated on Sat Oct 22 17:49:14 2005 for ROX-CLib by doxygen 1.3.8