1 #pragma once 2 3 #include <string> 4 5 namespace phosphor::certs 6 { 7 8 struct Arguments 9 { 10 std::string typeStr; // certificate type 11 std::string endpoint; // d-bus endpoint 12 std::string path; // certificate file path 13 std::string unit; // Optional systemd unit need to reload 14 }; 15 16 // Validates all |argv| is valid and set corresponding attributes in 17 // |arguments|. 18 int processArguments(int argc, const char* const* argv, Arguments& arguments); 19 } // namespace phosphor::certs 20