Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Color_Scales.c
Go to the documentation of this file.
1 #include "Color_Scales.h"
2 
3 #include <string.h>
4 
5 
6 
8 {
9  int i;
10 
11  for( i = 0 ; i < SCALE_COUNT ; i++ )
12  {
13  if( !strcasecmp( Color_Scale_names[i], name ) )
14  {
15  return i;
16  }
17  }
18 
19 
20  /* By default do temperature */
21  return SCALE_TEMPERATURE;
22 }
static const char *const Color_Scale_names[SCALE_COUNT]
Definition: Color_Scales.h:19
Color_Scale_t Color_Scale_from_name(char *name)
Definition: Color_Scales.c:7
Color_Scale_t
Definition: Color_Scales.h:5