libcamera: global_configuration: Rename yamlConfiguration_
Once parsed, the global configuration isn't a YAML file anymore. Rename the yamlConfiguration_ to configuration_. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>
This commit is contained in:
@@ -56,7 +56,7 @@ private:
|
||||
void load();
|
||||
bool loadFile(const std::filesystem::path &fileName);
|
||||
|
||||
std::unique_ptr<ValueNode> yamlConfiguration_ =
|
||||
std::unique_ptr<ValueNode> configuration_ =
|
||||
std::make_unique<ValueNode>();
|
||||
};
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ bool GlobalConfiguration::loadFile(const std::filesystem::path &fileName)
|
||||
return true;
|
||||
}
|
||||
|
||||
yamlConfiguration_ = std::move(configuration);
|
||||
configuration_ = std::move(configuration);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ bool GlobalConfiguration::loadFile(const std::filesystem::path &fileName)
|
||||
*/
|
||||
unsigned int GlobalConfiguration::version() const
|
||||
{
|
||||
return (*yamlConfiguration_)["version"].get<unsigned int>().value_or(0);
|
||||
return (*configuration_)["version"].get<unsigned int>().value_or(0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -160,7 +160,7 @@ unsigned int GlobalConfiguration::version() const
|
||||
*/
|
||||
GlobalConfiguration::Configuration GlobalConfiguration::configuration() const
|
||||
{
|
||||
return (*yamlConfiguration_)["configuration"];
|
||||
return (*configuration_)["configuration"];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user