aboutsummaryrefslogtreecommitdiff
path: root/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/error.h b/src/error.h
new file mode 100644
index 00000000..facac79d
--- /dev/null
+++ b/src/error.h
@@ -0,0 +1,33 @@
1/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved.
2 *
3 * See the LICENSE file
4 *
5 * The origin of this software must not be misrepresented, either by
6 * explicit claim or by omission. Since few users ever read sources,
7 * credits must appear in the documentation.
8 *
9 * date: Tue 9 Sep 06:45:13 2003 GMT
10 *
11 * libwebserver error codes
12 *
13 */
14
15
16#ifndef _ERROR_H_
17#define _ERROR_H_
18
19#include <stdio.h>
20#include <stdlib.h>
21#include <stdarg.h>
22
23
24#define LE_MEMORY 0 // memory error
25#define LE_FILESYS 1 // file error
26#define LE_NET 2 // net error
27
28#define LWSERR(x) libws_error(x,"file: %s - line: %d\n",__FILE__, __LINE__);
29
30void libws_error(unsigned int, const char *,...);
31
32
33#endif