diff options
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r-- | src/gnunet_chat_handle_intern.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c index b09f045..4d68043 100644 --- a/src/gnunet_chat_handle_intern.c +++ b/src/gnunet_chat_handle_intern.c | |||
@@ -685,6 +685,29 @@ it_context_iterate_dependencies(void *cls, | |||
685 | } | 685 | } |
686 | 686 | ||
687 | void | 687 | void |
688 | on_handle_internal_message_callback(void *cls) | ||
689 | { | ||
690 | struct GNUNET_CHAT_InternalMessages *internal = cls; | ||
691 | |||
692 | GNUNET_assert( | ||
693 | (internal) && | ||
694 | (internal->chat) && | ||
695 | (internal->msg) && | ||
696 | (internal->task) | ||
697 | ); | ||
698 | |||
699 | internal->task = NULL; | ||
700 | |||
701 | struct GNUNET_CHAT_Handle *handle = internal->chat; | ||
702 | struct GNUNET_CHAT_Context *context = internal->msg->context; | ||
703 | |||
704 | if (!(handle->msg_cb)) | ||
705 | return; | ||
706 | |||
707 | handle->msg_cb(handle->msg_cls, context, internal->msg); | ||
708 | } | ||
709 | |||
710 | void | ||
688 | on_handle_message_callback(void *cls) | 711 | on_handle_message_callback(void *cls) |
689 | { | 712 | { |
690 | struct GNUNET_CHAT_Message *message = (struct GNUNET_CHAT_Message*) cls; | 713 | struct GNUNET_CHAT_Message *message = (struct GNUNET_CHAT_Message*) cls; |