mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-18 02:25:43 +00:00
* core, ios: profile privacy design * migration * core: user profile privacy * update nix dependencies * update simplexmq * import stateTVar * update core library * update UI * update hide/show user profile * update API, UI, fix test * update api, UI, test * update api call * fix api * update UI for hidden profiles * filter notifications on hidden/muted profiles when inactive, alerts * updates * update schema, test, icon
28 lines
838 B
C
28 lines
838 B
C
//
|
|
// SimpleX.h
|
|
// SimpleX
|
|
//
|
|
// Created by Evgeny on 30/05/2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
#ifndef SimpleX_h
|
|
#define SimpleX_h
|
|
|
|
#endif /* SimpleX_h */
|
|
|
|
extern void hs_init(int argc, char **argv[]);
|
|
|
|
typedef void* chat_ctrl;
|
|
|
|
// 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);
|
|
extern char *chat_parse_markdown(char *str);
|
|
extern char *chat_parse_server(char *str);
|
|
extern char *chat_password_hash(char *pwd, char *salt);
|
|
extern char *chat_encrypt_media(char *key, char *frame, int len);
|
|
extern char *chat_decrypt_media(char *key, char *frame, int len);
|