summaryrefslogtreecommitdiff
path: root/src/messenger/gnunet-service-messenger_member_session.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/messenger/gnunet-service-messenger_member_session.h')
-rw-r--r--src/messenger/gnunet-service-messenger_member_session.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/messenger/gnunet-service-messenger_member_session.h b/src/messenger/gnunet-service-messenger_member_session.h
index cf4a6bb07..fa9c6b829 100644
--- a/src/messenger/gnunet-service-messenger_member_session.h
+++ b/src/messenger/gnunet-service-messenger_member_session.h
@@ -30,6 +30,7 @@
#include "gnunet_crypto_lib.h"
#include "gnunet_container_lib.h"
#include "gnunet_identity_service.h"
+#include "gnunet_time_lib.h"
#include "gnunet-service-messenger_member.h"
@@ -49,6 +50,8 @@ struct GNUNET_MESSENGER_MemberSession {
struct GNUNET_MESSENGER_MemberSession* prev;
struct GNUNET_MESSENGER_MemberSession* next;
+ struct GNUNET_TIME_Absolute start;
+
int closed;
int completed;
};
@@ -140,6 +143,15 @@ int
is_member_session_completed (const struct GNUNET_MESSENGER_MemberSession* session);
/**
+ * Returns the timestamp of the member <i>session</i>'s start.
+ *
+ * @param[in] session Member session
+ * @return Absolute timestamp
+ */
+struct GNUNET_TIME_Absolute
+get_member_session_start (const struct GNUNET_MESSENGER_MemberSession* session);
+
+/**
* Returns the key of the room a given member <i>session</i> belongs to.
*
* @param[in] session Member session