summaryrefslogtreecommitdiff
path: root/src/common/interfaces.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-17 16:07:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-17 16:08:01 +0300
commitaa9464281141d0fe098285e0a32ca33d852c0552 (patch)
treea2896c27699b888ac3084f28d4a22ec0156af5e3 /src/common/interfaces.c
parent974774dc41249f683019a8c8ed6954a099672157 (diff)
downloadevol-hercules-aa9464281141d0fe098285e0a32ca33d852c0552.tar.gz
evol-hercules-aa9464281141d0fe098285e0a32ca33d852c0552.tar.bz2
evol-hercules-aa9464281141d0fe098285e0a32ca33d852c0552.tar.xz
evol-hercules-aa9464281141d0fe098285e0a32ca33d852c0552.zip
Move common interfaces initialisation into separate file.
Diffstat (limited to 'src/common/interfaces.c')
-rw-r--r--src/common/interfaces.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/common/interfaces.c b/src/common/interfaces.c
new file mode 100644
index 0000000..40a71fb
--- /dev/null
+++ b/src/common/interfaces.c
@@ -0,0 +1,29 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 Evol developers
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "../../../common/HPMi.h"
+#include "../../../common/conf.h"
+#include "../../../common/malloc.h"
+#include "../../../common/mmo.h"
+#include "../../../common/socket.h"
+#include "../../../common/strlib.h"
+#include "../../../common/sysinfo.h"
+#include "../../../common/timer.h"
+
+void interfaces_init_common(void)
+{
+ iMalloc = GET_SYMBOL("iMalloc");
+ strlib = GET_SYMBOL("strlib");
+ session = GET_SYMBOL("session");
+ sockt = GET_SYMBOL("sockt");
+ sv = GET_SYMBOL("sv");
+ StrBuf = GET_SYMBOL("StrBuf");
+ SQL = GET_SYMBOL("SQL");
+ timer = GET_SYMBOL("timer");
+ libconfig = GET_SYMBOL("libconfig");
+ sysinfo = GET_SYMBOL("sysinfo");
+}