updated android example with ir_decoder 0.2.5
This commit is contained in:
@@ -12,13 +12,20 @@ Revision log:
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ir_decode_jni.h"
|
||||
#include "../../include/ir_defs.h"
|
||||
#include "../../include/ir_decode.h"
|
||||
#include "../../src/include/ir_defs.h"
|
||||
#include "../../src/include/ir_decode.h"
|
||||
|
||||
// global variable definition
|
||||
extern size_t binary_length;
|
||||
extern UINT8 *binary_content;
|
||||
|
||||
JNIEXPORT const jstring JNICALL Java_net_irext_decode_sdk_IRDecode_irGetVersion
|
||||
(JNIEnv *env, jobject this_obj)
|
||||
{
|
||||
char *version = (char*) get_lib_version();
|
||||
return (*env)->NewStringUTF(env, version);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL Java_net_irext_decode_sdk_IRDecode_irOpen
|
||||
(JNIEnv *env, jobject this_obj, jint category_id, jint sub_cate, jstring file_name)
|
||||
{
|
||||
|
||||
@@ -59,6 +59,7 @@ extern "C" {
|
||||
#define net_irext_decode_sdk_IRDecode_START_STICKY 1L
|
||||
#undef net_irext_decode_sdk_IRDecode_START_STICKY_COMPATIBILITY
|
||||
#define net_irext_decode_sdk_IRDecode_START_STICKY_COMPATIBILITY 0L
|
||||
|
||||
/*
|
||||
* Class: net_irext_decode_sdk_IRDecode
|
||||
* Method: irOpen
|
||||
|
||||
Reference in New Issue
Block a user