\section{rox\_\-path.c File Reference}
\label{rox__path_8c}\index{rox_path.c@{rox\_\-path.c}}
Utilities for path handling, including support for drag \& drop. 

{\tt \#include \char`\"{}rox-clib.h\char`\"{}}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$glib.h$>$}\par
{\tt \#include \char`\"{}rox\_\-path.h\char`\"{}}\par
{\tt \#include \char`\"{}rox\_\-debug.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
char $\ast$ {\bf rox\_\-path\_\-get\_\-local} (const char $\ast$uri)
\item 
int {\bf rox\_\-hostname\_\-is\_\-local} (const char $\ast$hname)
\item 
char $\ast$ {\bf rox\_\-path\_\-get\_\-server} (const char $\ast$uri)
\item 
char $\ast$ {\bf rox\_\-path\_\-get\_\-path} (const char $\ast$uri)
\end{CompactItemize}


\subsection{Detailed Description}
Utilities for path handling, including support for drag \& drop. 

\begin{Desc}
\item[Author:]Stephen Watson \end{Desc}
\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]\doxyref{rox\_\-path.c}{p.}{rox__path_8c},v 1.10 2005/09/10 16:16:30 stephen Exp \end{Desc}
\end{Desc}


\subsection{Function Documentation}
\index{rox_path.c@{rox\_\-path.c}!rox_hostname_is_local@{rox\_\-hostname\_\-is\_\-local}}
\index{rox_hostname_is_local@{rox\_\-hostname\_\-is\_\-local}!rox_path.c@{rox\_\-path.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int rox\_\-hostname\_\-is\_\-local (const char $\ast$ {\em hname})}\label{rox__path_8c_dee59c5c677c42c6ab311cc4e24fe6fd}


Determine whether or not a host name identifies the local machine.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em hname}]host name to check. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]non-zero if the host name belongs to the local machine \end{Desc}
\index{rox_path.c@{rox\_\-path.c}!rox_path_get_local@{rox\_\-path\_\-get\_\-local}}
\index{rox_path_get_local@{rox\_\-path\_\-get\_\-local}!rox_path.c@{rox\_\-path.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ rox\_\-path\_\-get\_\-local (const char $\ast$ {\em uri})}\label{rox__path_8c_bc818f1474a359eeee30c170f522b89e}


Given a URI return a local path using \doxyref{rox\_\-unescape\_\-uri()}{p.}{uri_8c_d887cb2a8b843cacd3a8b0b2d66f50b0} to convert the path. {\tt file://thishost/path} -$>$ /path

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em uri}]uri to process \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]local path (pass to g\_\-free() when done) or {\tt NULL} if it is not a local file path. \end{Desc}
\index{rox_path.c@{rox\_\-path.c}!rox_path_get_path@{rox\_\-path\_\-get\_\-path}}
\index{rox_path_get_path@{rox\_\-path\_\-get\_\-path}!rox_path.c@{rox\_\-path.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ rox\_\-path\_\-get\_\-path (const char $\ast$ {\em uri})}\label{rox__path_8c_fbaabb2a0de184eabb867872a3d6e64f}


Given a file: URI, return the path part of the URI using \doxyref{rox\_\-unescape\_\-uri()}{p.}{uri_8c_d887cb2a8b843cacd3a8b0b2d66f50b0} to convert the path. {\tt file://host/path} -$>$ /path

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em uri}]uri to process \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]server name (pass to g\_\-free() when done), or {\tt NULL} if not a valid file: URI. \end{Desc}
\index{rox_path.c@{rox\_\-path.c}!rox_path_get_server@{rox\_\-path\_\-get\_\-server}}
\index{rox_path_get_server@{rox\_\-path\_\-get\_\-server}!rox_path.c@{rox\_\-path.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ rox\_\-path\_\-get\_\-server (const char $\ast$ {\em uri})}\label{rox__path_8c_8232de4ee9e586b98cf0a2dcd875a5e9}


Given a file: URI, return the host part of the URI. {\tt file://host/path} -$>$ host

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[\mbox{$\leftarrow$} {\em uri}]uri to process \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]server name (pass to g\_\-free() when done). \end{Desc}
