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);
41 GList *wf_get_event_list(workflow_t *w);
42 GList *wf_get_event_names(workflow_t *w);
43 const char *wf_get_screen_name(workflow_t *w);
44 const char *wf_get_description(workflow_t *w);
45 const char *wf_get_long_desc(workflow_t *w);
46 int wf_get_priority(workflow_t *w);
48 void wf_set_screen_name(workflow_t *w,
const char* screen_name);
49 void wf_set_description(workflow_t *w,
const char* description);
50 void wf_set_long_desc(workflow_t *w,
const char* long_desc);
52 void wf_set_priority(workflow_t *w,
int priority);
59 int wf_priority_compare(
const workflow_t *first,
const workflow_t *second);
69 GHashTable *load_workflow_config_data_from_list(GList *wf_names,
const char *path);
78 #define load_workflow_config_data libreport_load_workflow_config_data 79 GHashTable *load_workflow_config_data(
const char* directory);