Remove necessity to include td/tl/tl_json.h.
GitOrigin-RevId: 612988c86cd74eddf6f4ae02fee33635afc93995
This commit is contained in:
parent
240c092368
commit
8f72e0daea
@ -224,10 +224,15 @@ void gen_json_converter_file(const tl::simple::Schema &schema, const std::string
|
||||
sb << "namespace td {\n";
|
||||
sb << "namespace td_api {\n";
|
||||
if (is_header) {
|
||||
sb << "\nStatus from_json(tl_object_ptr<Function> &to, td::JsonValue from);\n";
|
||||
sb << "\nvoid to_json(JsonValueScope &jv, const Object &object);\n";
|
||||
sb << "\nvoid to_json(JsonValueScope &jv, const Function &object);\n\n";
|
||||
} else {
|
||||
sb << R"ABCD(
|
||||
Status from_json(tl_object_ptr<Function> &to, td::JsonValue from) {
|
||||
return td::from_json(to, std::move(from));
|
||||
}
|
||||
|
||||
template <class T>
|
||||
auto lazy_to_json(JsonValueScope &jv, const T &t) -> decltype(td_api::to_json(jv, t)) {
|
||||
return td_api::to_json(jv, t);
|
||||
|
@ -9,8 +9,6 @@
|
||||
#include "td/telegram/td_api.h"
|
||||
#include "td/telegram/td_api_json.h"
|
||||
|
||||
#include "td/tl/tl_json.h"
|
||||
|
||||
#include "td/utils/common.h"
|
||||
#include "td/utils/JsonBuilder.h"
|
||||
#include "td/utils/logging.h"
|
||||
|
@ -11,8 +11,6 @@
|
||||
#include "td/net/HttpQuery.h"
|
||||
#include "td/net/HttpReader.h"
|
||||
|
||||
#include "td/tl/tl_json.h"
|
||||
|
||||
#include "td/telegram/ClientActor.h"
|
||||
#include "td/telegram/Log.h"
|
||||
#include "td/telegram/td_api_json.h"
|
||||
|
Loading…
Reference in New Issue
Block a user