mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
Translation some comments from Chinese to English.
This commit is contained in:
parent
59453aea8b
commit
e8999f3318
4 changed files with 48 additions and 70 deletions
|
@ -10,31 +10,31 @@
|
|||
#include <string.h>
|
||||
|
||||
//JNI LOG
|
||||
#define TAG "DXL BlUESPP_PN532"
|
||||
#define TAG "PM3"
|
||||
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE,TAG,__VA_ARGS__)
|
||||
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,TAG,__VA_ARGS__)
|
||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,TAG,__VA_ARGS__)
|
||||
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,TAG,__VA_ARGS__)
|
||||
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,TAG,__VA_ARGS__)
|
||||
|
||||
//全局的环境变量定义
|
||||
// a global jvm instance
|
||||
JavaVM *g_JavaVM;
|
||||
|
||||
//线程环境指针获取函数
|
||||
// get current env for jvm
|
||||
JNIEnv *getJniEnv();
|
||||
|
||||
//子线程释放函数,必须是native层创建的线程才可以调用
|
||||
void deatchThread();
|
||||
// detach native thread from jvm, must native thread can detach!
|
||||
void detachThread();
|
||||
|
||||
typedef struct {
|
||||
char **cmd;
|
||||
int len;
|
||||
} CMD;
|
||||
|
||||
//命令行解析函数
|
||||
// cmd arg parse
|
||||
CMD *parse_command_line(const char *commandStr);
|
||||
|
||||
//解析结果释放函数!
|
||||
// cmd arg struct free
|
||||
void free_command_line(CMD *);
|
||||
|
||||
#endif //DXL_TOOLS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue