Skip to content
Snippets Groups Projects
Commit 5944ae24 authored by vitawrap's avatar vitawrap
Browse files

JNI: Correction source .c

parent 1f8ccbb8
Branches
No related tags found
No related merge requests found
/* DO NOT EDIT THIS FILE - it is machine generated */ /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h> #include <jni.h>
/* Header for class Scheduling */ /* Header for class application_Scheduling */
#ifndef _Included_Scheduling #ifndef _Included_application_Scheduling
#define _Included_Scheduling #define _Included_application_Scheduling
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* /*
* Class: Scheduling * Class: application_Scheduling
* Method: runSchedule * Method: runSchedule
* Signature: (Ljava/lang/String;Ljava/lang/String;III)V * Signature: (Ljava/lang/String;Ljava/lang/String;III)V
*/ */
JNIEXPORT void JNICALL Java_Scheduling_runSchedule JNIEXPORT void JNICALL Java_application_Scheduling_runSchedule
(JNIEnv *, jclass, jstring, jstring, jint, jint, jint); (JNIEnv *, jclass, jstring, jstring, jint, jint, jint);
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -28,6 +28,6 @@ public class ProjetController { ...@@ -28,6 +28,6 @@ public class ProjetController {
@FXML @FXML
public void submitToDiagram(ActionEvent event) public void submitToDiagram(ActionEvent event)
{ {
Scheduling.runSchedule("STRING 1", "MESSAGE", 0, 0, 0);
} }
} }
\ No newline at end of file
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
#include "instance.h" #include "instance.h"
#include "algo.h" #include "algo.h"
JNIEXPORT void JNICALL Java_Scheduling_runSchedule #include <stdio.h>
JNIEXPORT void JNICALL Java_application_Scheduling_runSchedule
(JNIEnv * env, jclass cl, jstring inst_in, jstring sched_out, jint m, jint preempt, jint balanced) (JNIEnv * env, jclass cl, jstring inst_in, jstring sched_out, jint m, jint preempt, jint balanced)
{ {
const char * instance_file = (* env )->GetStringUTFChars(env, inst_in, NULL); const char * instance_file = (* env )->GetStringUTFChars(env, inst_in, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment