diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-05-14 16:40:45 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-05-14 16:40:45 +0000 |
commit | a760c1b877f3a9ac17f2577cdc298f793c574407 (patch) | |
tree | 7411c99a1865aa1b1a6e1141172aa9a1378d4db7 /src/peerstore/peerstore.h | |
parent | cb67c0bb1e6f2a5bae0295a75bc1f4b1b9f9f765 (diff) | |
download | gnunet-a760c1b877f3a9ac17f2577cdc298f793c574407.tar.gz gnunet-a760c1b877f3a9ac17f2577cdc298f793c574407.zip |
peerstore helper file
Diffstat (limited to 'src/peerstore/peerstore.h')
-rw-r--r-- | src/peerstore/peerstore.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/peerstore/peerstore.h b/src/peerstore/peerstore.h index 29e2ed866..521c5c11b 100644 --- a/src/peerstore/peerstore.h +++ b/src/peerstore/peerstore.h | |||
@@ -23,15 +23,18 @@ | |||
23 | * @author Omar Tarabai | 23 | * @author Omar Tarabai |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #ifndef PEERSTORE_H_ | ||
27 | #define PEERSTORE_H_ | ||
28 | |||
26 | #include "gnunet_peerstore_service.h" | 29 | #include "gnunet_peerstore_service.h" |
27 | 30 | ||
28 | 31 | ||
29 | GNUNET_NETWORK_STRUCT_BEGIN | 32 | GNUNET_NETWORK_STRUCT_BEGIN |
30 | 33 | ||
31 | /** | 34 | /** |
32 | * Message carrying a PEERSTORE store request | 35 | * Message carrying a PEERSTORE record message |
33 | */ | 36 | */ |
34 | struct StoreRequestMessage | 37 | struct StoreRecordMessage |
35 | { | 38 | { |
36 | 39 | ||
37 | /** | 40 | /** |
@@ -40,10 +43,9 @@ struct StoreRequestMessage | |||
40 | struct GNUNET_MessageHeader header; | 43 | struct GNUNET_MessageHeader header; |
41 | 44 | ||
42 | /** | 45 | /** |
43 | * Size of the sub_system string | 46 | * #GNUNET_YES if peer id value set, #GNUNET_NO otherwise |
44 | * Allocated at position 0 after this struct | ||
45 | */ | 47 | */ |
46 | size_t sub_system_size; | 48 | uint16_t peer_set; |
47 | 49 | ||
48 | /** | 50 | /** |
49 | * Peer Identity | 51 | * Peer Identity |
@@ -51,6 +53,12 @@ struct StoreRequestMessage | |||
51 | struct GNUNET_PeerIdentity peer; | 53 | struct GNUNET_PeerIdentity peer; |
52 | 54 | ||
53 | /** | 55 | /** |
56 | * Size of the sub_system string | ||
57 | * Allocated at position 0 after this struct | ||
58 | */ | ||
59 | size_t sub_system_size; | ||
60 | |||
61 | /** | ||
54 | * Size of the key string | 62 | * Size of the key string |
55 | * Allocated at position 1 after this struct | 63 | * Allocated at position 1 after this struct |
56 | */ | 64 | */ |
@@ -70,3 +78,5 @@ struct StoreRequestMessage | |||
70 | }; | 78 | }; |
71 | 79 | ||
72 | GNUNET_NETWORK_STRUCT_END | 80 | GNUNET_NETWORK_STRUCT_END |
81 | |||
82 | #endif | ||