diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-07 15:33:13 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-07 15:33:13 +0200 |
commit | b37ddeee2b08dac0510ebeeaaa20b0db2e50ee6b (patch) | |
tree | 788def4c3d8e71a5f6e6327acb045e524d45241b /inc | |
parent | 1f8c1b702ec7436f26f9daf011cd30771e7bbb0d (diff) | |
download | abrt-b37ddeee2b08dac0510ebeeaaa20b0db2e50ee6b.tar.gz abrt-b37ddeee2b08dac0510ebeeaaa20b0db2e50ee6b.tar.xz abrt-b37ddeee2b08dac0510ebeeaaa20b0db2e50ee6b.zip |
make crash_types.h usable from C
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/crash_types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/inc/crash_types.h b/inc/crash_types.h index 25dbcd46..e786cc5a 100644 --- a/inc/crash_types.h +++ b/inc/crash_types.h @@ -86,10 +86,21 @@ #define CD_ISNOTEDITABLE "n" +#ifdef __cplusplus +extern "C" { +#endif + extern const char *const must_have_files[]; bool is_editable_file(const char *file_name); +#ifdef __cplusplus +} +#endif + + +#ifdef __cplusplus + // <key, data> typedef map_vector_string_t map_crash_data_t; typedef std::vector<map_crash_data_t> vector_map_crash_data_t; @@ -110,4 +121,7 @@ const std::string& get_crash_data_item_content(const map_crash_data_t& crash_dat void log_map_crash_data(const map_crash_data_t& data, const char *name); +#endif /* __cplusplus */ + + #endif |