Skip to content

Instantly share code, notes, and snippets.

@pedrogk
Created November 12, 2013 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedrogk/7427437 to your computer and use it in GitHub Desktop.
Save pedrogk/7427437 to your computer and use it in GitHub Desktop.
Código en C para especificar la llamada JNI.
#include "com_example_cpuid_CPUIdApp.h"
extern void cpuid_parse(char *buf);
JNIEXPORT jstring JNICALL Java_com_example_cpuid_CPUIdApp_cpuid_1get(JNIEnv *env, jclass jc)
{
char buf[1024];
cpuid_parse(buf);
return (*env)->NewStringUTF(env, buf);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment