As long as the array is declared before it is called it doesn't matter what file you put it in. It will give you an "unknonw" type error if that was the case.
I haven't used cameras like this to much but don't they have "pos_x" instead of "x"? I could be wrong on that.