Ignore:
Timestamp:
Aug 20, 2006, 6:15:25 PM (15 years ago)
Author:
joshe
Message:

Allow frontend to change message output level.
Rename tr_setErrorFunction() to tr_setMessageFunction()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r788 r798  
    6262
    6363/***********************************************************************
    64  * tr_setErrorFunction
    65  ***********************************************************************
    66  * Sets the function used to display libtransmission errors.  A NULL
    67  * function means to use the default, which simple prints the message
    68  * to stderr.  The function's prototype should look like this:
    69  * void myErrFunc( const char * errstr );
    70  **********************************************************************/
    71 void tr_setErrorFunction( void (*func)( const char * ) );
     64 * tr_setMessageFunction
     65 ***********************************************************************
     66 * Sets the function used to display libtransmission messages.  This
     67 * function must be reentrant, it may be called from different threads.
     68 * A NULL argument means to print messages to stderr.  The function's
     69 * prototype should look like this: void myErrFunc( const char * );
     70 **********************************************************************/
     71void tr_setMessageFunction( void (*func)( const char * ) );
     72
     73/***********************************************************************
     74 * tr_setMessageLevel
     75 ***********************************************************************
     76 * Set the level of messages to be output
     77 **********************************************************************/
     78#define TR_MSG_ERR 1
     79#define TR_MSG_INF 2
     80#define TR_MSG_DBG 4
     81void tr_setMessageLevel( int );
     82int tr_getMessageLevel( void );
    7283
    7384/***********************************************************************
     
    8293 * tr_setBindPort
    8394 ***********************************************************************
    84  * Sets a "start" port: everytime we start a torrent, we try to bind
    85  * this port, then the next one and so on until we are successful.
     95 * Sets the port to listen for incoming peer connections
    8696 **********************************************************************/
    8797void tr_setBindPort( tr_handle_t *, int );
Note: See TracChangeset for help on using the changeset viewer.