File: xmlparse.h

package info (click to toggle)
gtkatlantic 0.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,144 kB
  • ctags: 863
  • sloc: sh: 10,807; ansic: 7,915; xml: 188; makefile: 94
file content (56 lines) | stat: -rw-r--r-- 2,414 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 *     gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
 *
 *
 *  Copyright © 2002-2015 Sylvain Rochet
 *
 *  gtkatlantic is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; see the file COPYING. If not, see
 *  <http://www.gnu.org/licenses/>.
 */

#ifndef XMLPARSE_H
#define XMLPARSE_H

#include <gtk/gtk.h>
#include <libxml/parser.h>

#include "global.h"

#define SERVER_XMLROOTELEMENT (xmlChar*)"monopd"
#define METASERVER_XMLROOTELEMENT (xmlChar*)"meta_atlantic"

void xmlparse_getgamelist_plugger(connection *c, gchar *buffer);
void xmlparse_game_plugger(connection *c, gchar *buffer);

void xmlparse_server(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_client(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_message(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_estateupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_playerupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_auctionupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_display(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_configupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_tradeupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_cardupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_estategroupupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_deleteplayer(connection *c, xmlDocPtr doc, xmlNodePtr cur);

void xmlparse_gamelist_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
void xmlparse_gamelist_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur);

void xmlparse_metaserver(connection *c, gchar *buffer);

#endif /* XMLPARSE_H */