Go to the documentation of this file. 39 #define CH_FEATURES_BASIC 0 40 #define CH_FEATURES_INTERMEDIATE 1 41 #define CH_FEATURES_FULL 2 47 #define CH_DEPLOY_UNLIMITED -1 48 #define CH_DEPLOY_NONE 0 55 #define CH_LICENSE_GPL 0 56 #define CH_LICENSE_GPL_EXCEPTION 1 57 #define CH_LICENSE_COMMERCIAL_FREE 2 58 #define CH_LICENSE_COMMERCIAL_DEV_1000 3 59 #define CH_LICENSE_COMMERCIAL_DEV_5000 4 60 #define CH_LICENSE_COMMERCIAL_FULL 5 61 #define CH_LICENSE_COMMERCIAL_RUNTIME 6 62 #define CH_LICENSE_PARTNER 7 66 #if CH_LICENSE == CH_LICENSE_PARTNER 67 #include "chpartner.h" 69 #if CH_LICENSE == CH_LICENSE_COMMERCIAL_RUNTIME 70 #include "chruntime.h" 81 #if (CH_LICENSE == CH_LICENSE_GPL) || defined(__DOXYGEN__) 87 #define CH_LICENSE_TYPE_STRING "GNU General Public License 3 (GPL3)" 93 #define CH_LICENSE_ID_STRING "N/A" 99 #define CH_LICENSE_ID_CODE "N/A" 105 #define CH_LICENSE_MODIFIABLE_CODE TRUE 110 #define CH_LICENSE_FEATURES CH_FEATURES_FULL 117 #define CH_LICENSE_MAX_DEPLOY CH_DEPLOY_UNLIMITED 119 #elif CH_LICENSE == CH_LICENSE_GPL_EXCEPTION 120 #define CH_LICENSE_TYPE_STRING "GNU General Public License 3 (GPL3) + Exception" 121 #define CH_LICENSE_ID_STRING "N/A" 122 #define CH_LICENSE_ID_CODE "N/A" 123 #define CH_LICENSE_MODIFIABLE_CODE FALSE 124 #define CH_LICENSE_FEATURES CH_FEATURES_BASIC 125 #define CH_LICENSE_MAX_DEPLOY CH_DEPLOY_UNLIMITED 127 #elif CH_LICENSE == CH_LICENSE_COMMERCIAL_FREE 128 #define CH_LICENSE_TYPE_STRING "Zero Cost Registered License for 500 Cores" 129 #define CH_LICENSE_ID_STRING "N/A" 130 #define CH_LICENSE_ID_CODE "2017-0000" 131 #define CH_LICENSE_MODIFIABLE_CODE FALSE 132 #define CH_LICENSE_FEATURES CH_FEATURES_INTERMEDIATE 133 #define CH_LICENSE_MAX_DEPLOY 500 135 #elif CH_LICENSE == CH_LICENSE_COMMERCIAL_DEV_1000 136 #define CH_LICENSE_TYPE_STRING "Developer Commercial License for 1000 Cores" 137 #define CH_LICENSE_ID_STRING CH_CUSTOMER_ID_STRING 138 #define CH_LICENSE_ID_CODE CH_CUSTOMER_ID_CODE 139 #define CH_LICENSE_MODIFIABLE_CODE TRUE 140 #define CH_LICENSE_FEATURES CH_FEATURES_FULL 141 #define CH_LICENSE_DEPLOY_LIMIT 1000 143 #elif CH_LICENSE == CH_LICENSE_COMMERCIAL_DEV_5000 144 #define CH_LICENSE_TYPE_STRING "Developer Commercial License for 5000 Cores" 145 #define CH_LICENSE_ID_STRING CH_CUSTOMER_ID_STRING 146 #define CH_LICENSE_ID_CODE CH_CUSTOMER_ID_CODE 147 #define CH_LICENSE_MODIFIABLE_CODE TRUE 148 #define CH_LICENSE_FEATURES CH_FEATURES_FULL 149 #define CH_LICENSE_DEPLOY_LIMIT 5000 151 #elif CH_LICENSE == CH_LICENSE_COMMERCIAL_FULL 152 #define CH_LICENSE_TYPE_STRING "Full Commercial License for Unlimited Deployment" 153 #define CH_LICENSE_ID_STRING CH_CUSTOMER_ID_STRING 154 #define CH_LICENSE_ID_CODE CH_CUSTOMER_ID_CODE 155 #define CH_LICENSE_MODIFIABLE_CODE TRUE 156 #define CH_LICENSE_FEATURES CH_FEATURES_FULL 157 #define CH_LICENSE_MAX_DEPLOY CH_DEPLOY_UNLIMITED 159 #elif CH_LICENSE == CH_LICENSE_COMMERCIAL_RUNTIME 160 #define CH_LICENSE_TYPE_STRING "Runtime Commercial License" 161 #define CH_LICENSE_ID_STRING CH_CUSTOMER_ID_STRING 162 #define CH_LICENSE_ID_CODE CH_CUSTOMER_ID_CODE 163 #define CH_LICENSE_MODIFIABLE_CODE TRUE 164 #define CH_LICENSE_FEATURES CH_FEATURES_FULL 165 #define CH_LICENSE_MAX_DEPLOY CH_RUNTIME_MAX_DEPLOY 167 #elif CH_LICENSE == CH_LICENSE_PARTNER 168 #define CH_LICENSE_TYPE_STRING "Partners Special Commercial License" 169 #define CH_LICENSE_ID_STRING CH_CUSTOMER_ID_STRING 170 #define CH_LICENSE_ID_CODE CH_CUSTOMER_ID_CODE 171 #define CH_LICENSE_MODIFIABLE_CODE CH_PARTNER_MODIFIABLE_CODE 172 #define CH_LICENSE_FEATURES CH_PARTNER_FEATURES 173 #define CH_LICENSE_MAX_DEPLOY CH_PARTNER_MAX_DEPLOY 176 #error "invalid licensing option"