ios: use single call to initialize chat controller (#1110)

* ios: use single call to initialize chat controller

* update logs

* comments
This commit is contained in:
Evgeny Poberezkin
2022-09-24 09:28:22 +01:00
committed by GitHub
parent c94691c89e
commit ab7fed1628
5 changed files with 12 additions and 20 deletions

View File

@@ -15,8 +15,8 @@ extern void hs_init(int argc, char **argv[]);
typedef void* chat_ctrl;
extern char *chat_migrate_db(char *path, char *key);
extern chat_ctrl chat_init_key(char *path, char *key);
// the last parameter is used to return the pointer to chat controller
extern char *chat_migrate_init(char *path, char *key, chat_ctrl *ctrl);
extern char *chat_send_cmd(chat_ctrl ctl, char *cmd);
extern char *chat_recv_msg(chat_ctrl ctl);
extern char *chat_recv_msg_wait(chat_ctrl ctl, int wait);