Atrinik Client  4.0
image.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 IMAGE_H
31 #define IMAGE_H
32 
36 typedef struct bmap {
40  char *name;
41 
45  size_t len;
46 
50  long pos;
51 
55  unsigned long crc32;
56 } bmap_t;
57 
61 typedef struct bmap_hash {
66 
70  UT_hash_handle hh;
71 } bmap_hash_t;
72 
73 /* Prototypes */
74 void image_init(void);
75 void image_deinit(void);
76 void image_bmaps_init(void);
77 void image_bmaps_deinit(void);
78 void finish_face_cmd(int facenum, uint32_t checksum, const char *face);
79 void image_request_face(int pnum);
80 int image_get_id(const char *name);
81 
82 #endif
size_t len
Definition: image.h:45
UT_hash_handle hh
Definition: image.h:70
long pos
Definition: image.h:50
void image_bmaps_init(void)
Definition: image.c:143
bmap_t bmap
Definition: image.h:65
void image_init(void)
Definition: image.c:62
void image_bmaps_deinit(void)
Definition: image.c:191
struct bmap_hash bmap_hash_t
Definition: image.h:36
char * name
Definition: image.h:40
void image_request_face(int pnum)
Definition: image.c:402
unsigned long crc32
Definition: image.h:55
void finish_face_cmd(int facenum, uint32_t checksum, const char *face)
Definition: image.c:228
struct bmap bmap_t
int image_get_id(const char *name)
Definition: image.c:448