GNUnet 0.22.2
messenger_api_message_control.h
Go to the documentation of this file.
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2024 GNUnet e.V.
4
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
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
26#ifndef GNUNET_MESSENGER_API_MESSAGE_CONTROL_H
27#define GNUNET_MESSENGER_API_MESSAGE_CONTROL_H
28
29#include "gnunet_common.h"
31#include "gnunet_util_lib.h"
32
35
37{
39
43
47
50};
51
53
55{
57
60
63};
64
73
79void
81
97void
99 const struct GNUNET_HashCode *sender,
100 const struct GNUNET_HashCode *context,
101 const struct GNUNET_HashCode *hash,
102 const struct GNUNET_MESSENGER_Message *message,
104
105#endif //GNUNET_MESSENGER_API_MESSAGE_CONTROL_H
static pa_context * context
Pulseaudio context.
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
GNUNET_MESSENGER_MessageFlags
Enum for the different supported flags used by message handling.
struct GNUNET_MESSENGER_MessageControl * create_message_control(struct GNUNET_MESSENGER_Room *room)
Creates and allocates a new message control for a room of the client API.
void destroy_message_control(struct GNUNET_MESSENGER_MessageControl *control)
Destroys a message control and frees its memory fully from the client API.
void process_message_control(struct GNUNET_MESSENGER_MessageControl *control, const struct GNUNET_HashCode *sender, const struct GNUNET_HashCode *context, const struct GNUNET_HashCode *hash, const struct GNUNET_MESSENGER_Message *message, enum GNUNET_MESSENGER_MessageFlags flags)
Processes a new message with its hash and regarding information about sender, context and message fla...
Internal representation of the hash map.
A 512-bit hashcode.
struct GNUNET_MESSENGER_Message * message
struct GNUNET_MESSENGER_MessageControl * control
enum GNUNET_MESSENGER_MessageFlags flags
struct GNUNET_MESSENGER_MessageControlQueue * prev
struct GNUNET_MESSENGER_MessageControlQueue * next
struct GNUNET_CONTAINER_MultiShortmap * member_messages
struct GNUNET_MESSENGER_MessageControlQueue * head
struct GNUNET_CONTAINER_MultiShortmap * peer_messages
struct GNUNET_MESSENGER_MessageControlQueue * tail
Entry in list of pending tasks.
Definition: scheduler.c:136