#include "fsmgr.h"#include <string.h>#include <stdio.h>#include <services/services.h>Defines | |
| #define | FS_SEM_P |
| #define | FS_SEM_V |
Functions | |
| void | fs_printPartitions (void) |
| displays all available partitions | |
| void | fs_setup (void) |
| have to be called to initialize the file systems manager environment. | |
| void | fs_cleanup () |
| have to be called to clean up and free resources of the file system management | |
| T_FS_PARTITION * | fs_getActivePartition (void) |
| returns a pointer to the currently active partition struct (0 if none is active) | |
| void | fs_setActivePartition (T_FS_PARTITION *pa_pPartition) |
| sets the supplied parition as currently active | |
| T_FS_PARTITION * | fs_getPartition (const char *pa_acName) |
| returns a pointer to a specified partition struct (0 if the name is not valid) | |
| unsigned long | fs_partitionSize (T_FS_PARTITION *pa_pPartition) |
| returns the overall size of the specified partition in bytes | |
| unsigned long | fs_partitionFree (T_FS_PARTITION *pa_pPartition) |
| returns the amount of free bytes of the specified partition | |
| void | fs_register (const char *pa_acName, T_FS_FUNCTIONS *pa_pstFunctions) |
| registers a specified filesystem to the file system management | |
| bool | fs_mountPartition (const char *pa_acPartitionName, const char *pa_acMsdName, const char *pa_acFileSystem) |
| mounts a partitions on a mass storage device (MSD) with a specified filesystem | |
| bool | fs_formatDevice (const char *pa_acDeviceName, const char *pa_acFilesystem) |
| formats the specified device with the specified file system | |
| bool | fs_unmountPartition (const char *pa_acPartitionName) |
| unmounts a partition | |
Variables | |
| T_FS_PARTITION * | g_pstActivePartition = 0 |
| bool | g_bFsMgrInitialized = false |
| T_FS_PARTITION | g_astPartitions [10] |
| T_FS_INFO | g_astFileSystems [3] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.1