Navigation


Changeset 784:e87d083d0342 in freeDiameter for include


Ignore:
Timestamp:
Mar 30, 2012, 4:19:33 AM (12 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added ability to register another log function; thanks to Zack for the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r778 r784  
    154154 */
    155155char * fd_log_time ( struct timespec * ts, char * buf, size_t len );
     156
     157/*
     158 * FUNCTION:    fd_log_handler_register
     159 * MACRO:
     160 *
     161 * PARAMETERS:
     162 *  fstr        : Stream where the text will be sent (default: stdout)
     163 *  format      : Same format string as in the printf function
     164 *  va_list     : Argument list
     165 *
     166 * DESCRIPTION:
     167 * Register an external method for logging purposes.
     168 *
     169 * RETURN VALUE:
     170 * int          : Success or failure
     171 */
     172int fd_log_handler_register ( void (*logger)(const char * format, va_list *args) );
     173
     174/*
     175 * FUNCTION:    fd_log_handler_unregister
     176 * MACRO:
     177 *
     178 * PARAMETERS:
     179 *
     180 * DESCRIPTION:
     181 * Unregister the external logging function.
     182 *
     183 * RETURN VALUE:
     184 * int          : Success or failure
     185 */
     186int fd_log_handler_unregister ( void );
    156187
    157188
Note: See TracChangeset for help on using the changeset viewer.