desktop (windows): fix lib build (#3456)
This commit is contained in:
parent
fe9953fc49
commit
4572fec61d
@ -49,6 +49,13 @@ Java_chat_simplex_common_platform_CoreKt_initHS(__unused JNIEnv *env, __unused j
|
|||||||
// from simplex-chat
|
// from simplex-chat
|
||||||
typedef long* chat_ctrl;
|
typedef long* chat_ctrl;
|
||||||
|
|
||||||
|
/*
|
||||||
|
When you start using any new function from Haskell libraries,
|
||||||
|
you have to add the function name to the file libsimplex.dll.def in the root directory.
|
||||||
|
And do the same by adding it into flake.nix file in the root directory,
|
||||||
|
Otherwise, Windows and Android libraries cannot be built.
|
||||||
|
*/
|
||||||
|
|
||||||
extern char *chat_migrate_init(const char *path, const char *key, const char *confirm, chat_ctrl *ctrl);
|
extern char *chat_migrate_init(const char *path, const char *key, const char *confirm, chat_ctrl *ctrl);
|
||||||
extern char *chat_send_cmd(chat_ctrl ctrl, const char *cmd);
|
extern char *chat_send_cmd(chat_ctrl ctrl, const char *cmd);
|
||||||
extern char *chat_send_remote_cmd(chat_ctrl ctrl, const int rhId, const char *cmd);
|
extern char *chat_send_remote_cmd(chat_ctrl ctrl, const int rhId, const char *cmd);
|
||||||
|
@ -22,6 +22,13 @@ Java_chat_simplex_common_platform_CoreKt_initHS(JNIEnv *env, jclass clazz) {
|
|||||||
// from simplex-chat
|
// from simplex-chat
|
||||||
typedef long* chat_ctrl;
|
typedef long* chat_ctrl;
|
||||||
|
|
||||||
|
/*
|
||||||
|
When you start using any new function from Haskell libraries,
|
||||||
|
you have to add the function name to the file libsimplex.dll.def in the root directory.
|
||||||
|
And do the same by adding it into flake.nix file in the root directory,
|
||||||
|
Otherwise, Windows and Android libraries cannot be built.
|
||||||
|
*/
|
||||||
|
|
||||||
extern char *chat_migrate_init(const char *path, const char *key, const char *confirm, chat_ctrl *ctrl);
|
extern char *chat_migrate_init(const char *path, const char *key, const char *confirm, chat_ctrl *ctrl);
|
||||||
extern char *chat_send_cmd(chat_ctrl ctrl, const char *cmd);
|
extern char *chat_send_cmd(chat_ctrl ctrl, const char *cmd);
|
||||||
extern char *chat_send_remote_cmd(chat_ctrl ctrl, const int rhId, const char *cmd);
|
extern char *chat_send_remote_cmd(chat_ctrl ctrl, const int rhId, const char *cmd);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
LIBRARY libsimplex
|
LIBRARY libsimplex
|
||||||
EXPORTS
|
EXPORTS
|
||||||
hs_init
|
hs_init
|
||||||
|
hs_init_with_rtsopts
|
||||||
chat_migrate_init
|
chat_migrate_init
|
||||||
chat_send_cmd
|
chat_send_cmd
|
||||||
chat_send_remote_cmd
|
chat_send_remote_cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user