void resetDeviceList(JNIEnv* env, jobject obj) { RESET_POINTER(env, obj, "deviceListPointer"); // We already have the class from the previous call. // Reset size field to zero too. field = (*env)->GetFieldID(env, cls, "size", "I"); (*env)->SetIntField(env, obj, field, 0); }
void resetContext(JNIEnv* env, jobject obj) { RESET_POINTER(env, obj, "contextPointer"); }
void resetContainerIdDescriptor(JNIEnv* env, jobject obj) { RESET_POINTER(env, obj, "containerIdDescriptorPointer"); }
void resetDeviceHandle(JNIEnv* env, jobject object) { RESET_POINTER(env, object, "deviceHandlePointer"); }
void resetHotplugCallbackHandle(JNIEnv* env, jobject hotplugHandle) { RESET_POINTER(env, hotplugHandle, "hotplugCallbackHandleValue"); }
void resetSsEndpointCompanionDescriptor(JNIEnv* env, jobject obj) { RESET_POINTER(env, obj, "ssEndpointCompanionDescriptorPointer"); }
void resetBosDescriptor(JNIEnv* env, jobject obj) { RESET_POINTER(env, obj, "bosDescriptorPointer"); }
void resetDeviceList(JNIEnv* env, jobject obj) { RESET_POINTER(env, obj, "deviceListPointer"); }
void resetSsUsbDeviceCapabilityDescriptor(JNIEnv* env, jobject obj) { RESET_POINTER(env, obj, "ssUsbDeviceCapabilityDescriptorPointer"); }