| OLD | NEW |
| (Empty) |
| 1 // Copyright 2009 Google Inc. | |
| 2 // | |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 // you may not use this file except in compliance with the License. | |
| 5 // You may obtain a copy of the License at | |
| 6 // | |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 // | |
| 9 // Unless required by applicable law or agreed to in writing, software | |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 // See the License for the specific language governing permissions and | |
| 13 // limitations under the License. | |
| 14 // ======================================================================== | |
| 15 | |
| 16 | |
| 17 #ifndef OMAHA_TOOLS_SRC_GOOPDUMP_GOOPDUMP_CMD_LINE_PARSER_H_ | |
| 18 #define OMAHA_TOOLS_SRC_GOOPDUMP_GOOPDUMP_CMD_LINE_PARSER_H_ | |
| 19 | |
| 20 #include <windows.h> | |
| 21 #include <atlstr.h> | |
| 22 #include "base/basictypes.h" | |
| 23 | |
| 24 namespace omaha { | |
| 25 | |
| 26 struct GoopdumpCmdLineArgs { | |
| 27 GoopdumpCmdLineArgs() | |
| 28 : is_machine(false), | |
| 29 is_user(false), | |
| 30 is_monitor(false), | |
| 31 is_dump_app_manager(false), | |
| 32 is_dump_oneclick(false), | |
| 33 is_dump_general(false), | |
| 34 is_write_to_file(false) {} | |
| 35 bool is_machine; // Display per-machine data. | |
| 36 bool is_user; // Display per-user data (for current user only). | |
| 37 bool is_monitor; // Is monitor mode (monitors real time activity). | |
| 38 bool is_dump_app_manager; // Dump AppManager data. | |
| 39 bool is_dump_oneclick; // Dump OneClick data. | |
| 40 bool is_dump_general; // Dump general OS and Omaha data. | |
| 41 bool is_write_to_file; // Dump data to file. | |
| 42 CString log_filename; // Filename of log to write to. | |
| 43 }; | |
| 44 | |
| 45 HRESULT ParseGoopdumpCmdLine(int argc, TCHAR** argv, GoopdumpCmdLineArgs* args); | |
| 46 | |
| 47 } // namespace omaha | |
| 48 | |
| 49 #endif // OMAHA_TOOLS_SRC_GOOPDUMP_GOOPDUMP_CMD_LINE_PARSER_H_ | |
| 50 | |
| OLD | NEW |