Subversion Repositories HomeAutomation

Rev

Rev 1647 | Rev 1657 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1647 Rev 1650
Line 154... Line 154...
154
Value Module::Export_GetAvailableModules(const v8::Arguments& args)
154
Value Module::Export_GetAvailableModules(const v8::Arguments& args)
155
{
155
{
156
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
156
    v8::Context::Scope context_scope(vm::Manager::Instance()->GetContext());
157
   
157
   
158
    //LOG.Debug(std::string(__FUNCTION__) + " called!");
158
    //LOG.Debug(std::string(__FUNCTION__) + " called!");
159
   
-
 
160
    if (args.Length() < 1)
-
 
161
    {
-
 
162
        LOG.Error(std::string(__FUNCTION__) + ": To few arguments.");
-
 
163
        return v8::Boolean::New(false);
-
 
164
    }
-
 
165
   
159
   
166
    common::StringList available_modules = control::Manager::Instance()->GetAvailableModules();
160
    common::StringList available_modules = control::Manager::Instance()->GetAvailableModules();
167
   
161
   
168
    v8::Local<v8::Array> result = v8::Array::New(available_modules.size());
162
    v8::Local<v8::Array> result = v8::Array::New(available_modules.size());
169
   
163