aboutsummaryrefslogtreecommitdiff
path: root/src/messenger/gnunet-service-messenger_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/messenger/gnunet-service-messenger_service.h')
-rw-r--r--src/messenger/gnunet-service-messenger_service.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/src/messenger/gnunet-service-messenger_service.h b/src/messenger/gnunet-service-messenger_service.h
index 36df81141..69486b415 100644
--- a/src/messenger/gnunet-service-messenger_service.h
+++ b/src/messenger/gnunet-service-messenger_service.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2020--2021 GNUnet e.V. 3 Copyright (C) 2020--2023 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
@@ -31,13 +31,12 @@
31#include "gnunet_util_lib.h" 31#include "gnunet_util_lib.h"
32#include "gnunet_identity_service.h" 32#include "gnunet_identity_service.h"
33 33
34#include "gnunet-service-messenger_ego_store.h"
35#include "gnunet-service-messenger_list_handles.h" 34#include "gnunet-service-messenger_list_handles.h"
36 35
37#include "messenger_api_contact_store.h" 36#include "messenger_api_contact_store.h"
38#include "gnunet-service-messenger_room.h"
39 37
40#include "gnunet-service-messenger_member_session.h" 38#include "gnunet-service-messenger_room.h"
39#include "gnunet-service-messenger_sender_session.h"
41 40
42struct GNUNET_MESSENGER_Service 41struct GNUNET_MESSENGER_Service
43{ 42{
@@ -46,11 +45,11 @@ struct GNUNET_MESSENGER_Service
46 45
47 struct GNUNET_SCHEDULER_Task *shutdown; 46 struct GNUNET_SCHEDULER_Task *shutdown;
48 47
48 struct GNUNET_PeerIdentity *peer;
49 char *dir; 49 char *dir;
50 50
51 struct GNUNET_CADET_Handle *cadet; 51 struct GNUNET_CADET_Handle *cadet;
52 52
53 struct GNUNET_MESSENGER_EgoStore ego_store;
54 struct GNUNET_MESSENGER_ContactStore contact_store; 53 struct GNUNET_MESSENGER_ContactStore contact_store;
55 54
56 struct GNUNET_MESSENGER_ListHandles handles; 55 struct GNUNET_MESSENGER_ListHandles handles;
@@ -78,15 +77,6 @@ void
78destroy_service (struct GNUNET_MESSENGER_Service *service); 77destroy_service (struct GNUNET_MESSENGER_Service *service);
79 78
80/** 79/**
81 * Returns the used EGO-store of a given <i>service</i>.
82 *
83 * @param[in,out] service Service
84 * @return EGO-store
85 */
86struct GNUNET_MESSENGER_EgoStore*
87get_service_ego_store (struct GNUNET_MESSENGER_Service *service);
88
89/**
90 * Returns the used contact store of a given <i>service</i>. 80 * Returns the used contact store of a given <i>service</i>.
91 * 81 *
92 * @param[in,out] service Service 82 * @param[in,out] service Service
@@ -120,12 +110,12 @@ remove_service_handle (struct GNUNET_MESSENGER_Service *service,
120 * Tries to write the peer identity of the peer running a <i>service</i> on to the <i>peer</i> 110 * Tries to write the peer identity of the peer running a <i>service</i> on to the <i>peer</i>
121 * parameter. The functions returns #GNUNET_OK on success, otherwise #GNUNET_SYSERR. 111 * parameter. The functions returns #GNUNET_OK on success, otherwise #GNUNET_SYSERR.
122 * 112 *
123 * @param[in] service Service 113 * @param[in,out] service Service
124 * @param[out] peer Peer identity 114 * @param[out] peer Peer identity
125 * @return #GNUNET_OK on success, otherwise #GNUNET_SYSERR 115 * @return #GNUNET_OK on success, otherwise #GNUNET_SYSERR
126 */ 116 */
127int 117int
128get_service_peer_identity (const struct GNUNET_MESSENGER_Service *service, 118get_service_peer_identity (struct GNUNET_MESSENGER_Service *service,
129 struct GNUNET_PeerIdentity *peer); 119 struct GNUNET_PeerIdentity *peer);
130 120
131/** 121/**
@@ -196,14 +186,14 @@ close_service_room (struct GNUNET_MESSENGER_Service *service,
196 * 186 *
197 * @param[in,out] service Service 187 * @param[in,out] service Service
198 * @param[in,out] room Room 188 * @param[in,out] room Room
199 * @param[in] session Member session 189 * @param[in] session Sender session
200 * @param[in] message Message 190 * @param[in] message Message
201 * @param[in] hash Hash of message 191 * @param[in] hash Hash of message
202 */ 192 */
203void 193void
204handle_service_message (struct GNUNET_MESSENGER_Service *service, 194handle_service_message (struct GNUNET_MESSENGER_Service *service,
205 struct GNUNET_MESSENGER_SrvRoom *room, 195 struct GNUNET_MESSENGER_SrvRoom *room,
206 const struct GNUNET_MESSENGER_MemberSession *session, 196 const struct GNUNET_MESSENGER_SenderSession *session,
207 const struct GNUNET_MESSENGER_Message *message, 197 const struct GNUNET_MESSENGER_Message *message,
208 const struct GNUNET_HashCode *hash); 198 const struct GNUNET_HashCode *hash);
209 199