blob: 5d0b55882e2a40b4013fc128a51d29ddc1f4ec3c [file] [log] [blame]
Jayanth Othayoth0aa0d112018-09-03 03:47:27 -05001#pragma once
2
Jayanth Othayoth0aa0d112018-09-03 03:47:27 -05003#include <string>
4
Nan Zhou7047be62022-03-10 12:34:06 -08005namespace phosphor::certs
Jayanth Othayoth0aa0d112018-09-03 03:47:27 -05006{
7
Nan Zhou7047be62022-03-10 12:34:06 -08008struct Arguments
Jayanth Othayoth0aa0d112018-09-03 03:47:27 -05009{
Nan Zhou7047be62022-03-10 12:34:06 -080010 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
Jayanth Othayoth0aa0d112018-09-03 03:47:27 -050014};
15
Nan Zhou7047be62022-03-10 12:34:06 -080016// Validates all |argv| is valid and set corresponding attributes in
17// |arguments|.
18int processArguments(int argc, const char* const* argv, Arguments& arguments);
19} // namespace phosphor::certs