GNUnet  0.11.x
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 {
82  struct GNUNET_MessageHeader header;
83 
87  uint16_t get_path_length;
88 
92  uint16_t put_path_length;
93 
98 
99  /* followed by GET path and PUT path arrays */
100 };
101 
102 
103 /* end of regex_ipc.h */
104 #endif
uint16_t compression
How many characters can we squeeze per edge?
Definition: regex_ipc.h:44
Message to initiate regex search.
Definition: regex_ipc.h:63
Result from regex search.
Definition: regex_ipc.h:77
static struct GNUNET_IDENTITY_Handle * id
Handle to identity service.
Time for relative time used by GNUnet, in microseconds and in network byte order. ...
uint16_t put_path_length
Number of entries in the PUT path.
Definition: regex_ipc.h:92
Request for regex service to announce capability.
Definition: regex_ipc.h:34
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
The identity of the host (wraps the signing key of the peer).
uint16_t get_path_length
Number of entries in the GET path.
Definition: regex_ipc.h:87
Header for all communications.
struct GNUNET_TIME_RelativeNBO refresh_delay
Delay between repeated announcements.
Definition: regex_ipc.h:54