wmJNI.c
makeWmRec


WmRecord *
makeWmRec(
      WmContext *con,
      jobject oRef,
      jint type,
      jint size1,
      jint size2)
Creates a WmRecord. The primary structure for all service invocations is WmRecord. WmRecords implement four types: records(WM_RECORD), record arrays(WM_RECARRAY), string arrays(WM_STRARRAY), and string tables(WM_STRTABLE).

Structure of WmRecord:
      typedef struct WmRecord {
          WmContext *con;
          JNIEnv *env;
          jobject ref;
          jint type;
          jsize size1;
          jsize size2;
      } WmRecord;

Parameters:
WmContext *con - Invocation context when created.
jobject oRef - Local reference to this record's Values object.
jint type - The WmRecord type {RECORD|RECARRAY|STRARRAY|STRTABLE}.
jsize size1 - The first dimension(If its type is Array).
jsize size2 *con - The second dimension(If its type is Table).
Returns:
WmRecord * - WmRecord created in this call.