javauis/m3g_qt/src/jni/platform.inl
changeset 35 85266cc22c7f
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #include "javax_microedition_m3g_Platform.h"
       
    18 
       
    19 /*
       
    20  * Must be excuted in UI thread
       
    21  */
       
    22 JNIEXPORT void JNICALL Java_javax_microedition_m3g_Platform_finalizeInterface
       
    23 (JNIEnv* aEnv, jclass, jint aHObj)
       
    24 {
       
    25     M3G_DO_LOCK
       
    26     m3gDeleteInterface((M3GInterface)aHObj);
       
    27     M3G_DO_UNLOCK(aEnv)
       
    28 }
       
    29 
       
    30 /*
       
    31  * Must be excuted in UI thread
       
    32  */
       
    33 JNIEXPORT void JNICALL Java_javax_microedition_m3g_Platform__1finalizeObject
       
    34 (JNIEnv* aEnv, jclass, jint aHObj)
       
    35 {
       
    36     M3G_DO_LOCK
       
    37     m3gDeleteObject((M3GObject)aHObj);
       
    38     M3G_DO_UNLOCK(aEnv)
       
    39 }