10017
|
1 |
/*
|
|
2 |
* Hedgewars, a free turn based strategy game
|
|
3 |
* Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com>
|
|
4 |
*
|
|
5 |
* This program is free software; you can redistribute it and/or
|
|
6 |
* modify it under the terms of the GNU General Public License
|
|
7 |
* as published by the Free Software Foundation; either version 2
|
|
8 |
* of the License, or (at your option) any later version.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful,
|
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 |
* GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License
|
|
16 |
* along with this program; if not, write to the Free Software
|
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
18 |
*/
|
|
19 |
|
|
20 |
/*
|
|
21 |
* Public header file for the hedgewars frontent networking library.
|
|
22 |
*
|
|
23 |
* This is the only header you should need to include from frontend code.
|
|
24 |
*/
|
|
25 |
|
|
26 |
#ifndef FRONTLIB_H_
|
|
27 |
#define FRONTLIB_H_
|
|
28 |
|
|
29 |
#include "ipc/gameconn.h"
|
|
30 |
#include "ipc/mapconn.h"
|
|
31 |
#include "net/netconn.h"
|
|
32 |
#include "util/logging.h"
|
|
33 |
#include "model/schemelist.h"
|
|
34 |
|
|
35 |
/**
|
|
36 |
* Call this function before anything else in this library.
|
|
37 |
* Returns 0 on success, -1 on error.
|
|
38 |
*/
|
|
39 |
int flib_init();
|
|
40 |
|
|
41 |
/**
|
|
42 |
* Free resources associated with the library. Call this function once
|
|
43 |
* the library is no longer needed. You can re-initialize the library by calling
|
|
44 |
* flib_init again.
|
|
45 |
*/
|
|
46 |
void flib_quit();
|
|
47 |
|
|
48 |
#endif /* FRONTLIB_H_ */
|