| OLD | NEW |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with 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 | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 struct { | 72 struct { |
| 73 std::map<std::string, std::string> annotations; | 73 std::map<std::string, std::string> annotations; |
| 74 std::string url; | 74 std::string url; |
| 75 const char* database; | 75 const char* database; |
| 76 int handshake_fd; | 76 int handshake_fd; |
| 77 } options = {}; | 77 } options = {}; |
| 78 options.handshake_fd = -1; | 78 options.handshake_fd = -1; |
| 79 | 79 |
| 80 const struct option long_options[] = { | 80 const option long_options[] = { |
| 81 {"annotation", required_argument, nullptr, kOptionAnnotation}, | 81 {"annotation", required_argument, nullptr, kOptionAnnotation}, |
| 82 {"database", required_argument, nullptr, kOptionDatabase}, | 82 {"database", required_argument, nullptr, kOptionDatabase}, |
| 83 {"handshake-fd", required_argument, nullptr, kOptionHandshakeFD}, | 83 {"handshake-fd", required_argument, nullptr, kOptionHandshakeFD}, |
| 84 {"url", required_argument, nullptr, kOptionURL}, | 84 {"url", required_argument, nullptr, kOptionURL}, |
| 85 {"help", no_argument, nullptr, kOptionHelp}, | 85 {"help", no_argument, nullptr, kOptionHelp}, |
| 86 {"version", no_argument, nullptr, kOptionVersion}, | 86 {"version", no_argument, nullptr, kOptionVersion}, |
| 87 {nullptr, 0, nullptr, 0}, | 87 {nullptr, 0, nullptr, 0}, |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 int opt; | 90 int opt; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 return EXIT_SUCCESS; | 183 return EXIT_SUCCESS; |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace | 186 } // namespace |
| 187 } // namespace crashpad | 187 } // namespace crashpad |
| 188 | 188 |
| 189 int main(int argc, char* argv[]) { | 189 int main(int argc, char* argv[]) { |
| 190 return crashpad::HandlerMain(argc, argv); | 190 return crashpad::HandlerMain(argc, argv); |
| 191 } | 191 } |
| OLD | NEW |