5 #include "jorte/4all.h"
6 #include "jorte/jorte_protos_api.h"
9 createSubInfo(JNIEnv *env, const ORTESubInfo *sinfo)
20 cls = findClass(env, "org.ocera.orte.types.SubInfo");
23 printf(":!c: cls = NULL \n");
27 // call object constructor
28 mid = (*env)->GetMethodID(env, cls, "<init>", "()V");
31 printf(":!c: constructor failed! \n");
36 obj = (*env)->NewObject(env, cls, mid);
39 printf(":!c: obj = NULL \n");
43 /////////////////////////////////////////////////
45 if (!setTopic(env, cls, obj, sinfo->topic)) {
47 printf(":!c: seTopic() failed! \n");
52 if (!setType(env, cls, obj, sinfo->type)) {
54 printf(":!c: seType() failed! \n");
58 /////////////////////////////////////////////////