mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
36 lines
469 B
C++
36 lines
469 B
C++
//
|
|
// Created by stepus53 on 24.6.25.
|
|
//
|
|
|
|
#ifndef DHFSINSTANCE_HPP
|
|
#define DHFSINSTANCE_HPP
|
|
|
|
#include <jni.h>
|
|
|
|
enum class DhfsInstanceState {
|
|
RUNNING,
|
|
STOPPED,
|
|
};
|
|
|
|
class DhfsInstance {
|
|
public:
|
|
DhfsInstance();
|
|
|
|
~DhfsInstance();
|
|
|
|
DhfsInstanceState state();
|
|
|
|
void start();
|
|
|
|
void stop();
|
|
|
|
private:
|
|
DhfsInstanceState _state = DhfsInstanceState::STOPPED;
|
|
|
|
JavaVM* _jvm = nullptr;
|
|
JNIEnv *_env = nullptr;
|
|
};
|
|
|
|
|
|
#endif //DHFSINSTANCE_HPP
|