common: state: Add variable type as enum
The variable_type struct holds a name of its type. Checking the type of
a variable with this string needs much resources.

This patch introduce a enum of the variable type for better type
checking.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 7126dff commit dc74265d2ac074a18609d51bad1fdbd2bbcdd608
@Daniel Schultz Daniel Schultz authored on 3 Nov 2017
Sascha Hauer committed on 7 Nov 2017
Showing 2 changed files
View
common/state/state.h
View
common/state/state_variables.c