Lines Matching defs:notifyEncapsulation

88     NotifyEncapsulation *notifyEncapsulation = NULL;
99 notifyEncapsulation = (NotifyEncapsulation *) malloc(sizeof(NotifyEncapsulation));
100 if (notifyEncapsulation == NULL) {
104 notifyEncapsulation->jApplicationData = (jApplication != NULL)
107 notifyEncapsulation->jNotifyObject = (*env)->NewGlobalRef(env, jNotify);
108 ckpApplication = notifyEncapsulation;
127 if (notifyEncapsulation != NULL) {
128 if (notifyEncapsulation->jApplicationData != NULL) {
132 free(notifyEncapsulation);
145 if (notifyEncapsulation != NULL) {
146 /* store the notifyEncapsulation to enable later cleanup */
147 putNotifyEntry(env, ckSessionHandle, notifyEncapsulation);
171 NotifyEncapsulation *notifyEncapsulation;
184 notifyEncapsulation = removeNotifyEntry(env, ckSessionHandle);
186 if (notifyEncapsulation != NULL) {
190 (*env)->DeleteGlobalRef(env, notifyEncapsulation->jNotifyObject);
191 jApplicationData = notifyEncapsulation->jApplicationData;
195 free(notifyEncapsulation);
216 NotifyEncapsulation *notifyEncapsulation;
230 while ((notifyEncapsulation = removeFirstNotifyEntry(env)) != NULL) {
234 (*env)->DeleteGlobalRef(env, notifyEncapsulation->jNotifyObject);
235 jApplicationData = notifyEncapsulation->jApplicationData;
239 free(notifyEncapsulation);
427 * If notifyEncapsulation is NULL, this function does nothing.
429 void putNotifyEntry(JNIEnv *env, CK_SESSION_HANDLE hSession, NotifyEncapsulation *notifyEncapsulation) {
432 if (notifyEncapsulation == NULL) {
442 newNode->notifyEncapsulation = notifyEncapsulation;
464 * Removes the active notifyEncapsulation object used with the given session and
465 * returns it. If there is no notifyEncapsulation active for this session, this
469 NotifyEncapsulation *notifyEncapsulation;
476 notifyEncapsulation = NULL;
497 notifyEncapsulation = currentNode->notifyEncapsulation;
501 notifyEncapsulation = NULL;
507 return notifyEncapsulation ;
512 * Removes the first notifyEncapsulation object. If there is no notifyEncapsulation,
516 NotifyEncapsulation *notifyEncapsulation;
523 notifyEncapsulation = NULL;
528 notifyEncapsulation = currentNode->notifyEncapsulation;
534 return notifyEncapsulation ;
560 NotifyEncapsulation *notifyEncapsulation;
577 notifyEncapsulation = (NotifyEncapsulation *) pApplication;
609 (*env)->CallVoidMethod(env, notifyEncapsulation->jNotifyObject, jmethod,
610 jSessionHandle, jEvent, notifyEncapsulation->jApplicationData);