equal
deleted
inserted
replaced
160 CommsEndpoint* endpoint = reinterpret_cast<CommsEndpoint*>(aHandle); |
160 CommsEndpoint* endpoint = reinterpret_cast<CommsEndpoint*>(aHandle); |
161 delete endpoint; |
161 delete endpoint; |
162 } |
162 } |
163 |
163 |
164 JNIEXPORT void JNICALL Java_com_nokia_mj_impl_comms_CommsEndpointBase__1detach( |
164 JNIEXPORT void JNICALL Java_com_nokia_mj_impl_comms_CommsEndpointBase__1detach( |
165 JNIEnv*, |
165 JNIEnv* aEnv, |
166 jobject, |
166 jobject, |
167 jint aHandle) |
167 jint aHandle) |
168 { |
168 { |
169 JELOG2(EJavaComms); |
169 JELOG2(EJavaComms); |
170 CommsEndpoint* endpoint = reinterpret_cast<CommsEndpoint*>(aHandle); |
170 CommsEndpoint* endpoint = reinterpret_cast<CommsEndpoint*>(aHandle); |
171 endpoint->detachFromVm(); |
171 endpoint->detachFromVm(aEnv); |
172 } |
172 } |
173 |
173 |
174 // CommsEndpoint methods |
174 // CommsEndpoint methods |
175 |
175 |
176 JNIEXPORT jint JNICALL Java_com_nokia_mj_impl_comms_CommsEndpoint__1create( |
176 JNIEXPORT jint JNICALL Java_com_nokia_mj_impl_comms_CommsEndpoint__1create( |