aboutsummaryrefslogtreecommitdiff
path: root/rcon_host.h
blob: c8578a4f4dddf7bb285e5aa477b4447c7b91c678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _RCON_HOST_H
#define _RCON_HOST_H

struct rcon_host_connarg {
	char *host;
	char *port;
	char *password;
};

int rcon_host_init();
void rcon_host_free();
void rcon_host_connarg_free(struct rcon_host_connarg *arg);

int rcon_host_send(const int id, const char *command);
int rcon_host_recv(int *pkgt_id, char *out);

void rcon_host_setconnarg(struct rcon_host_connarg *arg);
struct rcon_host_connarg *rcon_host_getconnarg();

#endif // _RCON_HOST_H