Codebase list crossguid / 853a39b5-b21e-435d-9835-595072be9e2d/main android / jni / jnitest.cpp
853a39b5-b21e-435d-9835-595072be9e2d/main

Tree @853a39b5-b21e-435d-9835-595072be9e2d/main (Download .tar.gz)

jnitest.cpp @853a39b5-b21e-435d-9835-595072be9e2d/mainraw · 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());
  }

}