libcsem
0.2
|
00001 /* 00002 * $Id: csem__common_8h_source.html,v 1.1 2013-04-22 20:16:23 hitoshi Exp $ 00003 * See Copyright for the status of this software. 00004 * uchida@w3.org 00005 */ 00006 #ifndef CSEM_COMMON_H 00007 #define CSEM_COMMON_H 00008 00009 #ifdef __cplusplus 00010 #define CSEM_NS_C_BEGIN extern "C" { 00011 #define CSEM_NS_C_END } 00012 #else 00013 #define CSEM_NS_C_BEGIN 00014 #define CSEM_NS_C_END 00015 #endif 00016 00017 CSEM_NS_C_BEGIN 00054 #include <stdint.h> 00056 #define CSEM_DEFAULT_BUF_SIZE 1024 00057 00058 #define CSEM_ALLOWED_MAX_ATTR_VALUE_SIZE 1024 00059 00060 typedef enum CSEM_Bool { 00061 CSEM_FALSE = 0, 00062 CSEM_TRUE = 1 00063 } CSEM_Bool; 00064 00066 typedef enum CSEM_Error { 00068 CSEM_ERROR_NONE = 0, 00070 CSEM_ERROR_PARAMETER, 00072 CSEM_ERROR_MEMORY, 00074 CSEM_ERROR_PARSE, 00076 CSEM_ERROR_URL, 00078 CSEM_ERROR_TOO_LARGE_FIELD 00079 } CSEM_Error; 00080 00081 CSEM_NS_C_END 00082 00083 #endif /* CSEM_COMMON_H */