Changeset 653:34373acfbc6a in freeDiameter for include/freeDiameter/libfreeDiameter.h
- Timestamp:
- Jan 11, 2011, 12:18:09 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfreeDiameter.h
r649 r653 114 114 * None. 115 115 */ 116 void fd_log_debug ( c har * format, ... );116 void fd_log_debug ( const char * format, ... ); 117 117 extern pthread_mutex_t fd_log_lock; 118 118 extern char * fd_debug_one_function; … … 195 195 /* A version of __FILE__ without the full path */ 196 196 static char * file_bname = NULL; 197 #define __STRIPPED_FILE__ (file_bname ?: (file_bname = basename( __FILE__)))197 #define __STRIPPED_FILE__ (file_bname ?: (file_bname = basename((char *)__FILE__))) 198 198 199 199 … … 216 216 if ( TRACE_BOOL(level) ) { \ 217 217 char __buf[25]; \ 218 c har * __thn = ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed"); \218 const char * __thn = ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed"); \ 219 219 fd_log_debug("\t | tid:%-20s\t%s\tin %s@%s:%d\n" \ 220 220 "\t%s|%*s" format "\n", \ … … 229 229 if (fd_g_debug_lvl > FULL) { \ 230 230 char __buf[25]; \ 231 c har * __thn = ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed"); \231 const char * __thn = ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed"); \ 232 232 fd_log_debug("\t | tid:%-20s\t%s\tin %s@%s:%d\n" \ 233 233 "\t%s|%*s" format "\n", \ … … 484 484 485 485 /* helper macros (pre-processor hacks to allow macro arguments) */ 486 #define __ str( arg ) #arg487 #define _stringize( arg ) __ str( arg )486 #define __tostr( arg ) #arg 487 #define _stringize( arg ) __tostr( arg ) 488 488 #define __agr( arg1, arg2 ) arg1 ## arg2 489 489 #define _aggregate( arg1, arg2 ) __agr( arg1, arg2 ) … … 1629 1629 * len : length of the sid string (which does not need to be '\0'-terminated) 1630 1630 * session : On success, pointer to the session object created / retrieved. 1631 * new: if not NULL, set to 1 on return if the session object has been created, 0 if it was simply retrieved.1631 * isnew : if not NULL, set to 1 on return if the session object has been created, 0 if it was simply retrieved. 1632 1632 * 1633 1633 * DESCRIPTION: … … 1640 1640 * ENOMEM : Not enough memory to complete the operation 1641 1641 */ 1642 int fd_sess_fromsid ( char * sid, size_t len, struct session ** session, int * new);1642 int fd_sess_fromsid ( char * sid, size_t len, struct session ** session, int * isnew); 1643 1643 1644 1644 /* … … 2226 2226 * msg : A valid message. 2227 2227 * session : Location to store the session pointer when retrieved. 2228 * new: Indicates if the session has been created.2228 * isnew : Indicates if the session has been created. 2229 2229 * 2230 2230 * DESCRIPTION: … … 2237 2237 * !0 : standard error code. 2238 2238 */ 2239 int fd_msg_sess_get(struct dictionary * dict, struct msg * msg, struct session ** session, int * new);2239 int fd_msg_sess_get(struct dictionary * dict, struct msg * msg, struct session ** session, int * isnew); 2240 2240 2241 2241 /***************************************/ … … 2664 2664 * 2665 2665 * PARAMETERS: 2666 * old 2667 * new 2666 * oldq : Location of a FIFO that is to be emptied. 2667 * newq : A FIFO that will receive the old data. 2668 2668 * loc_update : if non NULL, a place to store the pointer to new FIFO atomically with the move. 2669 2669 * … … 2675 2675 * EINVAL : A parameter is invalid. 2676 2676 */ 2677 int fd_fifo_move ( struct fifo * old , struct fifo * new, struct fifo ** loc_update );2677 int fd_fifo_move ( struct fifo * oldq, struct fifo * newq, struct fifo ** loc_update ); 2678 2678 2679 2679 /*
Note: See TracChangeset
for help on using the changeset viewer.