blob: 1507ef6933f7ee202b406f7358147a91ee78f4ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef ANPSystem_npapi_H
#define ANPSystem_npapi_H
#include "android_npapi.h"
#include <jni.h>
struct ANPSystemInterfaceV0 : ANPInterface {
/** Return the path name for the current Application's plugin data directory,
or NULL if not supported
*/
const char* (*getApplicationDataDirectory)();
/** A helper function to load java classes from the plugin's apk. The
function looks for a class given the fully qualified and null terminated
string representing the className. For example,
const char* className = "com.android.mypackage.MyClass";
If the class cannot be found or there is a problem loading the class
NULL will be returned.
*/
jclass (*loadJavaClass)(NPP instance, const char* className);
};
#endif //ANPSystem_npapi_H
|