wfut 0.2.4
A client side C++ implementation of WFUT (WorldForge Update Tool).
types.h
1// This file may be redistributed and modified only under the terms of
2// the GNU Lesser General Public License (See COPYING for details).
3// Copyright (C) 2005 - 2007 Simon Goodall
4
5#ifndef LIBWFUT_TYPES_H
6#define LIBWFUT_TYPES_H 1
7
8#include <string>
9#include <list>
10#include <map>
11#include <vector>
12
13#include <zlib.h>
14
15namespace WFUT {
16
17typedef struct {
18 std::string name;
19 std::string description;
20 std::string url;
21 std::string email;
22 std::string logo;
24
25typedef std::list<ChannelObject> ChannelList;
26
27typedef struct {
28 std::string filename;
29 int version;
30 uLong crc32;
31 long size;
32 bool execute;
33 bool deleted;
35
36typedef std::list<FileObject> FileList;
37typedef std::map<std::string, FileObject> FileMap;
38
39
40typedef struct {
41 std::string name;
42 std::string url;
44
45typedef std::vector<MirrorObject> MirrorList;
46
47} // namespace WFUT
48
49#endif /* LIBWFUT_TYPES_H */