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