FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
jvpp_common.c File Reference
+ Include dependency graph for jvpp_common.c:

Go to the source code of this file.

Macros

#define JVPP_DEBUG   0
 
#define DEBUG_LOG(...)
 
#define get_error_message(errno)
 

Functions

void call_on_error (const char *callName, int contextId, int retval, jclass callbackClass, jobject callbackObject, jclass callbackExceptionClass)
 Calls onError callback on callbackObject reference. More...
 
u32 get_message_id (JNIEnv *env, const char *key)
 Retrieves message id based on message name and crc (key format: name_crc). More...
 

Variables

jvpp_main_t jvpp_main
 

Macro Definition Documentation

◆ DEBUG_LOG

#define DEBUG_LOG (   ...)

Definition at line 27 of file jvpp_common.c.

◆ get_error_message

#define get_error_message (   errno)
Value:
int code = errno; \
foreach_vnet_api_error \
message = "Reason unknown";

Definition at line 35 of file jvpp_common.c.

◆ JVPP_DEBUG

#define JVPP_DEBUG   0

Definition at line 21 of file jvpp_common.c.

Function Documentation

◆ call_on_error()

void call_on_error ( const char *  callName,
int  contextId,
int  retval,
jclass  callbackClass,
jobject  callbackObject,
jclass  callbackExceptionClass 
)

Calls onError callback on callbackObject reference.

Passes instance of callbackExceptionClass as parameter.

Definition at line 43 of file jvpp_common.c.

+ Here is the caller graph for this function:

◆ get_message_id()

u32 get_message_id ( JNIEnv *  env,
const char *  key 
)

Retrieves message id based on message name and crc (key format: name_crc).

Throws java/lang/IllegalStateException on failure.

Definition at line 82 of file jvpp_common.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ jvpp_main

jvpp_main_t jvpp_main

Definition at line 41 of file jvpp_common.c.