[jni] remove duplicate typedef
[jni] define public only function container as struct, as previously declared