Package list crossguid / debian/0.0+git200150803-2 android / jni / jnitest.cpp
debian/0.0+git200150803-2

Tree @debian/0.0+git200150803-2 (Download .tar.gz)

jnitest.cpp @debian/0.0+git200150803-2raw · history · blame

#include <string>
#include <sstream>
#include <jni.h>
#include <iostream>
#include "../../test.h"
#include "../../guid.h"

extern "C" 
{

  jstring Java_ca_graemehill_crossguid_testapp_MainActivity_test(JNIEnv *env, jobject thiz)
  {
    std::stringstream resultStream;
    test(GuidGenerator(env), resultStream);
    return env->NewStringUTF(resultStream.str().c_str());
  }

}