From 92cfc4e42f3d5b191da13e1663c905e9bbea96ca Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Fri, 11 Mar 2016 15:12:29 +0100 Subject: [PATCH] workflows: publish the function loading configuration Other projects like cockpit-abrt need to show their users all available workflows. We should not encourage them to include the internal headear and I am not aware of any reason why was the function in the internal header. Signed-off-by: Jakub Filak --- src/include/internal_libreport.h | 2 -- src/include/workflow.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/include/internal_libreport.h b/src/include/internal_libreport.h index 444fe64..fd42c63 100644 --- a/src/include/internal_libreport.h +++ b/src/include/internal_libreport.h @@ -912,8 +912,6 @@ void free_file_list(GList *filelist); file_obj_t *new_file_obj(const char* fullpath, const char* filename); #define free_file_obj libreport_free_file_obj void free_file_obj(file_obj_t *f); -#define load_workflow_config_data libreport_load_workflow_config_data -GHashTable *load_workflow_config_data(const char* path); #define parse_delimited_list libreport_parse_delimited_list GList *parse_delimited_list(char* list, const char *delim); #define parse_list libreport_parse_list diff --git a/src/include/workflow.h b/src/include/workflow.h index 058c362..c707007 100644 --- a/src/include/workflow.h +++ b/src/include/workflow.h @@ -60,6 +60,16 @@ int wf_priority_compare(const workflow_t *first, const workflow_t *second); GHashTable *load_workflow_config_data_from_list(GList *wf_names, const char *path); +/* The function loads all workflow XML configuration files placed in the given + * directory. + * + * @param directory File system path to directory with workflow XML + * configuration files. + * @returns A map where the key is workflow's name and the value is workflow_t *. + */ +#define load_workflow_config_data libreport_load_workflow_config_data +GHashTable *load_workflow_config_data(const char* directory); + #ifdef __cplusplus } #endif -- 2.5.5