Fixed behavior of VTerm when driver is set at runtime
[tpg/acess2.git] / Kernel / include / modules.h
index d4fb49c..db3f91a 100644 (file)
@@ -73,7 +73,7 @@ typedef struct sModule
        struct sModule  *Next;  //!< Next module in list (not to be touched by the driver)
        char    *Name;  //!< Module Name/Identifier
         int    (*Init)(char **Arguments);      //!< Module initialiser / entrypoint
-       void    (*Deinit)();    //!< Cleanup Function
+       void    (*Deinit)(void);        //!< Cleanup Function
        char    **Dependencies; //!< NULL terminated list of dependencies
 } PACKED tModule;
 
@@ -113,4 +113,11 @@ typedef struct sModuleLoader
  */
 extern int     Module_RegisterLoader(tModuleLoader *Loader);
 
+/**
+ * \brief Initialise a named builtin module
+ * \param Name Module name to initialise
+ * \return -1 on not existing, 0 if the module initialised (or if it was already initialised)
+ */
+extern int     Modules_InitialiseBuiltin(const char *Name);
+
 #endif

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