Docs > Adding User Modules
A user module is a module that is added by an individual user and is not included in the IKAROS distribution. To allow each user to develop new modules without changing IKAROS, user modules are placed separately in the directory UserModules. Apart from where they are located, user modules are identical to other IKAROS modules.
To let Ikaros know about the user module named MyModule it should be added to the file UserModules.h located in the directory UserModules. Add the following lines at the appropriate places (indicated in UserModules.h):
#include "UserModules/MyModule/MyModule.h"
k.AddClass("MyModule", &MyModule::Create, "Source/UserModules/MyModule/");
The module definition for MyModule should be located in a directory named MyModule inside UserModules. This directory should minimally include the three files MyModule.h, MyModule.c and MyModule.ikc.
An important change in version 1.0 is that the full path must be used. The path must also be included in the AddClass call. Among other things, this gives the path to the IKC for the class.
UserModules.h
UserModules.cc
Copyright © 2003-2007 Christian Balkenius