From 9d2cb4518c3a8a72ccc714ddbc131aaa84506092 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 10 Nov 2010 00:10:22 +0100 Subject: Decouple settings handling from old-style plugins The breakage was discovered when i removed Logger class. it turned out the fix is somewhat involved. This change implements it as discussed with the rest of the team. Signed-off-by: Denys Vlasenko --- inc/abrtlib.h | 2 ++ inc/plugin.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/abrtlib.h b/inc/abrtlib.h index a665b10f..4d565644 100644 --- a/inc/abrtlib.h +++ b/inc/abrtlib.h @@ -93,6 +93,8 @@ char *concat_path_file(const char *path, const char *filename); char *append_to_malloced_string(char *mstr, const char *append); char* skip_whitespace(const char *s); char* skip_non_whitespace(const char *s); +/* Like strcpy but can copy overlapping strings. */ +void overlapping_strcpy(char *dst, const char *src); /* A-la fgets, but malloced and of unlimited size */ char *xmalloc_fgets(FILE *file); diff --git a/inc/plugin.h b/inc/plugin.h index a22d0f67..e0f45b6c 100644 --- a/inc/plugin.h +++ b/inc/plugin.h @@ -63,7 +63,8 @@ class CPlugin * A method, which return current settings. It is not mandatory method. * @return Plugin's settings */ - virtual const map_plugin_settings_t& GetSettings(); +/// +// virtual const map_plugin_settings_t& GetSettings(); }; /** -- cgit