diff options
Diffstat (limited to 'src/peerinfo/peerinfo.h')
-rw-r--r-- | src/peerinfo/peerinfo.h | 122 |
1 files changed, 0 insertions, 122 deletions
diff --git a/src/peerinfo/peerinfo.h b/src/peerinfo/peerinfo.h deleted file mode 100644 index 9968733f0..000000000 --- a/src/peerinfo/peerinfo.h +++ /dev/null | |||
@@ -1,122 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2009, 2010 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 | */ | ||
20 | |||
21 | /** | ||
22 | * @file peerinfo/peerinfo.h | ||
23 | * @brief common internal definitions for peerinfo service | ||
24 | * @author Christian Grothoff | ||
25 | */ | ||
26 | |||
27 | #ifndef PEERINFO_H | ||
28 | #define PEERINFO_H | ||
29 | |||
30 | #include "gnunet_util_lib.h" | ||
31 | #include "gnunet_peerinfo_service.h" | ||
32 | #include "gnunet_time_lib.h" | ||
33 | |||
34 | GNUNET_NETWORK_STRUCT_BEGIN | ||
35 | |||
36 | /** | ||
37 | * Message requesting a listing of peers, | ||
38 | * restricted to the specified peer identity. | ||
39 | */ | ||
40 | struct ListPeerMessage | ||
41 | { | ||
42 | /** | ||
43 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET | ||
44 | */ | ||
45 | struct GNUNET_MessageHeader header; | ||
46 | |||
47 | /** | ||
48 | * Include friend only HELLOs and peers in callbacks | ||
49 | */ | ||
50 | uint32_t include_friend_only GNUNET_PACKED; | ||
51 | |||
52 | /** | ||
53 | * Restrict to peers with this identity (optional | ||
54 | * field, check header.size!). | ||
55 | */ | ||
56 | struct GNUNET_PeerIdentity peer; | ||
57 | }; | ||
58 | |||
59 | /** | ||
60 | * Message requesting a listing of all peers, | ||
61 | * restricted to the specified peer identity. | ||
62 | */ | ||
63 | struct ListAllPeersMessage | ||
64 | { | ||
65 | /** | ||
66 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL | ||
67 | */ | ||
68 | struct GNUNET_MessageHeader header; | ||
69 | |||
70 | /** | ||
71 | * Include friend only HELLOs and peers in callbacks | ||
72 | */ | ||
73 | uint32_t include_friend_only GNUNET_PACKED; | ||
74 | }; | ||
75 | |||
76 | |||
77 | /** | ||
78 | * Header for all communications. | ||
79 | */ | ||
80 | struct NotifyMessage | ||
81 | { | ||
82 | /** | ||
83 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY | ||
84 | */ | ||
85 | struct GNUNET_MessageHeader header; | ||
86 | |||
87 | /** | ||
88 | * Include friend only HELLOs and peers in callbacks | ||
89 | */ | ||
90 | uint32_t include_friend_only GNUNET_PACKED; | ||
91 | }; | ||
92 | |||
93 | |||
94 | /** | ||
95 | * Message used to inform the client about | ||
96 | * a particular peer; this message is optionally followed | ||
97 | * by a HELLO message for the respective peer (if available). | ||
98 | * Check the header.size field to see if a HELLO is | ||
99 | * present. | ||
100 | */ | ||
101 | struct InfoMessage | ||
102 | { | ||
103 | /** | ||
104 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_INFO | ||
105 | */ | ||
106 | struct GNUNET_MessageHeader header; | ||
107 | |||
108 | /** | ||
109 | * Always zero. | ||
110 | */ | ||
111 | uint32_t reserved GNUNET_PACKED; | ||
112 | |||
113 | /** | ||
114 | * About which peer are we talking here? | ||
115 | */ | ||
116 | struct GNUNET_PeerIdentity peer; | ||
117 | }; | ||
118 | GNUNET_NETWORK_STRUCT_END | ||
119 | |||
120 | /*#ifndef PEERINFO_H*/ | ||
121 | #endif | ||
122 | /* end of peerinfo.h */ | ||