X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FInput%2FMouse%2Fmain.c;h=25185a2d5617704a310e4f3cca28afad4319a333;hb=bffac877be10357e17ba29ffce8978efc405afdd;hp=5e6a9a2d6969eaf1520cf16818e52e837369e2c8;hpb=3ae2c079ea44ea7a8fb1a65e7b9ff5d76f3f4c24;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Input/Mouse/main.c b/KernelLand/Modules/Input/Mouse/main.c index 5e6a9a2d..25185a2d 100644 --- a/KernelLand/Modules/Input/Mouse/main.c +++ b/KernelLand/Modules/Input/Mouse/main.c @@ -15,9 +15,9 @@ // === PROTOTYPES === int Mouse_Install(char **Arguments); -void Mouse_Cleanup(void); + int Mouse_Cleanup(void); // - "User" side -char *Mouse_Root_ReadDir(tVFS_Node *Node, int Pos); + int Mouse_Root_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]); tVFS_Node *Mouse_Root_FindDir(tVFS_Node *Node, const char *Name); int Mouse_Dev_IOCtl(tVFS_Node *Node, int ID, void *Data); size_t Mouse_Dev_Read(tVFS_Node *Node, off_t Offset, size_t Length, void *Data); @@ -62,15 +62,18 @@ int Mouse_Install(char **Arguments) /** * \brief Pre-unload cleanup function */ -void Mouse_Cleanup(void) +int Mouse_Cleanup(void) { + return 0; } // --- VFS Interface --- -char *Mouse_Root_ReadDir(tVFS_Node *Node, int Pos) +int Mouse_Root_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]) { - if( Pos != 0 ) return NULL; - return strdup("system"); + if( Pos != 0 ) + return -EINVAL; + strcpy(Dest, "system"); + return 0; } tVFS_Node *Mouse_Root_FindDir(tVFS_Node *Node, const char *Name)