diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-04 12:02:43 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-04 12:02:43 +0000 |
commit | 425e9cdea733ca7be9a901abff7a070c460fa84d (patch) | |
tree | c4e2919e2f4183a324801c061fb2d57a3b232ddc /src/peerinfo/peerinfo.h | |
parent | 6713f0ce7d70cdb5cb0172157e647b8dfb6852ff (diff) | |
download | gnunet-425e9cdea733ca7be9a901abff7a070c460fa84d.tar.gz gnunet-425e9cdea733ca7be9a901abff7a070c460fa84d.zip |
peerinfo API change + changes in code using api
Diffstat (limited to 'src/peerinfo/peerinfo.h')
-rw-r--r-- | src/peerinfo/peerinfo.h | 48 |
1 files changed, 42 insertions, 6 deletions
diff --git a/src/peerinfo/peerinfo.h b/src/peerinfo/peerinfo.h index e61848757..97f819aff 100644 --- a/src/peerinfo/peerinfo.h +++ b/src/peerinfo/peerinfo.h | |||
@@ -31,22 +31,22 @@ | |||
31 | GNUNET_NETWORK_STRUCT_BEGIN | 31 | GNUNET_NETWORK_STRUCT_BEGIN |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * Message requesting a listing of all known peers, | 34 | * Message requesting a listing of peers, |
35 | * possibly restricted to the specified peer identity. | 35 | * restricted to the specified peer identity. |
36 | */ | 36 | */ |
37 | struct ListPeerMessage | 37 | struct ListPeerMessage |
38 | { | 38 | { |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET or | 41 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET |
42 | * GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL. | 42 | * . |
43 | */ | 43 | */ |
44 | struct GNUNET_MessageHeader header; | 44 | struct GNUNET_MessageHeader header; |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * Always zero. | 47 | * Include friend only HELLOs and peers in callbacks |
48 | */ | 48 | */ |
49 | uint32_t reserved GNUNET_PACKED; | 49 | uint32_t include_friend_only GNUNET_PACKED; |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * Restrict to peers with this identity (optional | 52 | * Restrict to peers with this identity (optional |
@@ -56,6 +56,42 @@ struct ListPeerMessage | |||
56 | 56 | ||
57 | }; | 57 | }; |
58 | 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 | /** | ||
79 | * Header for all communications. | ||
80 | */ | ||
81 | struct NotifyMessage | ||
82 | { | ||
83 | /** | ||
84 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY | ||
85 | */ | ||
86 | struct GNUNET_MessageHeader header; | ||
87 | |||
88 | /** | ||
89 | * Include friend only HELLOs and peers in callbacks | ||
90 | */ | ||
91 | uint32_t include_friend_only GNUNET_PACKED; | ||
92 | |||
93 | }; | ||
94 | |||
59 | 95 | ||
60 | /** | 96 | /** |
61 | * Message used to inform the client about | 97 | * Message used to inform the client about |