aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_lobby_intern.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_lobby_intern.c')
-rw-r--r--src/gnunet_chat_lobby_intern.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gnunet_chat_lobby_intern.c b/src/gnunet_chat_lobby_intern.c
index 664b2aa..0de0494 100644
--- a/src/gnunet_chat_lobby_intern.c
+++ b/src/gnunet_chat_lobby_intern.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2022--2023 GNUnet e.V. 3 Copyright (C) 2022--2024 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -26,7 +26,7 @@
26 26
27void 27void
28cont_lobby_write_records (void *cls, 28cont_lobby_write_records (void *cls,
29 enum GNUNET_ErrorCode ec) 29 enum GNUNET_ErrorCode ec)
30{ 30{
31 struct GNUNET_CHAT_Lobby *lobby = cls; 31 struct GNUNET_CHAT_Lobby *lobby = cls;
32 32
@@ -35,7 +35,7 @@ cont_lobby_write_records (void *cls,
35 lobby->query = NULL; 35 lobby->query = NULL;
36 36
37 const struct GNUNET_HashCode *key = GNUNET_MESSENGER_room_get_key( 37 const struct GNUNET_HashCode *key = GNUNET_MESSENGER_room_get_key(
38 lobby->context->room 38 lobby->context->room
39 ); 39 );
40 40
41 char *name; 41 char *name;
@@ -52,10 +52,10 @@ cont_lobby_write_records (void *cls,
52 } 52 }
53 53
54 handle_send_internal_message( 54 handle_send_internal_message(
55 lobby->handle, 55 lobby->handle,
56 lobby->context, 56 lobby->context,
57 GNUNET_CHAT_FLAG_WARNING, 57 GNUNET_CHAT_FLAG_WARNING,
58 GNUNET_ErrorCode_get_hint(ec) 58 GNUNET_ErrorCode_get_hint(ec)
59 ); 59 );
60 60
61 if (lobby->uri) 61 if (lobby->uri)
@@ -70,8 +70,8 @@ call_cb:
70 70
71void 71void
72cont_lobby_identity_create (void *cls, 72cont_lobby_identity_create (void *cls,
73 const struct GNUNET_CRYPTO_PrivateKey *zone, 73 const struct GNUNET_CRYPTO_PrivateKey *zone,
74 enum GNUNET_ErrorCode ec) 74 enum GNUNET_ErrorCode ec)
75{ 75{
76 struct GNUNET_CHAT_Lobby *lobby = cls; 76 struct GNUNET_CHAT_Lobby *lobby = cls;
77 77
@@ -82,17 +82,17 @@ cont_lobby_identity_create (void *cls,
82 if (GNUNET_EC_NONE != ec) 82 if (GNUNET_EC_NONE != ec)
83 { 83 {
84 handle_send_internal_message( 84 handle_send_internal_message(
85 lobby->handle, 85 lobby->handle,
86 lobby->context, 86 lobby->context,
87 GNUNET_CHAT_FLAG_WARNING, 87 GNUNET_CHAT_FLAG_WARNING,
88 GNUNET_ErrorCode_get_hint(ec) 88 GNUNET_ErrorCode_get_hint(ec)
89 ); 89 );
90 90
91 return; 91 return;
92 } 92 }
93 93
94 const struct GNUNET_HashCode *key = GNUNET_MESSENGER_room_get_key( 94 const struct GNUNET_HashCode *key = GNUNET_MESSENGER_room_get_key(
95 lobby->context->room 95 lobby->context->room
96 ); 96 );
97 97
98 struct GNUNET_MESSENGER_RoomEntryRecord room; 98 struct GNUNET_MESSENGER_RoomEntryRecord room;
@@ -119,12 +119,12 @@ cont_lobby_identity_create (void *cls,
119 GNUNET_free(label); 119 GNUNET_free(label);
120 120
121 lobby->query = GNUNET_NAMESTORE_record_set_store( 121 lobby->query = GNUNET_NAMESTORE_record_set_store(
122 lobby->handle->namestore, 122 lobby->handle->namestore,
123 zone, 123 zone,
124 lobby->uri->label, 124 lobby->uri->label,
125 1, 125 1,
126 data, 126 data,
127 cont_lobby_write_records, 127 cont_lobby_write_records,
128 lobby 128 lobby
129 ); 129 );
130} 130}