Add getting only masterlist metadata to the API

This commit is contained in:
Oliver Hamlet
2017-02-06 18:02:31 +00:00
parent 63e458eea6
commit fc626ced24
4 changed files with 29 additions and 6 deletions
+6 -1
View File
@@ -179,11 +179,16 @@ public:
* @brief Get all a plugin's loaded metadata.
* @param plugin
* The filename of the plugin to look up metadata for.
* @param includeUserMetadata
* If true, any user metadata the plugin has is included in the
* returned metadata, otherwise the metadata returned only includes
* metadata from the masterlist.
* @returns A PluginMetadata object containing all the plugin's metadata.
* If the plugin has no metadata, PluginMetadata.IsNameOnly()
* will return true.
*/
virtual PluginMetadata GetPluginMetadata(const std::string& plugin) = 0;
virtual PluginMetadata GetPluginMetadata(const std::string& plugin,
bool includeUserMetadata = true) = 0;
/**
* @brief Get a plugin's metadata loaded from the given userlist.