19 #ifndef LIBREPORT_WORKFLOW_H
20 #define LIBREPORT_WORKFLOW_H
23 #include "event_config.h"
24 #include "config_item_info.h"
26 typedef struct workflow workflow_t;
28 extern GHashTable *g_workflow_list;
30 workflow_t *new_workflow(
const char *name);
31 workflow_t *get_workflow(
const char *name);
32 void free_workflow(workflow_t *w);
34 void load_workflow_description_from_file(workflow_t *w,
const char *filename);
35 config_item_info_t *workflow_get_config_info(workflow_t *w);
36 const char *wf_get_name(workflow_t *w);
37 GList *wf_get_event_list(workflow_t *w);
38 const char *wf_get_screen_name(workflow_t *w);
39 const char *wf_get_description(workflow_t *w);
40 const char *wf_get_long_desc(workflow_t *w);
42 void wf_set_screen_name(workflow_t *w,
const char* screen_name);
43 void wf_set_description(workflow_t *w,
const char* description);
44 void wf_set_long_desc(workflow_t *w,
const char* long_desc);
46 GHashTable *load_workflow_config_data_from_list(GList *wf_names,
const char *path);