compiled again, some kinda bug still there

This commit is contained in:
2023-01-13 00:39:56 +01:00
parent 89f9610730
commit f7313aa2bf
3 changed files with 67 additions and 57 deletions

View File

@@ -48,11 +48,12 @@ void NGC_HS1_kill(NGC_HS1* ngc_hs1_ctx);
//void NGC_HS1_kill(NGC_EXT_CTX* ngc_ext_ctx);
// ========== iterate ==========
void NGC_HS1_iterate(Tox *tox, NGC_EXT_CTX* ngc_ext_ctx/*, void *user_data*/);
void NGC_HS1_iterate(Tox *tox, NGC_HS1* ngc_hs1_ctx);
//void NGC_HS1_iterate(Tox *tox, NGC_EXT_CTX* ngc_ext_ctx/*, void *user_data*/);
// ========== peer online/offline ==========
void NGC_HS1_peer_online(Tox* tox, NGC_EXT_CTX* ngc_ext_ctx, uint32_t group_number, uint32_t peer_number, bool online);
void NGC_HS1_peer_online(Tox* tox, NGC_HS1* ngc_hs1_ctx, uint32_t group_number, uint32_t peer_number, bool online);
// ========== send ==========
@@ -60,7 +61,7 @@ void NGC_HS1_peer_online(Tox* tox, NGC_EXT_CTX* ngc_ext_ctx, uint32_t group_numb
// NGC_HS1_record_own_message()
bool NGC_HS1_shim_group_send_message(
const Tox *tox,
NGC_EXT_CTX* ngc_ext_ctx,
NGC_HS1* ngc_hs1_ctx,
uint32_t group_number,
@@ -74,7 +75,7 @@ bool NGC_HS1_shim_group_send_message(
// record own msg
void NGC_HS1_record_own_message(
const Tox *tox,
NGC_EXT_CTX* ngc_ext_ctx,
NGC_HS1* ngc_hs1_ctx,
uint32_t group_number,
@@ -94,12 +95,12 @@ typedef void NGC_HS1_group_message_cb(
);
// callback for when history sync has a new message
void NGC_HS1_register_callback_group_message(NGC_EXT_CTX* ngc_ext_ctx, NGC_HS1_group_message_cb* callback);
void NGC_HS1_register_callback_group_message(NGC_HS1* ngc_hs1_ctx, NGC_HS1_group_message_cb* callback); // TODO: userdata
// record others msg
void NGC_HS1_record_message(
const Tox *tox,
NGC_EXT_CTX* ngc_ext_ctx,
NGC_HS1* ngc_hs1_ctx,
uint32_t group_number,
uint32_t peer_number,