webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <jni.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/resource.h>
#include "android_native_app_glue.h"
#include <android/log.h>
Macros | |
#define | LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "threaded_app", __VA_ARGS__)) |
#define | LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, "threaded_app", __VA_ARGS__)) |
#define | LOGV(...) ((void)__android_log_print(ANDROID_LOG_VERBOSE, "threaded_app", __VA_ARGS__)) |
Functions | |
int8_t | android_app_read_cmd (struct android_app *android_app) |
void | android_app_pre_exec_cmd (struct android_app *android_app, int8_t cmd) |
void | android_app_post_exec_cmd (struct android_app *android_app, int8_t cmd) |
void | app_dummy () |
__attribute__ ((visibility("default"))) | |
#define LOGE | ( | ... | ) | ((void)__android_log_print(ANDROID_LOG_ERROR, "threaded_app", __VA_ARGS__)) |
#define LOGI | ( | ... | ) | ((void)__android_log_print(ANDROID_LOG_INFO, "threaded_app", __VA_ARGS__)) |
#define LOGV | ( | ... | ) | ((void)__android_log_print(ANDROID_LOG_VERBOSE, "threaded_app", __VA_ARGS__)) |
__attribute__ | ( | (visibility("default")) | ) |
void android_app_post_exec_cmd | ( | struct android_app * | android_app, |
int8_t | cmd | ||
) |
Call with the command returned by android_app_read_cmd() to do the final post-processing of the given command. You must have done your own actions for the command before calling this function.
void android_app_pre_exec_cmd | ( | struct android_app * | android_app, |
int8_t | cmd | ||
) |
Call with the command returned by android_app_read_cmd() to do the initial pre-processing of the given command. You can perform your own actions for the command after calling this function.
int8_t android_app_read_cmd | ( | struct android_app * | android_app | ) |
Call when ALooper_pollAll() returns LOOPER_ID_MAIN, reading the next app command message.
void app_dummy | ( | ) |
Dummy function you can call to ensure glue code isn't stripped.