POK
arincutils.c
1 /*
2  * POK header
3  *
4  * The following file is a part of the POK project. Any modification should
5  * made according to the POK licence. You CANNOT use this file or a part of
6  * this file is this part of a file for your own project
7  *
8  * For more information on the POK licence, please see our LICENCE FILE
9  *
10  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
11  *
12  * Copyright (c) 2007-2009 POK team
13  *
14  * Created by matias on Wed Apr 04 09:34:13 2012
15  */
16 
17 #ifdef POK_NEEDS_ARINC653_PROCESS
18 
19 #include <arinc653/arincutils.h>
20 #include <libc/string.h>
21 
26 uint32_t process_name_exist (PROCESS_NAME_TYPE *process_name)
27 {
28  int i;
29 
30  for (i = 0; i < POK_CONFIG_NB_THREADS; i++)
31  if (!strcmp(*process_name, arinc_process_attribute[i].NAME))
32  return i;
33  return 0;
34 }
35 
36 #endif