forked from Mirrorlandia_minetest/minetest
LINT fix
This commit is contained in:
parent
485bf21998
commit
dda171d292
@ -61,7 +61,7 @@ struct HTTPFetchRequest
|
|||||||
// If not empty, should contain entries such as "Accept: text/html"
|
// If not empty, should contain entries such as "Accept: text/html"
|
||||||
std::vector<std::string> extra_headers;
|
std::vector<std::string> extra_headers;
|
||||||
|
|
||||||
//useragent to use
|
// useragent to use
|
||||||
std::string useragent;
|
std::string useragent;
|
||||||
|
|
||||||
HTTPFetchRequest();
|
HTTPFetchRequest();
|
||||||
@ -77,24 +77,17 @@ struct HTTPFetchResult
|
|||||||
unsigned long caller;
|
unsigned long caller;
|
||||||
unsigned long request_id;
|
unsigned long request_id;
|
||||||
|
|
||||||
HTTPFetchResult() :
|
HTTPFetchResult()
|
||||||
succeeded(false),
|
: succeeded(false), timeout(false), response_code(0), data(""),
|
||||||
timeout(false),
|
caller(HTTPFETCH_DISCARD), request_id(0)
|
||||||
response_code(0),
|
{
|
||||||
data(""),
|
}
|
||||||
caller(HTTPFETCH_DISCARD),
|
|
||||||
request_id(0)
|
|
||||||
{}
|
|
||||||
|
|
||||||
HTTPFetchResult(const HTTPFetchRequest &fetch_request) :
|
|
||||||
succeeded(false),
|
|
||||||
timeout(false),
|
|
||||||
response_code(0),
|
|
||||||
data(""),
|
|
||||||
caller(fetch_request.caller),
|
|
||||||
request_id(fetch_request.request_id)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
HTTPFetchResult(const HTTPFetchRequest &fetch_request)
|
||||||
|
: succeeded(false), timeout(false), response_code(0), data(""),
|
||||||
|
caller(fetch_request.caller), request_id(fetch_request.request_id)
|
||||||
|
{
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Initializes the httpfetch module
|
// Initializes the httpfetch module
|
||||||
@ -124,8 +117,6 @@ void httpfetch_caller_free(unsigned long caller);
|
|||||||
|
|
||||||
// Performs a synchronous HTTP request. This blocks and therefore should
|
// Performs a synchronous HTTP request. This blocks and therefore should
|
||||||
// only be used from background threads.
|
// only be used from background threads.
|
||||||
void httpfetch_sync(const HTTPFetchRequest &fetch_request,
|
void httpfetch_sync(const HTTPFetchRequest &fetch_request, HTTPFetchResult &fetch_result);
|
||||||
HTTPFetchResult &fetch_result);
|
|
||||||
|
|
||||||
|
|
||||||
#endif // !HTTPFETCH_HEADER
|
#endif // !HTTPFETCH_HEADER
|
||||||
|
@ -39,6 +39,7 @@ src/content_cao.h
|
|||||||
src/content_cso.cpp
|
src/content_cso.cpp
|
||||||
src/content_cso.h
|
src/content_cso.h
|
||||||
src/content_mapblock.cpp
|
src/content_mapblock.cpp
|
||||||
|
src/content_mapblock.h
|
||||||
src/content_mapnode.cpp
|
src/content_mapnode.cpp
|
||||||
src/content_nodemeta.cpp
|
src/content_nodemeta.cpp
|
||||||
src/content_nodemeta.h
|
src/content_nodemeta.h
|
||||||
@ -147,6 +148,7 @@ src/map_settings_manager.cpp
|
|||||||
src/map_settings_manager.h
|
src/map_settings_manager.h
|
||||||
src/mesh.cpp
|
src/mesh.cpp
|
||||||
src/mesh.h
|
src/mesh.h
|
||||||
|
src/mesh_generator_thread.cpp
|
||||||
src/metadata.h
|
src/metadata.h
|
||||||
src/mg_biome.cpp
|
src/mg_biome.cpp
|
||||||
src/mg_biome.h
|
src/mg_biome.h
|
||||||
|
Loading…
Reference in New Issue
Block a user