Created
November 12, 2013 08:23
-
-
Save pedrogk/7427437 to your computer and use it in GitHub Desktop.
Código en C para especificar la llamada JNI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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