int SysFS_Install(char **Arguments);
int SysFS_IOCtl(tVFS_Node *Node, int Id, void *Data);
- int SysFS_RegisterFile(char *Path, char *Data, int Length);
- int SysFS_UpdateFile(int ID, char *Data, int Length);
+#if 0
+ int SysFS_RegisterFile(const char *Path, const char *Data, int Length);
+ int SysFS_UpdateFile(int ID, const char *Data, int Length);
int SysFS_RemoveFile(int ID);
+#endif
char *SysFS_Comm_ReadDir(tVFS_Node *Node, int Id);
-tVFS_Node *SysFS_Comm_FindDir(tVFS_Node *Node, char *Filename);
+tVFS_Node *SysFS_Comm_FindDir(tVFS_Node *Node, const char *Filename);
Uint64 SysFS_Comm_ReadFile(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer);
void SysFS_Comm_CloseFile(tVFS_Node *Node);
&gSysFS_Version, // Parent
{
.Inode = 1, // File #1
- .ImplPtr = KERNEL_VERSION_STRING,
+ .ImplPtr = (void*)KERNEL_VERSION_STRING,
.ImplInt = (Uint)&gSysFS_Version_Kernel, // Self-Link
.Size = sizeof(KERNEL_VERSION_STRING)-1,
.NumACLs = 1,
* \param Length Length of the data buffer
* \return The file's identifier
*/
-int SysFS_RegisterFile(char *Path, char *Data, int Length)
+int SysFS_RegisterFile(const char *Path, const char *Data, int Length)
{
int start = 0;
int tmp;
child->Parent = ent;
child->Node.Inode = giSysFS_NextFileID++;
- child->Node.ImplPtr = Data;
+ child->Node.ImplPtr = (void*)Data;
child->Node.ImplInt = (Uint)child; // Uplink
child->Node.Size = Length;
child->Node.NumACLs = 1;
* \param Length Length of the data buffer
* \return Boolean Success
*/
-int SysFS_UpdateFile(int ID, char *Data, int Length)
+int SysFS_UpdateFile(int ID, const char *Data, int Length)
{
tSysFS_Ent *ent;
if(ent->Node.Inode < ID) return 0;
if(ent->Node.Inode == ID)
{
- ent->Node.ImplPtr = Data;
+ ent->Node.ImplPtr = (void*)Data;
ent->Node.Size = Length;
return 1;
}
}
/**
- * \fn tVFS_Node *SysFS_Comm_FindDir(tVFS_Node *Node, char *Filename)
+ * \fn tVFS_Node *SysFS_Comm_FindDir(tVFS_Node *Node, const char *Filename)
* \brief Find a file in a SysFS directory
*/
-tVFS_Node *SysFS_Comm_FindDir(tVFS_Node *Node, char *Filename)
+tVFS_Node *SysFS_Comm_FindDir(tVFS_Node *Node, const char *Filename)
{
tSysFS_Ent *child = (tSysFS_Ent*)Node->ImplPtr;