Changeset 798 for trunk/libtransmission/transmission.h
- Timestamp:
- Aug 20, 2006, 6:15:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/transmission.h
r788 r798 62 62 63 63 /*********************************************************************** 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 **********************************************************************/ 71 void 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 81 void tr_setMessageLevel( int ); 82 int tr_getMessageLevel( void ); 72 83 73 84 /*********************************************************************** … … 82 93 * tr_setBindPort 83 94 *********************************************************************** 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 86 96 **********************************************************************/ 87 97 void tr_setBindPort( tr_handle_t *, int );
Note: See TracChangeset
for help on using the changeset viewer.