Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4755 → Rev 4756

/branches/network/uspace/srv/net/app/print_error.h
38,13 → 38,13
#define __NET_APP_PRINT__
 
/** Returns whether the error code may be an ICMP error code.
* @param error_code The error code. Input parameter.
* @param[in] error_code The error code.
* @returns A value indicating whether the error code may be an ICMP error code.
*/
#define IS_ICMP_ERROR( error_code ) (( error_code ) > 0 )
 
/** Returns whether the error code may be socket error code.
* @param error_code The error code. Input parameter.
* @param[in] error_code The error code.
* @returns A value indicating whether the error code may be a socket error code.
*/
#define IS_SOCKET_ERROR( error_code ) (( error_code ) < 0 )
51,26 → 51,26
 
/** Prints the error description.
* Supports ICMP and socket error codes.
* @param output The description output stream. May be NULL. Input parameter.
* @param error_code The error code. Input parameter.
* @param prefix The error description prefix. May be NULL. Input parameter.
* @param suffix The error description suffix. May be NULL. Input parameter.
* @param[in] output The description output stream. May be NULL.
* @param[in] error_code The error code.
* @param[in] prefix The error description prefix. May be NULL.
* @param[in] suffix The error description suffix. May be NULL.
*/
void print_error( FILE * output, int error_code, const char * prefix, const char * suffix );
 
/** Prints the specific ICMP error description.
* @param output The description output stream. May be NULL. Input parameter.
* @param error_code The ICMP error code. Input parameter.
* @param prefix The error description prefix. May be NULL. Input parameter.
* @param suffix The error description suffix. May be NULL. Input parameter.
* @param[in] output The description output stream. May be NULL.
* @param[in] error_code The ICMP error code.
* @param[in] prefix The error description prefix. May be NULL.
* @param[in] suffix The error description suffix. May be NULL.
*/
void icmp_print_error( FILE * output, int error_code, const char * prefix, const char * suffix );
 
/** Prints the specific socket error description.
* @param output The description output stream. May be NULL. Input parameter.
* @param error_code The socket error code. Input parameter.
* @param prefix The error description prefix. May be NULL. Input parameter.
* @param suffix The error description suffix. May be NULL. Input parameter.
* @param[in] output The description output stream. May be NULL.
* @param[in] error_code The socket error code.
* @param[in] prefix The error description prefix. May be NULL.
* @param[in] suffix The error description suffix. May be NULL.
*/
void socket_print_error( FILE * output, int error_code, const char * prefix, const char * suffix );