Changeset 53be5c8 in nscp for service/NSClient++.cpp
- Timestamp:
- 07/12/12 07:43:42 (11 months ago)
- Branches:
- master, 0.4.1, 0.4.2
- Children:
- c327ce5
- Parents:
- 6090c98
- File:
-
- 1 edited
-
service/NSClient++.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
service/NSClient++.cpp
r52c5bf2 r53be5c8 1023 1023 } 1024 1024 1025 int NSClientT::simple_exec(std::wstring module, std::wstringcommand, std::vector<std::wstring> arguments, std::list<std::wstring> &resp) {1025 int NSClientT::simple_exec(std::wstring command, std::vector<std::wstring> arguments, std::list<std::wstring> &resp) { 1026 1026 std::string request; 1027 1027 std::list<std::string> responses; 1028 1028 std::list<std::wstring> errors; 1029 1029 nscapi::functions::create_simple_exec_request(command, arguments, request); 1030 std::wstring module; 1031 std::wstring::size_type pos = command.find(L'.'); 1032 if (pos != std::wstring::npos) { 1033 module = command.substr(0, pos); 1034 command = command.substr(pos+1); 1035 } 1030 1036 int ret = load_and_run(module, boost::bind(&exec_helper, _1, command, arguments, request, &responses), errors); 1031 1037
Note: See TracChangeset
for help on using the changeset viewer.








