Atrinik Client  4.0
server_files.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 SERVER_FILES_H
31 #define SERVER_FILES_H
32 
33 #include <toolkit/curl.h>
34 
35 #define SERVER_FILES_HTTP_DIR "data"
36 #define SERVER_FILES_HTTP_LISTING "listing.txt"
37 
38 #define SERVER_FILE_ANIMS "anims"
39 #define SERVER_FILE_BMAPS "bmaps"
40 #define SERVER_FILE_UPDATES "updates"
41 #define SERVER_FILE_SETTINGS "settings"
42 #define SERVER_FILE_EFFECTS "effects"
43 #define SERVER_FILE_HFILES "hfiles"
44 
46 typedef struct server_files_struct {
48  char *name;
49 
51  uint8_t loaded;
52 
61  int8_t update;
62 
64  size_t size;
65 
67  unsigned long crc32;
68 
70  curl_request_t *request;
71 
73  void (*init_func)(void);
74 
76  void (*reload_func)(void);
77 
79  void (*parse_func)(void);
80 
82  UT_hash_handle hh;
84 
85 #endif
struct server_files_struct server_files_struct
void(* init_func)(void)
Definition: server_files.h:73
void(* parse_func)(void)
Definition: server_files.h:79
void(* reload_func)(void)
Definition: server_files.h:76
unsigned long crc32
Definition: server_files.h:67
UT_hash_handle hh
Definition: server_files.h:82
curl_request_t * request
Definition: server_files.h:70