mirror of
https://github.com/sigmasternchen/Serwer
synced 2025-03-15 07:08:54 +00:00
23 lines
238 B
C
23 lines
238 B
C
![]() |
#ifndef WS_ERROR_H
|
||
|
#define WS_ERROR_H
|
||
|
|
||
|
#define EWS_SUC 0
|
||
|
// TODO
|
||
|
|
||
|
enum error_type {
|
||
|
ERRNO,
|
||
|
GAI,
|
||
|
WS
|
||
|
};
|
||
|
|
||
|
typedef struct error {
|
||
|
enum error_type type;
|
||
|
int no;
|
||
|
} error_t;
|
||
|
|
||
|
extern error_t ws_error;
|
||
|
|
||
|
const char* ws_strerror(void);
|
||
|
|
||
|
#endif
|