#include "rox-clib.h"
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include "rox_path.h"
#include "rox_debug.h"
Functions | |
char * | rox_path_get_local (const char *uri) |
int | rox_hostname_is_local (const char *hname) |
char * | rox_path_get_server (const char *uri) |
char * | rox_path_get_path (const char *uri) |
int rox_hostname_is_local | ( | const char * | hname | ) |
Determine whether or not a host name identifies the local machine.
[in] | hname | host name to check. |
char* rox_path_get_local | ( | const char * | uri | ) |
Given a URI return a local path using rox_unescape_uri() to convert the path. file://thishost/path -> /path
[in] | uri | uri to process |
NULL
if it is not a local file path. char* rox_path_get_path | ( | const char * | uri | ) |
Given a file: URI, return the path part of the URI using rox_unescape_uri() to convert the path. file://host/path -> /path
[in] | uri | uri to process |
NULL
if not a valid file: URI. char* rox_path_get_server | ( | const char * | uri | ) |
Given a file: URI, return the host part of the URI. file://host/path -> host
[in] | uri | uri to process |