diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/abrt_types.h | 2 | ||||
| -rw-r--r-- | src/include/abrtlib.h | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/include/abrt_types.h b/src/include/abrt_types.h index 858c0c79..200946e1 100644 --- a/src/include/abrt_types.h +++ b/src/include/abrt_types.h @@ -19,8 +19,6 @@ #ifndef ABRT_TYPES_H_ #define ABRT_TYPES_H_ -#include <glib.h> - #ifdef __cplusplus extern "C" { #endif diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h index 0c0d4be4..4ad2f6fc 100644 --- a/src/include/abrtlib.h +++ b/src/include/abrtlib.h @@ -42,6 +42,7 @@ #ifdef __cplusplus # include <string> #endif +#include <glib.h> #ifdef HAVE_CONFIG_H # include "config.h" @@ -184,6 +185,12 @@ char *run_in_shell_and_save_output(int flags, /* Random utility functions */ +/* Frees every element'd data using free(), + * then frees list itself using g_list_free(list): + */ +#define list_free_with_free abrt_list_free_with_free +void list_free_with_free(GList *list); + #define get_dirsize abrt_get_dirsize double get_dirsize(const char *pPath); #define get_dirsize_find_largest_dir abrt_get_dirsize_find_largest_dir |
