API updates and fixes.

* Better handling of empty Bash Tag map.
* Updated boss_write_minimal list to handle dirty info correctly.
* Replaced boss_get_dirty_message with boss_get_dirty_info to reflect
change in dirty data handling in BOSS.

Slight loss of functionality, as now `boss_needs_cleaning_no` is never
returned, only unknown or yes. I don't think it matters though.
This commit is contained in:
WrinklyNinja
2014-01-12 16:33:28 +00:00
parent 001350f581
commit 33597208f8
2 changed files with 20 additions and 75 deletions
+5 -8
View File
@@ -336,21 +336,18 @@ BOSS_API unsigned int boss_get_plugin_messages (boss_db db, const char * const p
/**
@brief Determines the database's knowledge of a plugin's dirtiness.
@details Outputs the first message associated with the specified plugin that is about dirty edits, and also whether the plugin should be cleaned or not, or if no data is available.
@details Outputs whether the plugin should be cleaned or not, or if no data is available.
@param db The database the function acts on.
@param plugin The plugin to look up dirty status information for.
@param message A pointer to the message outputted.
@param needsCleaning A pointer to a plugin cleanliness code.
@returns A return code.
@returns A return code.
*/
BOSS_API unsigned int boss_get_dirty_message (boss_db db, const char * const plugin,
boss_message * const message,
unsigned int * const needsCleaning);
BOSS_API unsigned int boss_get_dirty_info (boss_db db, const char * const plugin,
unsigned int * const needsCleaning);
/**
@brief Writes a minimal metadata file that only contains plugins with Bash Tag suggestions and/or warning messages about dirtiness, plus the suggestions and messages themselves.
@brief Writes a minimal metadata file that only contains plugins with Bash Tag suggestions and/or dirty info, plus the suggestions and info themselves.
@param db The database the function acts on.
@param outputFile The path to which the file shall be written.
@param overwrite If `false` and `outputFile` already exists, no data will be written. Otherwise, data will be written.