summaryrefslogtreecommitdiff
path: root/src/char/int_storage.h
blob: dcf8f07c1f0d2a0c5ff5c52db0ec337ebbce4df5 (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
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder

#ifndef CHAR_INT_STORAGE_H
#define CHAR_INT_STORAGE_H

struct storage_data;
struct guild_storage;

void inter_storage_defaults(void);

/**
 * inter_storage interface
 **/
struct inter_storage_interface {
    int (*tosql) (int account_id, struct storage_data* p);
    int (*fromsql) (int account_id, struct storage_data* p);
    int (*guild_storage_tosql) (int guild_id, struct guild_storage* p);
    int (*guild_storage_fromsql) (int guild_id, struct guild_storage* p);
    int (*sql_init) (void);
    void (*sql_final) (void);
    int (*delete_) (int account_id);
    int (*guild_storage_delete) (int guild_id);
    int (*parse_frommap) (int fd);
};

struct inter_storage_interface *inter_storage;

#endif /* CHAR_INT_STORAGE_H */