dcDCPL_Error.h File Reference

DPWSCore Portability layer error managements. More...


Data Structures

struct  dcpl_error
 A structure that is passed to most DCPL API to get a maximum of information about a platform error. More...

Defines

#define DCPL_REACTOR_INTR   -200
 Reactor interrupted.

Typedefs

typedef struct dcpl_error dcpl_error_t
 A structure that is passed to most DCPL API to get a maximum of information about a platform error.

Functions

int dcpl_init_error (struct dcpl_error *error_info)
 Initialize a DPCL error structure to "No error".
int dcpl_set_error (struct dcpl_error *error_info, int error, char *detail)
 Set a DPCL error structure.
const char * dcpl_error_string (struct dcpl_error *error_info, char *error_string_buf, int buflen)
 Get a message for a DCPL error.


Detailed Description

DPWSCore Portability layer error managements.


Define Documentation

#define DCPL_REACTOR_INTR   -200

Reactor interrupted.


Typedef Documentation

typedef struct dcpl_error dcpl_error_t

A structure that is passed to most DCPL API to get a maximum of information about a platform error.


Function Documentation

int dcpl_init_error ( struct dcpl_error error_info  ) 

Initialize a DPCL error structure to "No error".

Parameters:
error_info The error structure to initialize.
Returns:
A DCPL error code.

int dcpl_set_error ( struct dcpl_error error_info,
int  error,
char *  detail 
)

Set a DPCL error structure.

The syserr member should be set automatically.

Parameters:
error_info The error structure to initialize.
error The DPCL error.
detail An optional message string.
Returns:
A DCPL error code.

const char* dcpl_error_string ( struct dcpl_error error_info,
char *  error_string_buf,
int  buflen 
)

Get a message for a DCPL error.

Parameters:
error_info The DCPL error structure.
error_string_buf A buffer where the error string can be written
buflen The size of the buffer
Returns:
An error message.


Generated on Fri Apr 17 15:18:24 2009 for DPWSCore by  doxygen 1.5.8