lt_debug: use C linkage, allows usage from non-C++ code

This commit is contained in:
Stefan Seyfried
2013-10-13 22:43:19 +02:00
parent 510b655710
commit e9b6f6c88b
3 changed files with 7 additions and 1 deletions

View File

@@ -4,5 +4,5 @@ AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing
libcommon_la_SOURCES = \
ca.cpp \
lt_debug.cpp \
lt_debug.c \
proc_tools.c

View File

@@ -21,10 +21,16 @@
#define HAL_DEBUG_RECORD 7
#define HAL_DEBUG_ALL ((1<<8)-1)
#ifdef __cplusplus
extern "C" {
#endif
extern int debuglevel;
void hal_set_threadname(const char *name);
void _lt_debug(int facility, const void *, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
void _lt_info(int facility, const void *, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
void lt_debug_init(void);
#ifdef __cplusplus
}
#endif
#endif