Well, the first issue is that you are not declaring any components type variable like:

Code:
struct components var_components;
From what I gather components is a DATA TYPE not a VARIABLE. Correct?