Go to the documentation of this file.
22 #ifndef _CSYNC_MACROS_H
23 #define _CSYNC_MACROS_H
29 #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
32 #define CSYNC_CUSTOM_ERRNO_BASE 10000
34 #define ERRNO_GENERAL_ERROR CSYNC_CUSTOM_ERRNO_BASE+2
35 #define ERRNO_LOOKUP_ERROR CSYNC_CUSTOM_ERRNO_BASE+3
36 #define ERRNO_USER_UNKNOWN_ON_SERVER CSYNC_CUSTOM_ERRNO_BASE+4
37 #define ERRNO_PROXY_AUTH CSYNC_CUSTOM_ERRNO_BASE+5
38 #define ERRNO_CONNECT CSYNC_CUSTOM_ERRNO_BASE+6
39 #define ERRNO_TIMEOUT CSYNC_CUSTOM_ERRNO_BASE+7
40 #define ERRNO_PRECONDITION CSYNC_CUSTOM_ERRNO_BASE+8
41 #define ERRNO_RETRY CSYNC_CUSTOM_ERRNO_BASE+9
42 #define ERRNO_REDIRECT CSYNC_CUSTOM_ERRNO_BASE+10
43 #define ERRNO_WRONG_CONTENT CSYNC_CUSTOM_ERRNO_BASE+11
44 #define ERRNO_TIMEDELTA CSYNC_CUSTOM_ERRNO_BASE+12
45 #define ERRNO_ERROR_STRING CSYNC_CUSTOM_ERRNO_BASE+13
46 #define ERRNO_SERVICE_UNAVAILABLE CSYNC_CUSTOM_ERRNO_BASE+14
47 #define ERRNO_QUOTA_EXCEEDED CSYNC_CUSTOM_ERRNO_BASE+15