Go to the source code of this file.
|
#define | VPPJNI_CLASS_SYMBOL(name) vppjni_class_##name |
|
#define | VPPJNI_CLASS_INIT(name) vppjni_class_##name##_init |
|
#define | BIND_JAPI_CLASS(name, sig) |
|
#define | VPPJNI_FIELD_SYMBOL(cls, name) vppjni_field_##cls##_##name |
|
#define | VPPJNI_FIELD_INIT(cls, name) vppjni_field_##cls##_##name##_init |
|
#define | BIND_JAPI_FIELD(cls, field, sig) |
|
#define | BIND_JAPI_BOOL_FIELD(cls, field) |
|
#define | BIND_JAPI_BYTE_FIELD(cls, field) |
|
#define | BIND_JAPI_INT_FIELD(cls, field) |
|
#define | BIND_JAPI_OBJ_FIELD(cls, field, sig) |
|
#define | BIND_JAPI_STRING_FIELD(cls, field) BIND_JAPI_OBJ_FIELD(cls, field, "Ljava/lang/String;") |
|
#define BIND_JAPI_BOOL_FIELD |
( |
|
cls, |
|
|
|
field |
|
) |
| |
Value: static void set_##cls##_##field(JNIEnv *env, jobject obj, jboolean value) \
{ \
}
#define VPPJNI_FIELD_SYMBOL(cls, name)
#define BIND_JAPI_FIELD(cls, field, sig)
Definition at line 86 of file vppjni_env.h.
#define BIND_JAPI_BYTE_FIELD |
( |
|
cls, |
|
|
|
field |
|
) |
| |
Value: static void set_##cls##_##field(JNIEnv *env, jobject obj, jbyte value) \
{ \
}
#define VPPJNI_FIELD_SYMBOL(cls, name)
#define BIND_JAPI_FIELD(cls, field, sig)
Definition at line 92 of file vppjni_env.h.
#define BIND_JAPI_CLASS |
( |
|
name, |
|
|
|
sig |
|
) |
| |
Value: } \
static __attribute__((unused)) jobject name##Array(JNIEnv *env, jsize length) \
{ \
return (*env)->NewObjectArray(env, length, VPPJNI_CLASS_SYMBOL(name).jclass, NULL); \
} \
static jobject name##Object(JNIEnv *env, ...) \
{ \
va_list ap; \
va_start(ap, env); \
jobject obj = vppjni_new_object(env, &VPPJNI_CLASS_SYMBOL(name), ap); \
va_end(ap); \
return obj; \
}
#define VPPJNI_CLASS_INIT(name)
static void(BVT(clib_bihash)*h, BVT(clib_bihash_value)*v)
void vppjni_register_class(vppjni_class_t *ptr)
#define VPPJNI_CLASS_SYMBOL(name)
Definition at line 52 of file vppjni_env.h.
#define BIND_JAPI_FIELD |
( |
|
cls, |
|
|
|
field, |
|
|
|
sig |
|
) |
| |
Value: }
static void(BVT(clib_bihash)*h, BVT(clib_bihash_value)*v)
#define VPPJNI_FIELD_SYMBOL(cls, name)
void vppjni_register_field(vppjni_field_t *ptr)
#define VPPJNI_CLASS_SYMBOL(name)
#define VPPJNI_FIELD_INIT(cls, name)
Definition at line 76 of file vppjni_env.h.
#define BIND_JAPI_INT_FIELD |
( |
|
cls, |
|
|
|
field |
|
) |
| |
Value: static void set_##cls##_##field(JNIEnv *env, jobject obj, jint value) \
{ \
}
#define VPPJNI_FIELD_SYMBOL(cls, name)
#define BIND_JAPI_FIELD(cls, field, sig)
Definition at line 98 of file vppjni_env.h.
#define BIND_JAPI_OBJ_FIELD |
( |
|
cls, |
|
|
|
field, |
|
|
|
sig |
|
) |
| |
Value: static void set_##cls##_##field(JNIEnv *env, jobject obj, jobject value) \
{ \
}
#define VPPJNI_FIELD_SYMBOL(cls, name)
#define BIND_JAPI_FIELD(cls, field, sig)
Definition at line 104 of file vppjni_env.h.
#define BIND_JAPI_STRING_FIELD |
( |
|
cls, |
|
|
|
field |
|
) |
| BIND_JAPI_OBJ_FIELD(cls, field, "Ljava/lang/String;") |
#define VPPJNI_CLASS_INIT |
( |
|
name | ) |
vppjni_class_##name##_init |
#define VPPJNI_CLASS_SYMBOL |
( |
|
name | ) |
vppjni_class_##name |
#define VPPJNI_FIELD_INIT |
( |
|
cls, |
|
|
|
name |
|
) |
| vppjni_field_##cls##_##name##_init |
#define VPPJNI_FIELD_SYMBOL |
( |
|
cls, |
|
|
|
name |
|
) |
| vppjni_field_##cls##_##name |
int vppjni_init |
( |
JNIEnv * |
env | ) |
|
jobject vppjni_new_object |
( |
JNIEnv * |
env, |
|
|
const vppjni_class_t * |
ptr, |
|
|
va_list |
ap |
|
) |
| |
void vppjni_uninit |
( |
JNIEnv * |
env | ) |
|