5 #include "jorte/4all.h"
6 #include "jorte/jorte_protos_api.h"
9 createPubInfo(JNIEnv *env, const ORTEPubInfo *pinfo)
19 cls = findClass(env, "org.ocera.orte.types.PubInfo");
22 printf(":!c: cls = NULL \n");
26 // call object constructor
27 mid = (*env)->GetMethodID(env, cls, "<init>", "()V");
30 printf(":!c: constructor failed! \n");
35 obj = (*env)->NewObject(env, cls, mid);
38 printf(":!c: obj = NULL \n");
42 /////////////////////////////////////////////////
44 if (!setTopic(env, cls, obj, pinfo->topic)) {
46 printf(":!c: seTopic() failed! \n");
51 if (!setType(env, cls, obj, pinfo->type)) {
53 printf(":!c: seType() failed! \n");
57 /////////////////////////////////////////////////