GNUnet 0.22.2
regex_ipc.h
Go to the documentation of this file.
1/*
2 This file is part of GNUnet
3 Copyright (C) 2012, 2013 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 REGEX_IPC_H
27#define REGEX_IPC_H
28
29#include "gnunet_util_lib.h"
30
35{
40
44 uint16_t compression;
45
49 uint16_t reserved;
50
55
56 /* followed by 0-terminated regex as string */
57};
58
59
64{
69
70 /* followed by 0-terminated search string */
71};
72
73
78{
83
88
93
98
99 /* followed by GET path and PUT path arrays */
100};
101
102
103/* end of regex_ipc.h */
104#endif
Request for regex service to announce capability.
Definition: regex_ipc.h:35
struct GNUNET_TIME_RelativeNBO refresh_delay
Delay between repeated announcements.
Definition: regex_ipc.h:54
uint16_t reserved
Always zero.
Definition: regex_ipc.h:49
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_REGEX_ANNOUNCE.
Definition: regex_ipc.h:39
uint16_t compression
How many characters can we squeeze per edge?
Definition: regex_ipc.h:44
Header for all communications.
The identity of the host (wraps the signing key of the peer).
Time for relative time used by GNUnet, in microseconds and in network byte order.
Message to initiate regex search.
Definition: regex_ipc.h:64
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_REGEX_SEARCH.
Definition: regex_ipc.h:68
Result from regex search.
Definition: regex_ipc.h:78
struct GNUNET_PeerIdentity id
Identity of the peer that was found.
Definition: regex_ipc.h:97
uint16_t get_path_length
Number of entries in the GET path.
Definition: regex_ipc.h:87
uint16_t put_path_length
Number of entries in the PUT path.
Definition: regex_ipc.h:92
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_REGEX_RESULT.
Definition: regex_ipc.h:82