Kernel/VTerm - Rewrote cursor handling to support FB mode cursors.
[tpg/acess2.git] / Kernel / include / fs_devfs.h
index 4b29cf1..c099fc6 100644 (file)
@@ -1,20 +1,35 @@
-/*
- * Acess 2
- * Device Filesystem (DevFS)
- * - vfs/fs/devfs.c
+/**
+ * \file fs_devfs.h
+ * \brief Acess Device Filesystem interface
+ * \author John Hodge (thePowersGang)
  */
 #ifndef _FS_DEVFS_H
 #define _FS_DEVFS_H
 #include <vfs.h>
 
 // === TYPES ===
-typedef struct sDevFS_Driver {
-       struct sDevFS_Driver    *Next;
-       char    *Name;
-       tVFS_Node       RootNode;
+/**
+ * \brief DevFS driver definition
+ */
+typedef struct sDevFS_Driver
+{
+       struct sDevFS_Driver    *Next;  //!< Set to NULL by drivers (used internally)
+       const char      *Name;  //!< Name of the driver file/folder (must be unique)
+       tVFS_Node       RootNode;       //!< Root node of driver
 } tDevFS_Driver;
 
 // === FUNCTIONS ===
-extern int     DevFS_AddDevice(tDevFS_Driver *Dev);
+/**
+ * \fn int DevFS_AddDevice(tDevFS_Driver *Device)
+ * \brief Registers a device in the Device Filesystem
+ * \param Device       Pointer to a persistant structure that represents the driver
+ * \return Boolean success
+ */
+extern int     DevFS_AddDevice(tDevFS_Driver *Device);
+
+/**
+ * \brief Unregisters a device with the Device Filesystem
+ */
+extern void    DevFS_DelDevice(tDevFS_Driver *Device);
 
 #endif

UCC git Repository :: git.ucc.asn.au