blob: 213c377eec8194a508dadf8aba7e6795c4556cbb (
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
|
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef CHAR_INT_PET_H
#define CHAR_INT_PET_H
#include "common/hercules.h"
struct s_pet;
/**
* inter_pet interface
**/
struct inter_pet_interface {
struct s_pet *pt;
int (*tosql) (int pet_id, struct s_pet* p);
int (*fromsql) (int pet_id, struct s_pet* p);
int (*sql_init) (void);
void (*sql_final) (void);
int (*delete_) (int pet_id);
int (*parse_frommap) (int fd);
};
#ifdef HERCULES_CORE
void inter_pet_defaults(void);
#endif // HERCULES_CORE
HPShared struct inter_pet_interface *inter_pet;
#endif /* CHAR_INT_PET_H */
|