javacommons/utils/tsrc/testdll/src/jvmporttest.cpp
changeset 80 d6dafc5d983f
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
       
     1 /*
       
     2 * Copyright (c) 2010 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 
       
    18 #include <string>
       
    19 #include "com_nokia_mj_impl_rt_support_JvmPortTest.h"
       
    20 
       
    21 JNIEXPORT jstring JNICALL Java_com_nokia_mj_impl_rt_support_JvmPortTest__1getResource
       
    22 (JNIEnv* env, jobject, jlong ptr, jint len)
       
    23 {
       
    24     std::string res((char*)ptr, len);
       
    25     return env->NewStringUTF(res.c_str());
       
    26 }
       
    27