Changeset 904:b839a1b1c1da in freeDiameter
- Timestamp:
- Dec 15, 2012, 6:55:06 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/_sample/hello.cpp
r740 r904 37 37 38 38 #include <iostream> 39 extern "C" { 40 #include <freeDiameter/extension.h> 41 42 } 39 40 #include <freeDiameter/extension.h> 43 41 44 42 extern "C" void mycppfunc(); /* will be called from C code */ -
include/freeDiameter/extension.h
r740 r904 37 37 #define _EXTENSION_H 38 38 39 #ifdef __cplusplus 40 extern "C" { 41 #endif 42 39 43 /* Include definition of freeDiameter API */ 40 44 #include <freeDiameter/freeDiameter-host.h> … … 62 66 } 63 67 68 #ifdef __cplusplus 69 } 70 #endif 71 64 72 #endif /* _EXTENSION_H */ -
include/freeDiameter/freeDiameter-host.h.in
r878 r904 37 37 #ifndef FD_IS_CONFIG 38 38 #define FD_IS_CONFIG 39 40 #ifdef __cplusplus 41 extern "C" { 42 #endif 39 43 40 44 #cmakedefine HAVE_NTOHLL … … 89 93 #endif /* FD_DEFAULT_CONF_FILENAME */ 90 94 95 #ifdef __cplusplus 96 } 97 #endif 98 91 99 #endif /* FD_IS_CONFIG */ -
include/freeDiameter/libfdcore.h
r808 r904 38 38 39 39 40 #ifdef __cplusplus 41 extern "C" { 42 #endif 43 40 44 #include <freeDiameter/libfdproto.h> 41 45 #include <gnutls/gnutls.h> … … 824 828 int fd_app_empty(struct fd_list * list); 825 829 830 #ifdef __cplusplus 831 } 832 #endif 833 826 834 #endif /* _LIBFDCORE_H */ -
include/freeDiameter/libfdproto.h
r903 r904 58 58 #define _LIBFDPROTO_H 59 59 60 #ifdef __cplusplus 61 extern "C" { 62 #endif 63 60 64 #ifndef FD_IS_CONFIG 61 65 #error "You must include 'freeDiameter-host.h' before this file." … … 146 150 * None. 147 151 */ 148 void fd_log_threadname ( c har * name );152 void fd_log_threadname ( const char * name ); 149 153 extern pthread_key_t fd_log_thname; 150 154 … … 3057 3061 void fd_fifo_dump(int level, char * name, struct fifo * queue, void (*dump_item)(int level, void * item)); 3058 3062 3063 #ifdef __cplusplus 3064 } 3065 #endif 3066 3059 3067 #endif /* _LIBFDPROTO_H */ -
libfdproto/log.c
r788 r904 108 108 109 109 /* Function to set the thread's friendly name */ 110 void fd_log_threadname ( c har * name )110 void fd_log_threadname ( const char * name ) 111 111 { 112 112 void * val = NULL; … … 118 118 if (TRACE_BOOL(ANNOYING)) { 119 119 if (val) { 120 fd_log_debug("(Thread '%s' renamed to '%s')\n", (char *)val, name );120 fd_log_debug("(Thread '%s' renamed to '%s')\n", (char *)val, name?:"(nil)"); 121 121 } else { 122 122 fd_log_debug("(Thread %p named '%s')\n", pthread_self(), name?:"(nil)");
Note: See TracChangeset
for help on using the changeset viewer.