summaryrefslogblamecommitdiff
path: root/src/char/int_storage.h
blob: 6da60f4a8229957d66cac3cf2a12b0bde2ac117c (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                          

                          
 
                    

                     
                                  
 










                                                                         
 
                                              
 
                               
// 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);

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 */