Ignore:
Timestamp:
08/15/11 00:02:39 (22 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
b9498ef
Parents:
65a2940
Message:

2011-08-14 MickeM

  • Rename Function to Registry in PythonScript API as well as some other function renames
  • Started to clean up the helpers around the API
  • Added support for execute to PythonScripts? to execute commands
  • BUG: just realised that static plugin instances prevent multiple instances :) Will fix but not now as it is not important (for me)...
  • Added initial support for channels to PythonScript Core still lacks support for subscribing to arbitrary channel
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/NRPEClient/NRPEClient.cpp

    r65a2940 r2c95d22  
    238238} 
    239239 
    240 int NRPEClient::commandLineExec(const std::wstring &command, std::vector<std::wstring> &arguments, std::wstring &result) { 
    241   NSC_DEBUG_MSG_STD(_T("===> ") + command); 
     240int NRPEClient::commandLineExec(const std::wstring &command, std::list<std::wstring> &arguments, std::wstring &result) { 
    242241  if (command != _T("query") && command != _T("help")) 
    243     return NSCAPI::returnUNKNOWN; 
     242    return NSCAPI::returnIgnored; 
    244243  try { 
    245244    NRPEClient::nrpe_connection_data command_data; 
     
    250249    add_options(desc, command_data); 
    251250 
     251    std::vector<std::wstring> vargs(arguments.begin(), arguments.end()); 
    252252    po::positional_options_description p; 
    253253    p.add("arguments", -1); 
    254     po::wparsed_options parsed = po::basic_command_line_parser<wchar_t>(arguments).options(desc).positional(p).run(); 
     254    po::wparsed_options parsed = po::basic_command_line_parser<wchar_t>(vargs).options(desc).positional(p).run(); 
    255255    po::store(parsed, vm); 
    256256    po::notify(vm); 
Note: See TracChangeset for help on using the changeset viewer.