aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_context.c')
-rw-r--r--src/gnunet_chat_context.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c
index 3124ded..27e8f35 100644
--- a/src/gnunet_chat_context.c
+++ b/src/gnunet_chat_context.c
@@ -165,12 +165,14 @@ GNUNET_CHAT_context_delete_message (struct GNUNET_CHAT_Context *context,
165 GNUNET_MESSENGER_send_message(context->room, &message, NULL); 165 GNUNET_MESSENGER_send_message(context->room, &message, NULL);
166} 166}
167 167
168const struct GNUNET_CHAT_Message* 168int
169GNUNET_CHAT_context_get_message (struct GNUNET_CHAT_Context *context, 169GNUNET_CHAT_context_get_message (struct GNUNET_CHAT_Context *context,
170 const struct GNUNET_HashCode *hash) 170 const struct GNUNET_HashCode *hash,
171 GNUNET_CHAT_ContextMessageCallback callback,
172 void *cls)
171{ 173{
172 if (!context) 174 if (!context)
173 return NULL; 175 return GNUNET_SYSERR;
174 176
175 struct GNUNET_MESSENGER_Message *message = GNUNET_MESSENGER_get_message( 177 struct GNUNET_MESSENGER_Message *message = GNUNET_MESSENGER_get_message(
176 context->room, hash 178 context->room, hash
@@ -178,7 +180,7 @@ GNUNET_CHAT_context_get_message (struct GNUNET_CHAT_Context *context,
178 180
179 //TODO: convert messenger-message to chat-message 181 //TODO: convert messenger-message to chat-message
180 182
181 return NULL; 183 return GNUNET_OK;
182} 184}
183 185
184int 186int