Example for self-defined struct in api file

Is it same issue as this one?

Are you using REFERENCE ?
Better attach your full source code here.