blob: 5d0b55882e2a40b4013fc128a51d29ddc1f4ec3c [file] [log] [blame]
#pragma once
#include <string>
namespace phosphor::certs
{
struct Arguments
{
std::string typeStr; // certificate type
std::string endpoint; // d-bus endpoint
std::string path; // certificate file path
std::string unit; // Optional systemd unit need to reload
};
// Validates all |argv| is valid and set corresponding attributes in
// |arguments|.
int processArguments(int argc, const char* const* argv, Arguments& arguments);
} // namespace phosphor::certs