diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-05 22:19:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-05 22:26:20 +0300 |
commit | 6255d8b62d2c06ae5611c5e10b40209a75078552 (patch) | |
tree | 1f973a0f368254b4d837929dd8a4fa9655c9f1d4 | |
parent | 5f96a4e54f48cc92fd844ceceac7980e4922f3fe (diff) | |
download | plugin-6255d8b62d2c06ae5611c5e10b40209a75078552.tar.gz plugin-6255d8b62d2c06ae5611c5e10b40209a75078552.tar.bz2 plugin-6255d8b62d2c06ae5611c5e10b40209a75078552.tar.xz plugin-6255d8b62d2c06ae5611c5e10b40209a75078552.zip |
Add empty login server plugin.
-rw-r--r-- | src/Makefile.am | 10 | ||||
-rw-r--r-- | src/login/init.c | 38 |
2 files changed, 46 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 3151e5a..4d80375 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -6,11 +6,17 @@ MAP_SRC = map/dummy.c \ map/script.c \ map/script.h -lib_LTLIBRARIES = libevol_map.la +LOGIN_SRC = login/init.c + +lib_LTLIBRARIES = libevol_login.la libevol_map.la libevol_map_la_SOURCES = ${MAP_SRC} libevol_map_la_LDFLAGS = -avoid-version libevol_map_la_CFLAGS = -pipe -ffast-math -Wall -Wextra -Wno-sign-compare -all-local: libevol_map.la +libevol_login_la_SOURCES = ${LOGIN_SRC} +libevol_login_la_LDFLAGS = -avoid-version +libevol_login_la_CFLAGS = -pipe -ffast-math -Wall -Wextra -Wno-sign-compare + +all-local: libevol_login.la libevol_map.la cp .libs/*.so ../../../plugins cp .libs/*.so ../../../../server-data/plugins diff --git a/src/login/init.c b/src/login/init.c new file mode 100644 index 0000000..e729ac8 --- /dev/null +++ b/src/login/init.c @@ -0,0 +1,38 @@ +// 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/malloc.h" +#include "../../../common/mmo.h" +#include "../../../common/socket.h" +#include "../../../common/strlib.h" +#include "../../../login/login.h" + +#include "../../../common/HPMDataCheck.h" /* should always be the last file included! (if you don't make it last, it'll intentionally break compile time) */ + +HPExport struct hplugin_info pinfo = +{ + "evol_login", + SERVER_TYPE_LOGIN, + "0.1", + HPM_VERSION +}; + +/* run when server starts */ +HPExport void plugin_init (void) { + /* core interfaces */ + iMalloc = GET_SYMBOL("iMalloc"); +} + +HPExport void server_preinit (void) { +} + +HPExport void server_online (void) { +} + +HPExport void plugin_final (void) { +} |