-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminecraft-controller.h
36 lines (31 loc) · 1.03 KB
/
minecraft-controller.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// minecraft-controller.h
#ifndef MINECRAFT_CONTROLLER_H
#define MINECRAFT_CONTROLLER_H
#include <rlibrary/rstream.h>
namespace minecraft_controller
{
class minecraft_controller_log_stream : public rtypes::rstream
{
public:
minecraft_controller_log_stream();
private:
virtual bool _inDevice() const
{ return false; } // this stream doesn't do input
virtual void _outDevice();
};
class minecontrold
{
public:
static const char* get_server_name()
{ return SERVER_NAME; }
static const char* get_server_version()
{ return SERVER_VERSION; }
static void shutdown_minecontrold(); // shutdown the minecontrold server; this should terminate the process
static void close_global_fds(); // close all global file descriptors in use by the process (except standard descriptors)
static minecraft_controller_log_stream standardLog;
private:
static const char* SERVER_NAME;
static const char* SERVER_VERSION;
};
}
#endif