| 1 | /* |
| 2 | * Copyright (C) 2004 Dizzy |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | |
| 19 | #ifndef __ATTRLAYER_H_INCLUDED__ |
| 20 | #define __ATTRLAYER_H_INCLUDED__ |
| 21 | |
| 22 | #include "common/elist.h" |
| 23 | #include "attrgroup.h" |
| 24 | |
| 25 | /* flags controlling flush/save operations */ |
| 26 | #define FS_NONE 0 |
| 27 | #define FS_FORCE 1 /* force save/flush no matter of time */ |
| 28 | #define FS_ALL 2 /* save/flush all, not in steps */ |
| 29 | |
| 30 | namespace pvpgn |
| 31 | { |
| 32 | |
| 33 | namespace bnetd |
| 34 | { |
| 35 | |
| 36 | extern int attrlayer_init(void); |
| 37 | extern int attrlayer_cleanup(void); |
| 38 | extern int attrlayer_load_default(void); |
| 39 | extern int attrlayer_save(int flags); |
| 40 | extern int attrlayer_flush(int flags); |
| 41 | extern t_attrgroup * attrlayer_get_defattrgroup(void); |
| 42 | extern void attrlayer_add_loadedlist(t_elist *what); |
| 43 | extern void attrlayer_del_loadedlist(t_elist *what); |
| 44 | extern void attrlayer_add_dirtylist(t_elist *what); |
| 45 | extern void attrlayer_del_dirtylist(t_elist *what); |
| 46 | extern void attrlayer_accessed(t_attrgroup* attrgroup); |
| 47 | |
| 48 | } |
| 49 | |
| 50 | } |
| 51 | |
| 52 | #endif /* __ATTRLAYER_H_INCLUDED__ */ |