Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Macros | Functions
helper_base.cxx File Reference
#include <jni.h>
#include <memory>
#include <stdexcept>
#include <vector>
#include "helper_base.hpp"
Include dependency graph for helper_base.cxx:

Go to the source code of this file.

Macros

#define JAVA_MAIN_PACKAGE   "org/direct_bt"
 

Functions

jobject get_bluetooth_type (JNIEnv *env, const char *field_name)
 
void raise_java_exception (JNIEnv *env, const direct_bt::BTException &e, const char *file, int line)
 
static std::string _unknown_exception_type_msg ("Unknown exception type")
 
void rethrow_and_raise_java_exception_impl (JNIEnv *env, const char *file, int line)
 Re-throw current exception and raise respective java exception using any matching function above. More...
 

Macro Definition Documentation

◆ JAVA_MAIN_PACKAGE

#define JAVA_MAIN_PACKAGE   "org/direct_bt"

Definition at line 37 of file helper_base.cxx.

Function Documentation

◆ _unknown_exception_type_msg()

static std::string _unknown_exception_type_msg ( "Unknown exception type"  )
static
Here is the caller graph for this function:

◆ get_bluetooth_type()

jobject get_bluetooth_type ( JNIEnv *  env,
const char *  field_name 
)

Definition at line 38 of file helper_base.cxx.

Here is the call graph for this function:

◆ raise_java_exception()

void raise_java_exception ( JNIEnv *  env,
const direct_bt::BTException e,
const char *  file,
int  line 
)

Definition at line 49 of file helper_base.cxx.

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

◆ rethrow_and_raise_java_exception_impl()

void rethrow_and_raise_java_exception_impl ( JNIEnv *  env,
const char *  file,
int  line 
)

Re-throw current exception and raise respective java exception using any matching function above.

Definition at line 56 of file helper_base.cxx.

Here is the call graph for this function: