> public: // <- error
Well if you're compiling this as C, then stop using C++ syntax in a struct.

> byte[] get_raw() const ....
And also stop using Java syntax for declaring byte arrays as well.