wmJNI.c
initWmContext


void
initWmContext(
      WmContext *con,
      JNIEnv *env,
      jint type)
Initialize WmContext and set initial values to fields of WmContext.

Structure of WmContext:
      typedef struct WmContext {
          JNIEnv *env;
          jint type;
          jobject ref;
          jthrowable err;
          jint errType;
          char * errMsg;
      } WmContext;

Parameters:
WmContext *con - WmContext needs to be initialized.
JNIEnv *env - JNI Environment when created.
jint type - The type of jobject.