⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utils.h

📁 uclinux 下的vlc播放器源代码
💻 H
字号:
/* These are a must*/#include <jni.h>#include <jawt.h>#include <jawt_md.h>#include <vlc/libvlc.h>#include <stdlib.h> // for freevoid handle_vlc_exception( JNIEnv*, libvlc_exception_t* );jlong getInstance ( JNIEnv* , jobject );#define CHECK_EXCEPTION_FREE \    if ( libvlc_exception_raised( exception )) \    { \        handle_vlc_exception( env, exception ); \    } \    free( exception );#define CHECK_EXCEPTION \    if ( libvlc_exception_raised( exception )) \    { \        handle_vlc_exception( env, exception ); \    }#define INIT_FUNCTION \    long instance; \    libvlc_exception_t *exception = ( libvlc_exception_t * ) malloc( sizeof( libvlc_exception_t )); \    libvlc_exception_init( exception ); \    instance = getInstance( env, _this );#define GET_INPUT_THREAD \    libvlc_input_t *input; \    input = libvlc_playlist_get_input( ( libvlc_instance_t *) instance, exception ); \    CHECK_EXCEPTION ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -