newintf.h File Reference

#include <sys/stat.h>
#include <types.h>

Go to the source code of this file.

Data Structures

struct  newlib_device_t

Functions

BOOL newlib_init (void)
 Initializes the Newlib abstraction.
void newlib_fini (void)
 Finishes the Newlib abstraction.
BOOL newlib_add_device (newlib_device_t dev)
 Adds a device to the file I/O abstraction.
BOOL newlib_remove_device (char tag[8])
 Removes a device from the file I/O abstraction.
newlib_device_tnewlib_get_device (char tag[8])
 Gets the structure for a device from the file I/O abstraction.
BOOL newlib_set_default_device (char tag[8])
 Sets the default device to use when no tag is specified.

Detailed Description

Newlib interfacing. Most important part is newlib_device_t, which is the equivalent of devoptab's for devkitPro.

Todo:

Make newlib handles into linked lists.

Unstubbify environment variables.

Unstubbify times.

Possible unstubbify threading calls with libthreads (many reasons to not, however)


Function Documentation

BOOL newlib_add_device ( newlib_device_t  dev  ) 

Adds a device to the file I/O abstraction.

Parameters:
dev a newlib_device_t structure containing device information.
Returns:
Returns TRUE if the device was successfully added. FALSE otherwise.
newlib_device_t* newlib_get_device ( char  tag[8]  ) 

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

Parameters:
tag the tag of the device to get the structure of.
Returns:
Returns a pointer to the structure on success, or NULL on failure.
BOOL newlib_init ( void   ) 

Initializes the Newlib abstraction.

Returns:
Returns TRUE if the init was successful. FALSE otherwise.
BOOL newlib_remove_device ( char  tag[8]  ) 

Removes a device from the file I/O abstraction.

Parameters:
tag the tag of the device to remove from the abstraction.
Returns:
Returns TRUE if the device was successfully removed. FALSE otherwise.
BOOL newlib_set_default_device ( char  tag[8]  ) 

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

Parameters:
tag the tag of the device to use by default.
Returns:
Returns TRUE on success, FALSE on failure.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated by  doxygen 1.6.3