webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
android_native_app_glue.c File Reference
#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")))
 

Macro Definition Documentation

◆ LOGE

#define LOGE (   ...)    ((void)__android_log_print(ANDROID_LOG_ERROR, "threaded_app", __VA_ARGS__))

◆ LOGI

#define LOGI (   ...)    ((void)__android_log_print(ANDROID_LOG_INFO, "threaded_app", __VA_ARGS__))

◆ LOGV

#define LOGV (   ...)    ((void)__android_log_print(ANDROID_LOG_VERBOSE, "threaded_app", __VA_ARGS__))

Function Documentation

◆ __attribute__()

__attribute__ ( (visibility("default"))  )

◆ android_app_post_exec_cmd()

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.

◆ android_app_pre_exec_cmd()

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.

◆ android_app_read_cmd()

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.

◆ app_dummy()

void app_dummy ( )

Dummy function you can call to ensure glue code isn't stripped.