diff include/freeDiameter/libfdproto.h @ 904:b839a1b1c1da

Make freeDiameter headers more C++ friendly -- thank you Thomas
author Sebastien Decugis <sdecugis@freediameter.net>
date Sat, 15 Dec 2012 10:55:06 +0100
parents 4382d7420e65
children b772af200865
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h	Fri Dec 14 21:24:34 2012 +0100
+++ b/include/freeDiameter/libfdproto.h	Sat Dec 15 10:55:06 2012 +0100
@@ -57,6 +57,10 @@
 #ifndef _LIBFDPROTO_H
 #define _LIBFDPROTO_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef FD_IS_CONFIG
 #error "You must include 'freeDiameter-host.h' before this file."
 #endif /* FD_IS_CONFIG */
@@ -145,7 +149,7 @@
  * RETURN VALUE:
  *  None.
  */
-void fd_log_threadname ( char * name );
+void fd_log_threadname ( const char * name );
 extern pthread_key_t	fd_log_thname;
 
 /*
@@ -3056,4 +3060,8 @@
 /* Dump a fifo list and optionally its inner elements -- beware of deadlocks! */
 void fd_fifo_dump(int level, char * name, struct fifo * queue, void (*dump_item)(int level, void * item));
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LIBFDPROTO_H */
"Welcome to our mercurial repository"