author | Tero Marttila <terom@fixme.fi> |
Sat, 19 Jul 2008 01:38:52 +0300 | |
changeset 11178 | aa617a8b4f34 |
parent 11174 | b29402c54ffe |
child 11181 | 403550141f43 |
permissions | -rw-r--r-- |
11174
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
1 |
/* $Id$ */ |
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
2 |
|
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
3 |
/** @file newgrf_download.h Functions to download NewGRFs. */ |
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
4 |
|
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
5 |
#ifndef NEWGRF_DOWNLOAD_H |
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
6 |
#define NEWGRF_DOWNLOAD_H |
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
7 |
|
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
8 |
#include "../newgrf_config.h" |
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
9 |
|
11178
aa617a8b4f34
a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents:
11174
diff
changeset
|
10 |
// URL to the Master NewGRF database API |
aa617a8b4f34
a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents:
11174
diff
changeset
|
11 |
#define NETWORK_NEWGRF_MASTER_API "http://localhost:8000/openttd-api/%s" |
aa617a8b4f34
a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents:
11174
diff
changeset
|
12 |
|
aa617a8b4f34
a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents:
11174
diff
changeset
|
13 |
// our HTTP User-Agent :) |
aa617a8b4f34
a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents:
11174
diff
changeset
|
14 |
#define NETWORK_HTTP_USER_AGENT "OpenTTD (%s)" |
aa617a8b4f34
a working CheckAvailableNewGRFs that does a metadata search/retreival via HTTP for a given list of GRFs
Tero Marttila <terom@fixme.fi>
parents:
11174
diff
changeset
|
15 |
|
11174
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
16 |
/* In newgrf_download.cpp */ |
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
17 |
void ShowNewGRFDownload(GRFConfig **config); |
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
18 |
|
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
19 |
#endif /* NEWGRF_DOWNLOAD_H */ |
b29402c54ffe
create the newgrf download GUI (mostly by copy-pasting from newgrf_gui.cpp) - compiles, needs testing
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
20 |