diff options
Diffstat (limited to 'src/libutil/map_private.h')
-rw-r--r-- | src/libutil/map_private.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/libutil/map_private.h b/src/libutil/map_private.h index e08c2dce3..de84322ec 100644 --- a/src/libutil/map_private.h +++ b/src/libutil/map_private.h @@ -23,18 +23,23 @@ #include "map.h" #include "ref.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef void (*rspamd_map_tmp_dtor) (gpointer p); + extern guint rspamd_map_log_id; #define msg_err_map(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \ - "map", map->tag, \ + "map", map->tag, \ G_STRFUNC, \ __VA_ARGS__) #define msg_warn_map(...) rspamd_default_log_function (G_LOG_LEVEL_WARNING, \ - "map", map->tag, \ + "map", map->tag, \ G_STRFUNC, \ __VA_ARGS__) #define msg_info_map(...) rspamd_default_log_function (G_LOG_LEVEL_INFO, \ - "map", map->tag, \ + "map", map->tag, \ G_STRFUNC, \ __VA_ARGS__) #define msg_debug_map(...) rspamd_conditional_debug_fast (NULL, NULL, \ @@ -209,4 +214,8 @@ struct http_callback_data { ref_entry_t ref; }; +#ifdef __cplusplus +} +#endif + #endif /* SRC_LIBUTIL_MAP_PRIVATE_H_ */ |