Atrinik Server  4.0
loader.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Atrinik, a Multiplayer Online Role Playing Game *
3  * *
4  * Copyright (C) 2009-2014 Alex Tokar and Atrinik Development Team *
5  * *
6  * Fork from Crossfire (Multiplayer game for X-windows). *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
21  * *
22  * The author can be reached at admin@atrinik.org *
23  ************************************************************************/
24 
30 #ifndef LOADER_H
31 #define LOADER_H
32 
38 #define LL_EOF 0
39 #define LL_MORE 1
40 #define LL_NORMAL 2
41 #define LL_ERROR 3
42 
44 /* see loader.l for more details on this */
45 #define LO_REPEAT 0
46 #define LO_LINEMODE 1
47 #define LO_NEWFILE 2
48 #define LO_NOREAD 3
49 #define LO_MEMORYMODE 4
50 
51 /* Prototypes */
52 void
53 free_object_loader(void);
54 void
55 delete_loader_buffer(void *buffer);
56 void *
57 create_loader_buffer(FILE *fp);
58 int
59 load_object(const char *str, object *op, int map_flags);
60 int
61 load_object_fp(FILE *fp, object *op, int map_flags);
62 int
63 load_object_buffer(void *buffer, object *op, int map_flags);
64 int
65 set_variable(object *op, const char *buf);
66 void
67 get_ob_diff(StringBuffer *sb, const object *op, const object *op2);
68 
69 #endif
int set_variable(object *op, const char *buf)
Definition: object.c:48663
void free_object_loader(void)
Definition: object.c:48436
int load_object_fp(FILE *fp, object *op, int map_flags)
Definition: object.c:48576
void get_ob_diff(StringBuffer *sb, const object *op, const object *op2)
Definition: object.c:48732
int load_object_buffer(void *buffer, object *op, int map_flags)
Definition: object.c:48633
int load_object(const char *str, object *op, int map_flags)
Definition: object.c:48527