diff options
Diffstat (limited to 'src/peerinfo/peerinfo.h')
-rw-r--r-- | src/peerinfo/peerinfo.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/peerinfo/peerinfo.h b/src/peerinfo/peerinfo.h index ea1c6598c..85501593e 100644 --- a/src/peerinfo/peerinfo.h +++ b/src/peerinfo/peerinfo.h | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 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/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file peerinfo/peerinfo.h | 22 | * @file peerinfo/peerinfo.h |
@@ -39,9 +39,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
39 | * Message requesting a listing of peers, | 39 | * Message requesting a listing of peers, |
40 | * restricted to the specified peer identity. | 40 | * restricted to the specified peer identity. |
41 | */ | 41 | */ |
42 | struct ListPeerMessage | 42 | struct ListPeerMessage { |
43 | { | ||
44 | |||
45 | /** | 43 | /** |
46 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET | 44 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET |
47 | */ | 45 | */ |
@@ -57,15 +55,13 @@ struct ListPeerMessage | |||
57 | * field, check header.size!). | 55 | * field, check header.size!). |
58 | */ | 56 | */ |
59 | struct GNUNET_PeerIdentity peer; | 57 | struct GNUNET_PeerIdentity peer; |
60 | |||
61 | }; | 58 | }; |
62 | 59 | ||
63 | /** | 60 | /** |
64 | * Message requesting a listing of all peers, | 61 | * Message requesting a listing of all peers, |
65 | * restricted to the specified peer identity. | 62 | * restricted to the specified peer identity. |
66 | */ | 63 | */ |
67 | struct ListAllPeersMessage | 64 | struct ListAllPeersMessage { |
68 | { | ||
69 | /** | 65 | /** |
70 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL | 66 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL |
71 | */ | 67 | */ |
@@ -75,15 +71,13 @@ struct ListAllPeersMessage | |||
75 | * Include friend only HELLOs and peers in callbacks | 71 | * Include friend only HELLOs and peers in callbacks |
76 | */ | 72 | */ |
77 | uint32_t include_friend_only GNUNET_PACKED; | 73 | uint32_t include_friend_only GNUNET_PACKED; |
78 | |||
79 | }; | 74 | }; |
80 | 75 | ||
81 | 76 | ||
82 | /** | 77 | /** |
83 | * Header for all communications. | 78 | * Header for all communications. |
84 | */ | 79 | */ |
85 | struct NotifyMessage | 80 | struct NotifyMessage { |
86 | { | ||
87 | /** | 81 | /** |
88 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY | 82 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY |
89 | */ | 83 | */ |
@@ -93,7 +87,6 @@ struct NotifyMessage | |||
93 | * Include friend only HELLOs and peers in callbacks | 87 | * Include friend only HELLOs and peers in callbacks |
94 | */ | 88 | */ |
95 | uint32_t include_friend_only GNUNET_PACKED; | 89 | uint32_t include_friend_only GNUNET_PACKED; |
96 | |||
97 | }; | 90 | }; |
98 | 91 | ||
99 | 92 | ||
@@ -104,9 +97,7 @@ struct NotifyMessage | |||
104 | * Check the header.size field to see if a HELLO is | 97 | * Check the header.size field to see if a HELLO is |
105 | * present. | 98 | * present. |
106 | */ | 99 | */ |
107 | struct InfoMessage | 100 | struct InfoMessage { |
108 | { | ||
109 | |||
110 | /** | 101 | /** |
111 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_INFO | 102 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_INFO |
112 | */ | 103 | */ |
@@ -121,7 +112,6 @@ struct InfoMessage | |||
121 | * About which peer are we talking here? | 112 | * About which peer are we talking here? |
122 | */ | 113 | */ |
123 | struct GNUNET_PeerIdentity peer; | 114 | struct GNUNET_PeerIdentity peer; |
124 | |||
125 | }; | 115 | }; |
126 | GNUNET_NETWORK_STRUCT_END | 116 | GNUNET_NETWORK_STRUCT_END |
127 | 117 | ||