2022-01-22 17:54:22 +00:00
|
|
|
//
|
2022-05-31 07:55:13 +01:00
|
|
|
// SimpleX.h
|
|
|
|
|
// SimpleX
|
2022-01-22 17:54:22 +00:00
|
|
|
//
|
2022-05-31 07:55:13 +01:00
|
|
|
// Created by Evgeny on 30/05/2022.
|
|
|
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#ifndef SimpleX_h
|
|
|
|
|
#define SimpleX_h
|
|
|
|
|
|
|
|
|
|
#endif /* SimpleX_h */
|
2022-01-22 17:54:22 +00:00
|
|
|
|
2022-01-29 11:10:04 +00:00
|
|
|
extern void hs_init(int argc, char **argv[]);
|
2022-01-22 17:54:22 +00:00
|
|
|
|
2022-01-29 11:10:04 +00:00
|
|
|
typedef void* chat_ctrl;
|
2022-01-22 17:54:22 +00:00
|
|
|
|
2022-09-24 09:28:22 +01:00
|
|
|
// the last parameter is used to return the pointer to chat controller
|
|
|
|
|
extern char *chat_migrate_init(char *path, char *key, chat_ctrl *ctrl);
|
2022-01-29 11:10:04 +00:00
|
|
|
extern char *chat_send_cmd(chat_ctrl ctl, char *cmd);
|
|
|
|
|
extern char *chat_recv_msg(chat_ctrl ctl);
|
2022-06-24 13:52:20 +01:00
|
|
|
extern char *chat_recv_msg_wait(chat_ctrl ctl, int wait);
|
|
|
|
|
extern char *chat_parse_markdown(char *str);
|