/* * localui.h -- the UI side of the local peer mode * * License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. */ #ifndef _Dtchat_localui_h #define _Dtchat_localui_h #include "ui_main.h" #include "dc_internal.h" typedef struct DtLocal DtLocal; /* * Start the listener, the manual peer links, the pin store and the UI hooks. * PEERS is owned by the manager (the caller must not free it while running). * Returns NULL when the identity or the listener cannot be set up. */ DtLocal *dtchat_local_start(DtChatUi *ui, DcModel *model, DcPeers *peers, const char *config_dir, const char *listen_text, const char *const *peer_text, int npeers, const char *downloads_dir); void dtchat_local_stop(DtLocal *local); /* call the first online peer, for --call-first (a test convenience) */ int dtchat_local_call_first(DtLocal *local); #endif /* _Dtchat_localui_h */