messenger-gtk

Gtk+3 graphical user interfaces for GNUnet Messenger
Log | Files | Refs | Submodules | README | LICENSE

commit 501d6bd381c9ce6e545a6468ab5f04fe26ed2b50
parent 544b8c0f1f2970eb619025b7a3ae7579131adc67
Author: Jacki <jacki@thejackimonster.de>
Date:   Fri, 27 Sep 2024 19:04:15 +0200

Change short hash into discourse id struct

Signed-off-by: Jacki <jacki@thejackimonster.de>

Diffstat:
Msrc/discourse.c | 14+++++++-------
Msrc/discourse.h | 4++--
Msrc/ui/discourse.c | 2+-
3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/discourse.c b/src/discourse.c @@ -32,11 +32,11 @@ #include <pthread.h> #include <stdlib.h> -const struct GNUNET_ShortHashCode* +const struct GNUNET_CHAT_DiscourseId* get_voice_discourse_id() { static enum GNUNET_GenericReturnValue init = GNUNET_NO; - static struct GNUNET_ShortHashCode id; + static struct GNUNET_CHAT_DiscourseId id; if (GNUNET_YES != init) { @@ -47,11 +47,11 @@ get_voice_discourse_id() return &id; } -const struct GNUNET_ShortHashCode* +const struct GNUNET_CHAT_DiscourseId* get_video_discourse_id() { static enum GNUNET_GenericReturnValue init = GNUNET_NO; - static struct GNUNET_ShortHashCode id; + static struct GNUNET_CHAT_DiscourseId id; if (GNUNET_YES != init) { @@ -226,7 +226,7 @@ discourse_subscription_create_info(MESSENGER_DiscourseInfo *discourse, info->end_datetime = NULL; - const struct GNUNET_ShortHashCode *id = GNUNET_CHAT_discourse_get_id( + const struct GNUNET_CHAT_DiscourseId *id = GNUNET_CHAT_discourse_get_id( info->discourse->discourse ); @@ -327,7 +327,7 @@ discourse_subscription_stream_message(MESSENGER_DiscourseSubscriptionInfo *info, if (!available) return; - const struct GNUNET_ShortHashCode *id = GNUNET_CHAT_discourse_get_id( + const struct GNUNET_CHAT_DiscourseId *id = GNUNET_CHAT_discourse_get_id( info->discourse->discourse ); @@ -752,7 +752,7 @@ discourse_create_info(struct GNUNET_CHAT_Discourse *discourse) info->heartbeat = 0; info->subscriptions = NULL; - const struct GNUNET_ShortHashCode *id = GNUNET_CHAT_discourse_get_id( + const struct GNUNET_CHAT_DiscourseId *id = GNUNET_CHAT_discourse_get_id( info->discourse ); diff --git a/src/discourse.h b/src/discourse.h @@ -37,7 +37,7 @@ * * @return Voice chat discourse id */ -const struct GNUNET_ShortHashCode* +const struct GNUNET_CHAT_DiscourseId* get_voice_discourse_id(); /** @@ -45,7 +45,7 @@ get_voice_discourse_id(); * * @return Video chat discourse id */ -const struct GNUNET_ShortHashCode* +const struct GNUNET_CHAT_DiscourseId* get_video_discourse_id(); typedef enum MESSENGER_DiscourseControl { diff --git a/src/ui/discourse.c b/src/ui/discourse.c @@ -838,7 +838,7 @@ iterate_ui_discourse_search_context_discourses(void *cls, struct GNUNET_CHAT_Discourse **discourses = (struct GNUNET_CHAT_Discourse**) cls; - const struct GNUNET_ShortHashCode *id = GNUNET_CHAT_discourse_get_id(discourse); + const struct GNUNET_CHAT_DiscourseId *id = GNUNET_CHAT_discourse_get_id(discourse); if (0 == GNUNET_memcmp(id, get_voice_discourse_id())) discourses[0] = discourse;