summaryrefslogtreecommitdiff
path: root/src/login/init.c
blob: da2afb55c06b6598664bf787636d6abd29fbaf1c (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
// 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 "login/config.h"
#include "login/parse.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");
    session = GET_SYMBOL("session");
    sockt = GET_SYMBOL("sockt");

    addPacket(0x7530, 22, login_parse_version, hpParse_Login);
}

HPExport void server_preinit (void) {
    addLoginConf("update_server", config_update_server);
}

HPExport void server_online (void) {
}

HPExport void plugin_final (void) {
}