From 448dec0fa7e398bff2152f5e01671353af03bc8c Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 23 Oct 2017 11:11:17 +0300 Subject: kmstest: rename ObjectType to ArgType --- utils/kmstest.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp index 63b7d44..21309d6 100644 --- a/utils/kmstest.cpp +++ b/utils/kmstest.cpp @@ -392,7 +392,7 @@ static void usage() puts(usage_str); } -enum class ObjectType +enum class ArgType { Connector, Crtc, @@ -403,7 +403,7 @@ enum class ObjectType struct Arg { - ObjectType type; + ArgType type; string arg; }; @@ -422,23 +422,23 @@ static vector parse_cmdline(int argc, char **argv) Option("c|connector=", [&](string s) { - args.push_back(Arg { ObjectType::Connector, s }); + args.push_back(Arg { ArgType::Connector, s }); }), Option("r|crtc=", [&](string s) { - args.push_back(Arg { ObjectType::Crtc, s }); + args.push_back(Arg { ArgType::Crtc, s }); }), Option("p|plane=", [&](string s) { - args.push_back(Arg { ObjectType::Plane, s }); + args.push_back(Arg { ArgType::Plane, s }); }), Option("f|fb=", [&](string s) { - args.push_back(Arg { ObjectType::Framebuffer, s }); + args.push_back(Arg { ArgType::Framebuffer, s }); }), Option("v|view=", [&](string s) { - args.push_back(Arg { ObjectType::View, s }); + args.push_back(Arg { ArgType::View, s }); }), Option("|dmt", []() { @@ -519,7 +519,7 @@ static vector setups_to_outputs(Card& card, ResourceManager& resman, for (auto& arg : output_args) { switch (arg.type) { - case ObjectType::Connector: + case ArgType::Connector: { outputs.push_back(OutputInfo { }); current_output = &outputs.back(); @@ -530,7 +530,7 @@ static vector setups_to_outputs(Card& card, ResourceManager& resman, break; } - case ObjectType::Crtc: + case ArgType::Crtc: { if (!current_output) { outputs.push_back(OutputInfo { }); @@ -549,7 +549,7 @@ static vector setups_to_outputs(Card& card, ResourceManager& resman, break; } - case ObjectType::Plane: + case ArgType::Plane: { if (!current_output) { outputs.push_back(OutputInfo { }); @@ -570,7 +570,7 @@ static vector setups_to_outputs(Card& card, ResourceManager& resman, break; } - case ObjectType::Framebuffer: + case ArgType::Framebuffer: { if (!current_output) { outputs.push_back(OutputInfo { }); @@ -603,7 +603,7 @@ static vector setups_to_outputs(Card& card, ResourceManager& resman, break; } - case ObjectType::View: + case ArgType::View: { if (!current_plane || current_plane->fbs.empty()) EXIT("'view' parameter requires a plane and a fb"); -- cgit v1.2.3-54-g00ecf