Changeset 141:d0144e695baf in finroc_plugins_runtime_construction


Ignore:
Timestamp:
25.05.2020 22:45:32 (6 weeks ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Phase:
public
Tags:
tip
Message:

Makes CreateModule function of Administration service return handle of created module on success (Finstruct should be updated with this change)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tAdministrationService.cpp

    r113 r141  
    246246        parameters.release(); 
    247247        FINROC_LOG_PRINT(USER, "Creating Module succeeded"); 
     248        return "Created Element Handle: " + std::to_string(created->GetHandle()); 
    248249      } 
    249250    } 
  • tAdministrationService.h

    r94 r141  
    131131   * \param parent_handle Handle of parent element 
    132132   * \param serialized_creation_parameters Serialized constructor parameters in case the module requires such - otherwise empty 
    133    * \return Empty string if it worked - otherwise error message 
     133   * \return "Created Element Handle: <handle>" if it worked - otherwise error message 
    134134   */ 
    135135  std::string CreateModule(uint32_t create_action_index, const std::string& module_name, int parent_handle, const rrlib::serialization::tMemoryBuffer& serialized_creation_parameters); 
Note: See TracChangeset for help on using the changeset viewer.