Skip to end of metadata
Go to start of metadata

To configure a C++ UModule to be started automatically at Reeti launch

  1. Compile your UModule and place the file "libMyModuleName.so" in directory :
    /home/reeti/reetiPrograms/UModules/

     

  2.  Create following two files :
  • /home/reeti/reetiPrograms/load/InitiModule.u
// user modules to load at Reeti Launch
// replace MyModuleName by your module name (same name than variable in initVar.u)

if(Global.isMyModuleNameLoaded==false)
{
        try{
                System.loadModule("/home/reeti/reetiPrograms/UModules/libMyModuleName.so");
                var Global.MyModule = uobjects.MyModule.new();
                Global.isMyModuleNameLoaded=true;
        }
        catch{
                outErr << "WARNING: Load module MyModuleName FAIL\n";
                Global.isMyModuleNameLoaded=false;
        }
};

 

  • /home/reeti/reetiPrograms/load/InitVar.u
// user variables to instanciate at Reeti Launch
// var used to check if a module is loaded : replace MyModuleName by your module name
var Global.isMyModuleNameLoaded = false ;

 

 

You can download the example files below

InitVar.uInitModule.u

  • No labels