diff --git a/td/generate/tl_writer_c.h b/td/generate/tl_writer_c.h index e31bc969c..a85f00c0d 100644 --- a/td/generate/tl_writer_c.h +++ b/td/generate/tl_writer_c.h @@ -242,7 +242,7 @@ class TlWriterCCommon final : public tl::TL_writer { "TDC_VECTOR(Int,int)\n" "TDC_VECTOR(Long,long long)\n" "TDC_VECTOR(String,char *)\n" - "TDC_VECTOR(Bytes,TdBytes)\n" + "TDC_VECTOR(Bytes,struct TdBytes)\n" "struct TdStackStorerMethods {\n" " void (*pack_string)(const char *s);\n" " void (*pack_bytes)(const unsigned char *s, int len);\n" diff --git a/td/telegram/td_c_client.h b/td/telegram/td_c_client.h index a8310a210..26f88cb68 100644 --- a/td/telegram/td_c_client.h +++ b/td/telegram/td_c_client.h @@ -19,22 +19,22 @@ struct TdBytes TdCreateObjectBytes(unsigned char *data, int len); struct TdRequest { long long request_id; - TdFunction *function; + struct TdFunction *function; }; struct TdResponse { long long request_id; int client_id; - TdObject *object; + struct TdObject *object; }; int TdCClientCreateId(); void TdCClientSend(int client_id, struct TdRequest request); -TdResponse TdCClientReceive(double timeout); +struct TdResponse TdCClientReceive(double timeout); -TdObject *TdCClientExecute(TdFunction *function); +struct TdObject *TdCClientExecute(struct TdFunction *function); #ifdef __cplusplus }