Skip to content

Commit

Permalink
Merge pull request #178 from SanojPunchihewa/dev
Browse files Browse the repository at this point in the history
Rename native method names
  • Loading branch information
SanojPunchihewa committed May 24, 2020
2 parents 65478bf + b977b25 commit b08e458
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions app/src/main/cpp/artic-native-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void resetOptInd() {
}

extern "C" JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
Java_com_mobilegenomics_genopo_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
// try{TODO:exceptions
// Convert command to cpp
//TODO:casting not good
Expand Down Expand Up @@ -155,7 +155,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstri

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
outfile = env->GetStringUTFChars(pipe_path, nullptr);

int out = mkfifo(outfile, 0664);
Expand All @@ -168,7 +168,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobje

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
fprintf(stderr, FILE_CLOSE_TAG);
fflush(stderr);
close(fdo);
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/cpp/consensus-native-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void resetOptInd() {
}

extern "C" JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
Java_com_mobilegenomics_genopo_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
// try{TODO:exceptions
// Convert command to cpp
//TODO:casting not good
Expand Down Expand Up @@ -145,7 +145,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstri

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
outfile = env->GetStringUTFChars(pipe_path, nullptr);

int out = mkfifo(outfile, 0664);
Expand All @@ -158,7 +158,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobje

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
fprintf(stderr, FILE_CLOSE_TAG);
fflush(stderr);
close(fdo);
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/cpp/methylation-native-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void resetOptInd() {
}

extern "C" JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
Java_com_mobilegenomics_genopo_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
// try{TODO:exceptions
// Convert command to cpp
//TODO:casting not good
Expand Down Expand Up @@ -146,7 +146,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstri

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
outfile = env->GetStringUTFChars(pipe_path, nullptr);

int out = mkfifo(outfile, 0664);
Expand All @@ -159,7 +159,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobje

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
fprintf(stderr, FILE_CLOSE_TAG);
fflush(stderr);
close(fdo);
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/cpp/single-tool-native-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void resetOptInd() {
}

extern "C" JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
Java_com_mobilegenomics_genopo_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
// try{TODO:exceptions
// Convert command to cpp
//TODO:casting not good
Expand Down Expand Up @@ -186,7 +186,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstri

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
outfile = env->GetStringUTFChars(pipe_path, nullptr);

int out = mkfifo(outfile, 0664);
Expand All @@ -199,7 +199,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobje

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
fprintf(stderr, FILE_CLOSE_TAG);
fflush(stderr);
close(fdo);
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/cpp/variant-native-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void resetOptInd() {
}

extern "C" JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
Java_com_mobilegenomics_genopo_core_NativeCommands_init(JNIEnv *env, jobject, jstring command, jint command_id) {
// try{TODO:exceptions
// Convert command to cpp
//TODO:casting not good
Expand Down Expand Up @@ -147,7 +147,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_init(JNIEnv *env, jobject, jstri

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_startPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
outfile = env->GetStringUTFChars(pipe_path, nullptr);

int out = mkfifo(outfile, 0664);
Expand All @@ -160,7 +160,7 @@ Java_com_mobilegenomics_f5n_core_NativeCommands_startPipeline(JNIEnv *env, jobje

extern "C"
JNIEXPORT jint JNICALL
Java_com_mobilegenomics_f5n_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
Java_com_mobilegenomics_genopo_core_NativeCommands_finishPipeline(JNIEnv *env, jobject thiz, jstring pipe_path) {
fprintf(stderr, FILE_CLOSE_TAG);
fflush(stderr);
close(fdo);
Expand Down

0 comments on commit b08e458

Please sign in to comment.