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, const char *Filename);
&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;
}