POK
/home/jaouen/pok_official/pok/trunk/libpok/include/core/dependencies.h
00001 /*
00002  *                               POK header
00003  * 
00004  * The following file is a part of the POK project. Any modification should
00005  * made according to the POK licence. You CANNOT use this file or a part of
00006  * this file is this part of a file for your own project
00007  *
00008  * For more information on the POK licence, please see our LICENCE FILE
00009  *
00010  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
00011  *
00012  *                                      Copyright (c) 2007-2009 POK team 
00013  *
00014  * Created by julien on Mon Apr  6 21:33:22 2009 
00015  */
00016 
00017 #ifndef __LIBPOK_DEPENDENCIES_H__
00018 #define __LIBPOK_DEPENDENCIES_H__
00019 
00020 
00021 #ifdef POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE
00022 
00023 #ifdef POK_NEEDS_LIBC_STDIO
00024    #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
00025    #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
00026    #endif
00027 
00028    #ifndef POK_CONFIG_NEEDS_FUNC_PRINTF
00029    #define POK_CONFIG_NEEDS_FUNC_PRINTF 1
00030    #endif
00031 
00032    #ifndef POK_CONFIG_NEEDS_FUNC_VPRINTF
00033    #define POK_CONFIG_NEEDS_FUNC_VPRINTF 1
00034    #endif
00035 #endif
00036 
00037 #ifdef POK_NEEDS_LIBC_STDLIB
00038    #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
00039    #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
00040    #endif
00041 
00042    #ifndef POK_NEEDS_ALLOCATOR
00043    #define POK_NEEDS_ALLOCATOR                  1
00044    #endif
00045    
00046    #ifndef POK_CONFIG_NEEDS_FUNC_RAND
00047    #define POK_CONFIG_NEEDS_FUNC_RAND           1
00048    #endif
00049 
00050    #ifndef POK_CONFIG_NEEDS_FUNC_MALLOC
00051    #define POK_CONFIG_NEEDS_FUNC_MALLOC         1
00052    #endif
00053 
00054    #ifndef POK_CONFIG_NEEDS_FUNC_CALLOC
00055    #define POK_CONFIG_NEEDS_FUNC_CALLOC         1
00056    #endif
00057 
00058    #ifndef POK_CONFIG_NEEDS_FUNC_FREE
00059    #define POK_CONFIG_NEEDS_FUNC_FREE           1
00060    #endif
00061 #endif /* POK_NEEDS_STDLIB */
00062 
00063 #ifdef POK_NEEDS_STRING
00064    #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
00065    #define POK_CONFIG_NEEDS_FUNC_MEMCPY         1
00066    #endif
00067 
00068    #ifndef POK_CONFIG_NEEDS_FUNC_MEMSET
00069    #define POK_CONFIG_NEEDS_FUNC_MEMSET         1
00070    #endif
00071 
00072    #ifndef POK_CONFIG_NEEDS_FUNC_MEMCMP
00073    #define POK_CONFIG_NEEDS_FUNC_MEMCMP         1
00074    #endif
00075 
00076    #ifndef POK_CONFIG_NEEDS_FUNC_STRCMP
00077    #define POK_CONFIG_NEEDS_FUNC_STRCMP         1
00078    #endif
00079 
00080    #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
00081    #define POK_CONFIG_NEEDS_FUNC_STRNCMP        1
00082    #endif
00083 
00084    #ifndef POK_CONFIG_NEEDS_FUNC_STRCPY
00085    #define POK_CONFIG_NEEDS_FUNC_STRCPY         1
00086    #endif
00087 
00088    #ifndef POK_CONFIG_NEEDS_FUNC_STRNCPY
00089    #define POK_CONFIG_NEEDS_FUNC_STRNCPY        1
00090    #endif
00091 
00092    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00093    #define POK_CONFIG_NEEDS_FUNC_STRLEN         1
00094    #endif
00095 
00096    #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
00097    #define POK_CONFIG_NEEDS_FUNC_STREQ          1
00098    #endif
00099 #endif /* POK_NEEDS_STRING */
00100 
00101 #ifdef POK_NEEDS_PROTOCOLS_DES
00102    #ifndef POK_CONFIG_NEEDS_FUNC_MEMCMP
00103    #define POK_CONFIG_NEEDS_FUNC_MEMCMP 1
00104    #endif
00105 
00106    #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
00107    #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
00108    #endif
00109 #endif
00110 
00111 
00112 #ifdef POK_NEEDS_PROTOCOLS_BLOWFISH
00113    #ifndef POK_CONFIG_NEEDS_FUNC_MEMCPY
00114    #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
00115    #endif
00116 #endif
00117 
00118 
00119 #ifdef POK_NEEDS_ARINC653_PROCESS
00120    #define POK_NEEDS_THREADS 1
00121    #ifndef POK_CONFIG_NEEDS_FUNC_STRCPY
00122    #define POK_CONFIG_NEEDS_FUNC_STRCPY 1
00123    #endif
00124 
00125    #ifndef POK_CONFIG_NEEDS_FUNC_STRCMP
00126    #define POK_CONFIG_NEEDS_FUNC_STRCMP 1
00127    #endif
00128 
00129    #ifndef POK_NEEDS_THREAD_ID
00130    #define POK_NEEDS_THREAD_ID 1
00131    #endif
00132 #endif
00133 
00134 #ifdef POK_NEEDS_ARINC653_PARTITION
00135    #define POK_NEEDS_PARTITIONS 1
00136 #endif
00137 
00138 #ifdef POK_NEEDS_ARINC653_QUEUEING
00139    #define POK_NEEDS_PORTS_QUEUEING 1
00140 #endif
00141 
00142 #ifdef POK_NEEDS_ARINC653_SAMPLING
00143    #define POK_NEEDS_PORTS_SAMPLING 1
00144 #endif
00145 
00146 
00147 #ifdef POK_NEEDS_ARINC653_EVENT
00148    #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
00149    #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
00150    #endif
00151 
00152    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00153    #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
00154    #endif
00155 #endif
00156 
00157 
00158 #ifdef POK_NEEDS_ARINC653_BUFFER
00159    #ifndef POK_NEEDS_MIDDLEWARE
00160    #define POK_NEEDS_MIDDLEWARE 1
00161    #endif
00162 
00163    #ifndef POK_NEEDS_BUFFERS
00164    #define POK_NEEDS_BUFFERS 1
00165    #endif
00166 
00167    #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
00168    #define POK_CONFIG_NEEDS_FUNC_STREQ 1
00169    #endif
00170 
00171    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00172    #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
00173    #endif
00174 
00175    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00176    #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
00177    #endif
00178 
00179 #endif
00180 
00181 #ifdef POK_NEEDS_ARINC653_BLACKBOARD
00182    #ifndef POK_NEEDS_MIDDLEWARE
00183    #define POK_NEEDS_MIDDLEWARE 1
00184    #endif
00185 
00186    #ifndef POK_NEEDS_BLACKBOARDS
00187    #define POK_NEEDS_BLACKBOARDS 1
00188    #endif
00189 
00190    #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
00191    #define POK_CONFIG_NEEDS_FUNC_STREQ 1
00192    #endif
00193 
00194    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00195    #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
00196    #endif
00197 
00198    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00199    #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
00200    #endif
00201 #endif
00202 
00203 #ifdef POK_NEEDS_ARINC653_SEMAPHORE
00204    #define POK_NEEDS_SEMAPHORES                 1
00205 
00206    #ifndef POK_CONFIG_NEEDS_FUNC_STRNCMP
00207    #define POK_CONFIG_NEEDS_FUNC_STRNCMP 1
00208    #endif
00209 
00210    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00211    #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
00212    #endif
00213 #endif
00214 
00215 #ifdef POK_NEEDS_ARINC653_ERROR
00216    #ifndef POK_NEEDS_ERROR_HANDLING
00217    #define POK_NEEDS_ERROR_HANDLING 1
00218    #endif
00219 
00220    #ifndef POK_NEEDS_FUNC_MEMCPY
00221    #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
00222    #endif
00223 #endif
00224 
00225 #if defined (POK_NEEDS_ERROR_HANDLING)
00226    #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
00227    #define POK_NEEDS_FUNCTION_TIME_GETTICK
00228    #endif
00229 #endif
00230 
00231 #ifdef POK_NEEDS_MUTEXES
00232    #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
00233    #define POK_NEEDS_FUNCTION_TIME_GETTICK
00234    #endif
00235 #endif
00236 
00237 #ifdef POK_NEEDS_EVENTS
00238    #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
00239    #define POK_NEEDS_FUNCTION_TIME_GETTICK
00240    #endif
00241 #endif
00242 
00243 
00244 #ifdef POK_NEEDS_BUFFERS
00245    #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
00246    #define POK_NEEDS_FUNCTION_TIME_GETTICK
00247    #endif
00248 
00249    #ifndef POK_NEEDS_FUNC_MEMCPY
00250    #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
00251    #endif
00252 
00253    #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
00254    #define POK_CONFIG_NEEDS_FUNC_STREQ 1
00255    #endif
00256 
00257    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00258    #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
00259    #endif
00260 #endif
00261 
00262 #ifdef POK_NEEDS_BLACKBOARDS
00263    #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
00264    #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
00265    #endif
00266 
00267    #ifndef POK_CONFIG_NEEDS_FUNC_STREQ
00268    #define POK_CONFIG_NEEDS_FUNC_STREQ 1
00269    #endif
00270 
00271    #ifndef POK_CONFIG_NEEDS_FUNC_STRLEN
00272    #define POK_CONFIG_NEEDS_FUNC_STRLEN 1
00273    #endif
00274 
00275    #ifndef POK_NEEDS_FUNC_MEMCPY
00276    #define POK_CONFIG_NEEDS_FUNC_MEMCPY 1
00277    #endif
00278 #endif
00279 
00280 #ifdef POK_NEEDS_TIME
00281    #ifndef POK_NEEDS_FUNCTION_TIME_GETTICK
00282    #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
00283    #endif
00284 #endif
00285 #endif /* POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE */
00286 
00287 /*************************************************/
00288 
00289 #ifndef POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE
00290 
00291 /* core functions */
00292 #ifndef POK_NEEDS_FUNCTIONS_TIME_GETTICK
00293 #define POK_NEEDS_FUNCTION_TIME_GETTICK 1
00294 #endif
00295 
00296 #ifndef POK_NEEDS_SEMAPHORS
00297 #define POK_NEEDS_SEMAPHORES            1
00298 #endif
00299 
00300 #ifndef POK_NEEDS_THREADS
00301 #define POK_NEEDS_THREADS               1
00302 #endif
00303 
00304 #define POK_NEEDS_PORTS_QUEUEING        1
00305 #define POK_NEEDS_PARTITIONS            1
00306 #define POK_NEEDS_BUFFERS               1
00307 #define POK_NEEDS_BLACKBOARDS           1
00308 #define POK_NEEDS_SEMAPHORES            1
00309 
00310 /* string.h functions */
00311 #define POK_CONFIG_NEEDS_FUNC_MEMCPY         1
00312 #define POK_CONFIG_NEEDS_FUNC_MEMSET         1
00313 #define POK_CONFIG_NEEDS_FUNC_MEMCMP         1
00314 #define POK_CONFIG_NEEDS_FUNC_STRCMP         1
00315 #define POK_CONFIG_NEEDS_FUNC_STRNCMP        1
00316 #define POK_CONFIG_NEEDS_FUNC_STRCPY         1
00317 #define POK_CONFIG_NEEDS_FUNC_STRNCPY        1
00318 #define POK_CONFIG_NEEDS_FUNC_STRLEN         1
00319 #define POK_CONFIG_NEEDS_FUNC_STREQ          1
00320 #define POK_CONFIG_NEEDS_FUNC_ITOA           1
00321 #define POK_CONFIG_NEEDS_FUNC_UDIVDI3        1
00322 
00323 /*
00324  * Memory allocator, core partition functions.
00325  */
00326 #define POK_NEEDS_ALLOCATOR                  1
00327 
00328 /* stdlib.h functions */
00329 #define POK_CONFIG_NEEDS_FUNC_RAND           1
00330 #define POK_CONFIG_NEEDS_FUNC_MALLOC         1
00331 #define POK_CONFIG_NEEDS_FUNC_CALLOC         1
00332 #define POK_CONFIG_NEEDS_FUNC_FREE           1
00333 
00334 #endif /* POK_CONFIG_OPTIMIZE_FOR_GENERATED_CODE */
00335 
00336 #endif