2015-09-24 20:52:02 +00:00
|
|
|
#include <jni.h>
|
|
|
|
|
2016-01-11 17:19:48 +00:00
|
|
|
/*static google_breakpad::ExceptionHandler *exceptionHandler;
|
2015-09-24 20:52:02 +00:00
|
|
|
|
|
|
|
bool callback(const google_breakpad::MinidumpDescriptor &descriptor, void *context, bool succeeded) {
|
|
|
|
printf("dump path: %s\n", descriptor.path());
|
|
|
|
return succeeded;
|
2016-01-11 17:19:48 +00:00
|
|
|
}*/
|
2015-09-24 20:52:02 +00:00
|
|
|
|
|
|
|
extern "C" {
|
2018-07-30 02:07:02 +00:00
|
|
|
void Java_org_telegram_messenger_NativeLoader_init(JNIEnv* env, jobject obj, jstring filepath, jboolean enable) {
|
2015-10-29 17:10:07 +00:00
|
|
|
return;
|
2016-01-11 17:19:48 +00:00
|
|
|
/*if (enable) {
|
2015-09-24 20:52:02 +00:00
|
|
|
const char *path = env->GetStringUTFChars(filepath, 0);
|
|
|
|
google_breakpad::MinidumpDescriptor descriptor(path);
|
|
|
|
exceptionHandler = new google_breakpad::ExceptionHandler(descriptor, NULL, callback, NULL, true, -1);
|
2016-01-11 17:19:48 +00:00
|
|
|
}*/
|
2015-09-24 20:52:02 +00:00
|
|
|
}
|
2017-12-08 17:35:59 +00:00
|
|
|
}
|