19 #ifndef LIBREPORT_WORKFLOW_H 20 #define LIBREPORT_WORKFLOW_H 23 #include "event_config.h" 24 #include "config_item_info.h" 30 typedef struct workflow workflow_t;
32 extern GHashTable *g_workflow_list;
34 workflow_t *new_workflow(
const char *name);
35 workflow_t *get_workflow(
const char *name);
36 void free_workflow(workflow_t *w);
38 void load_workflow_description_from_file(workflow_t *w,
const char *filename);
39 config_item_info_t *workflow_get_config_info(workflow_t *w);
40 const char *wf_get_name(workflow_t *w);
46 GList *wf_get_event_list(workflow_t *w);
52 GList *wf_get_event_names(workflow_t *w);
54 const char *wf_get_screen_name(workflow_t *w);
55 const char *wf_get_description(workflow_t *w);
56 const char *wf_get_long_desc(workflow_t *w);
57 int wf_get_priority(workflow_t *w);
59 void wf_set_screen_name(workflow_t *w,
const char* screen_name);
60 void wf_set_description(workflow_t *w,
const char* description);
61 void wf_set_long_desc(workflow_t *w,
const char* long_desc);
63 void wf_set_priority(workflow_t *w,
int priority);
70 int wf_priority_compare(
const workflow_t *first,
const workflow_t *second);
80 GHashTable *load_workflow_config_data_from_list(GList *wf_names,
const char *path);
89 #define load_workflow_config_data libreport_load_workflow_config_data 90 GHashTable *load_workflow_config_data(
const char* directory);