aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_handle.c')
-rw-r--r--src/gnunet_chat_handle.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c
index a8f24e7..732dfbd 100644
--- a/src/gnunet_chat_handle.c
+++ b/src/gnunet_chat_handle.c
@@ -260,6 +260,20 @@ handle_disconnect (struct GNUNET_CHAT_Handle *handle)
260 handle_update_key(handle); 260 handle_update_key(handle);
261} 261}
262 262
263const char*
264handle_get_directory (const struct GNUNET_CHAT_Handle *handle)
265{
266 GNUNET_assert(handle);
267
268 if (!(handle->directory))
269 return NULL;
270
271 if (!(handle->current))
272 return handle->directory;
273 else
274 return handle->current->directory;
275}
276
263void 277void
264handle_send_internal_message (struct GNUNET_CHAT_Handle *handle, 278handle_send_internal_message (struct GNUNET_CHAT_Handle *handle,
265 struct GNUNET_CHAT_Context *context, 279 struct GNUNET_CHAT_Context *context,