libreport  2.1.9
A tool to inform users about various problems on the running system
workflow.h
1 /*
2  Copyright (C) 2011 ABRT team
3  Copyright (C) 2010 RedHat Inc
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 #ifndef LIBREPORT_WORKFLOW_H
20 #define LIBREPORT_WORKFLOW_H
21 
22 #include <glib.h>
23 #include "event_config.h"
24 #include "config_item_info.h"
25 
26 typedef struct workflow workflow_t;
27 
28 extern GHashTable *g_workflow_list;
29 
30 workflow_t *new_workflow(const char *name);
31 workflow_t *get_workflow(const char *name);
32 void free_workflow(workflow_t *w);
33 
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 GList *wf_get_event_names(workflow_t *w);
39 const char *wf_get_screen_name(workflow_t *w);
40 const char *wf_get_description(workflow_t *w);
41 const char *wf_get_long_desc(workflow_t *w);
42 
43 void wf_set_screen_name(workflow_t *w, const char* screen_name);
44 void wf_set_description(workflow_t *w, const char* description);
45 void wf_set_long_desc(workflow_t *w, const char* long_desc);
46 void wf_add_event(workflow_t *w, event_config_t *ec);
47 GHashTable *load_workflow_config_data_from_list(GList *wf_names, const char *path);
48 
49 #endif