cddb_error.h File Reference

#include <stdio.h>

Go to the source code of this file.

Defines

#define CDDB_ERROR_H   1

Enumerations

enum  cddb_error_t {
  CDDB_ERR_OK = 0, CDDB_ERR_OUT_OF_MEMORY, CDDB_ERR_LINE_SIZE, CDDB_ERR_NOT_IMPLEMENTED,
  CDDB_ERR_UNKNOWN, CDDB_ERR_SERVER_ERROR, CDDB_ERR_UNKNOWN_HOST_NAME, CDDB_ERR_CONNECT,
  CDDB_ERR_PERMISSION_DENIED, CDDB_ERR_NOT_CONNECTED, CDDB_ERR_UNEXPECTED_EOF, CDDB_ERR_INVALID_RESPONSE,
  CDDB_ERR_DISC_NOT_FOUND, CDDB_ERR_DATA_MISSING, CDDB_ERR_TRACK_NOT_FOUND, CDDB_ERR_REJECTED,
  CDDB_ERR_EMAIL_INVALID, CDDB_ERR_INVALID_CHARSET, CDDB_ERR_ICONV_FAIL, CDDB_ERR_PROXY_AUTH,
  CDDB_ERR_INVALID, CDDB_ERR_LAST
}
 A list of error codes returned by various libcddb functions. More...

Functions

const char * cddb_error_str (cddb_error_t errnum)
 Returns a string representation of the CDDB error code.
void cddb_error_stream_print (FILE *stream, cddb_error_t errnum)
 Prints the error message associated with the current error number on the given stream.
void cddb_error_print (cddb_error_t errnum)
 Prints the error message associated with the current error number to stderr.


Define Documentation

#define CDDB_ERROR_H   1
 


Enumeration Type Documentation

enum cddb_error_t
 

A list of error codes returned by various libcddb functions.

Enumerator:
CDDB_ERR_OK  no error occurred
CDDB_ERR_OUT_OF_MEMORY  out of memory
CDDB_ERR_LINE_SIZE  internal buffer too small
CDDB_ERR_NOT_IMPLEMENTED  feature not (yet) implemented
CDDB_ERR_UNKNOWN  problem unknown
CDDB_ERR_SERVER_ERROR  CDDB server error.
CDDB_ERR_UNKNOWN_HOST_NAME  unknown host name
CDDB_ERR_CONNECT  connection error
CDDB_ERR_PERMISSION_DENIED  permission denied
CDDB_ERR_NOT_CONNECTED  not yet connected or connection has been closed
CDDB_ERR_UNEXPECTED_EOF  unexpected end-of-file encountered
CDDB_ERR_INVALID_RESPONSE  invalid response data
CDDB_ERR_DISC_NOT_FOUND  no results found
CDDB_ERR_DATA_MISSING  some data is missing for executing a certain command
CDDB_ERR_TRACK_NOT_FOUND  specified track is not present
CDDB_ERR_REJECTED  posted data rejected
CDDB_ERR_EMAIL_INVALID  the e-mail address used when submitting is invalid
CDDB_ERR_INVALID_CHARSET  invalid character set or unsupported conversion
CDDB_ERR_ICONV_FAIL  character set conversion failed
CDDB_ERR_PROXY_AUTH  proxy authentication failed
CDDB_ERR_INVALID  invalid input parameter(s)
CDDB_ERR_LAST 


Function Documentation

void cddb_error_print cddb_error_t  errnum  ) 
 

Prints the error message associated with the current error number to stderr.

Parameters:
errnum The error number

const char* cddb_error_str cddb_error_t  errnum  ) 
 

Returns a string representation of the CDDB error code.

Returns:
The error string

void cddb_error_stream_print FILE *  stream,
cddb_error_t  errnum
 

Prints the error message associated with the current error number on the given stream.

Parameters:
stream The stream
errnum The error number


Generated on Sun Oct 15 14:49:15 2006 for libcddb by  doxygen 1.4.6