The Sequence Toolkit
www.sequence-toolkit.com
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
stk_common.h
Go to the documentation of this file.
1 
6 #ifndef STK_COMMON_H
7 #define STK_COMMON_H
8 
9 /* ------- Common error handling definitions ------- */
10 /* success/error typedef and return codes returned by the STK API */
16 typedef unsigned int stk_ret;
17 
18 #define STK_SUCCESS 0
20 #define STK_FAIL 1
22 #define STK_INCOMPLETE 2
24 #define STK_INVALID_ARG 3
29 #define STK_WOULDBLOCK 0x10
30 
35 #define STK_RESET 0x11
36 
42 #define STK_NOT_SUPPORTED 0x12
43 
48 #define STK_NETERR 0x20
49 
53 #define STK_DATA_TOO_LARGE 0x21
54 
59 #define STK_SYSERR 0x80
60 
62 #define STK_MEMERR 0x81
63 
65 #define STK_MAX_TIMERS 0x82
66 
68 #define STK_NOT_FOUND 0x83
69 
70 #define STK_NO_LICENSE 0x84
73 /* ------- Common logging level definitions ------- */
74 #define STK_LOG_NORMAL 1
75 #define STK_LOG_WARNING 2
76 #define STK_LOG_ERROR 3
77 #define STK_LOG_NET_ERROR 4
79 /* ------- Option processing definitions ------- */
80 
87 typedef struct stk_options_stct {
88  char *name;
89  void *data;
91 
92 /* ------- Per platform typedefs ------- */
96 #ifdef __CYGWIN__
97 typedef unsigned long long stk_uint64;
98 #else
99 typedef unsigned long stk_uint64;
100 #endif
101 
104 typedef unsigned int stk_uint32;
108 typedef unsigned short stk_uint16;
112 typedef unsigned char stk_uint8;
113 
118 typedef unsigned short stk_bool;
119 
120 #define STK_FALSE 0
121 #define STK_TRUE 1
123 #endif