\hypertarget{newintf_8h}{
\section{libnewintf/newintf.h File Reference}
\label{newintf_8h}\index{libnewintf/newintf.h@{libnewintf/newintf.h}}
}
{\ttfamily \#include $<$sys/stat.h$>$}\par
{\ttfamily \#include $<$types.h$>$}\par
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structnewlib__device__t}{newlib\_\-device\_\-t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
BOOL \hyperlink{newintf_8h_a09ea0b7b72fdf58647a9bb6b1f922b38}{newlib\_\-init} (void)
\begin{DoxyCompactList}\small\item\em Initializes the Newlib abstraction. \item\end{DoxyCompactList}\item 
\hypertarget{newintf_8h_acd288697fbb0f52cf97b799e9a2d2b40}{
void \hyperlink{newintf_8h_acd288697fbb0f52cf97b799e9a2d2b40}{newlib\_\-fini} (void)}
\label{newintf_8h_acd288697fbb0f52cf97b799e9a2d2b40}

\begin{DoxyCompactList}\small\item\em Finishes the Newlib abstraction. \item\end{DoxyCompactList}\item 
BOOL \hyperlink{newintf_8h_a53867db70bc1dd06b21a2dedf3821709}{newlib\_\-add\_\-device} (\hyperlink{structnewlib__device__t}{newlib\_\-device\_\-t} dev)
\begin{DoxyCompactList}\small\item\em Adds a device to the file I/O abstraction. \item\end{DoxyCompactList}\item 
BOOL \hyperlink{newintf_8h_abdb41005a8acf1491c7a19d5f2891a00}{newlib\_\-remove\_\-device} (char tag\mbox{[}8\mbox{]})
\begin{DoxyCompactList}\small\item\em Removes a device from the file I/O abstraction. \item\end{DoxyCompactList}\item 
\hyperlink{structnewlib__device__t}{newlib\_\-device\_\-t} $\ast$ \hyperlink{newintf_8h_a825af902d5c4727da0754578e635944c}{newlib\_\-get\_\-device} (char tag\mbox{[}8\mbox{]})
\begin{DoxyCompactList}\small\item\em Gets the structure for a device from the file I/O abstraction. \item\end{DoxyCompactList}\item 
BOOL \hyperlink{newintf_8h_a26e1d2349f397edb7ebd28247e95b0ae}{newlib\_\-set\_\-default\_\-device} (char tag\mbox{[}8\mbox{]})
\begin{DoxyCompactList}\small\item\em Sets the default device to use when no tag is specified. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Newlib interfacing. Most important part is \hyperlink{structnewlib__device__t}{newlib\_\-device\_\-t}, which is the equivalent of devoptab's for devkitPro. \begin{Desc}
\item[\hyperlink{todo__todo000004}{Todo}]Make newlib handles into linked lists. 

Unstubbify environment variables. 

Unstubbify times. 

Possible unstubbify threading calls with libthreads (many reasons to not, however) \end{Desc}


\subsection{Function Documentation}
\hypertarget{newintf_8h_a53867db70bc1dd06b21a2dedf3821709}{
\index{newintf.h@{newintf.h}!newlib\_\-add\_\-device@{newlib\_\-add\_\-device}}
\index{newlib\_\-add\_\-device@{newlib\_\-add\_\-device}!newintf.h@{newintf.h}}
\subsubsection[{newlib\_\-add\_\-device}]{\setlength{\rightskip}{0pt plus 5cm}BOOL newlib\_\-add\_\-device ({\bf newlib\_\-device\_\-t} {\em dev})}}
\label{newintf_8h_a53867db70bc1dd06b21a2dedf3821709}


Adds a device to the file I/O abstraction. 


\begin{DoxyParams}{Parameters}
\item[{\em dev}]a \hyperlink{structnewlib__device__t}{newlib\_\-device\_\-t} structure containing device information. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
Returns TRUE if the device was successfully added. FALSE otherwise. 
\end{DoxyReturn}
\hypertarget{newintf_8h_a825af902d5c4727da0754578e635944c}{
\index{newintf.h@{newintf.h}!newlib\_\-get\_\-device@{newlib\_\-get\_\-device}}
\index{newlib\_\-get\_\-device@{newlib\_\-get\_\-device}!newintf.h@{newintf.h}}
\subsubsection[{newlib\_\-get\_\-device}]{\setlength{\rightskip}{0pt plus 5cm}{\bf newlib\_\-device\_\-t}$\ast$ newlib\_\-get\_\-device (char {\em tag}\mbox{[}8\mbox{]})}}
\label{newintf_8h_a825af902d5c4727da0754578e635944c}


Gets the structure for a device from the file I/O abstraction. 


\begin{DoxyParams}{Parameters}
\item[{\em tag}]the tag of the device to get the structure of. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
Returns a pointer to the structure on success, or NULL on failure. 
\end{DoxyReturn}
\hypertarget{newintf_8h_a09ea0b7b72fdf58647a9bb6b1f922b38}{
\index{newintf.h@{newintf.h}!newlib\_\-init@{newlib\_\-init}}
\index{newlib\_\-init@{newlib\_\-init}!newintf.h@{newintf.h}}
\subsubsection[{newlib\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}BOOL newlib\_\-init (void)}}
\label{newintf_8h_a09ea0b7b72fdf58647a9bb6b1f922b38}


Initializes the Newlib abstraction. 

\begin{DoxyReturn}{Returns}
Returns TRUE if the init was successful. FALSE otherwise. 
\end{DoxyReturn}
\hypertarget{newintf_8h_abdb41005a8acf1491c7a19d5f2891a00}{
\index{newintf.h@{newintf.h}!newlib\_\-remove\_\-device@{newlib\_\-remove\_\-device}}
\index{newlib\_\-remove\_\-device@{newlib\_\-remove\_\-device}!newintf.h@{newintf.h}}
\subsubsection[{newlib\_\-remove\_\-device}]{\setlength{\rightskip}{0pt plus 5cm}BOOL newlib\_\-remove\_\-device (char {\em tag}\mbox{[}8\mbox{]})}}
\label{newintf_8h_abdb41005a8acf1491c7a19d5f2891a00}


Removes a device from the file I/O abstraction. 


\begin{DoxyParams}{Parameters}
\item[{\em tag}]the tag of the device to remove from the abstraction. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
Returns TRUE if the device was successfully removed. FALSE otherwise. 
\end{DoxyReturn}
\hypertarget{newintf_8h_a26e1d2349f397edb7ebd28247e95b0ae}{
\index{newintf.h@{newintf.h}!newlib\_\-set\_\-default\_\-device@{newlib\_\-set\_\-default\_\-device}}
\index{newlib\_\-set\_\-default\_\-device@{newlib\_\-set\_\-default\_\-device}!newintf.h@{newintf.h}}
\subsubsection[{newlib\_\-set\_\-default\_\-device}]{\setlength{\rightskip}{0pt plus 5cm}BOOL newlib\_\-set\_\-default\_\-device (char {\em tag}\mbox{[}8\mbox{]})}}
\label{newintf_8h_a26e1d2349f397edb7ebd28247e95b0ae}


Sets the default device to use when no tag is specified. 


\begin{DoxyParams}{Parameters}
\item[{\em tag}]the tag of the device to use by default. \end{DoxyParams}
\begin{DoxyReturn}{Returns}
Returns TRUE on success, FALSE on failure. 
\end{DoxyReturn}
