diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-05-07 14:14:38 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-05-07 14:14:38 +0000 |
commit | 36367311686410711f46fa3d82484a609c888acf (patch) | |
tree | 62a6afbe310a8479e18221d0606a715948adeb5b /src/peerstore/peerstore.h | |
parent | 0778d7e951b20f42af01597ae41ba8d2d26857d0 (diff) | |
download | gnunet-36367311686410711f46fa3d82484a609c888acf.tar.gz gnunet-36367311686410711f46fa3d82484a609c888acf.zip |
PEERSTORE api update
Diffstat (limited to 'src/peerstore/peerstore.h')
-rw-r--r-- | src/peerstore/peerstore.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/peerstore/peerstore.h b/src/peerstore/peerstore.h index ffc13da2a..36ee8c16f 100644 --- a/src/peerstore/peerstore.h +++ b/src/peerstore/peerstore.h | |||
@@ -28,5 +28,39 @@ | |||
28 | 28 | ||
29 | GNUNET_NETWORK_STRUCT_BEGIN | 29 | GNUNET_NETWORK_STRUCT_BEGIN |
30 | 30 | ||
31 | /** | ||
32 | * Message carrying a peerstore entry | ||
33 | */ | ||
34 | struct AddEntryMessage | ||
35 | { | ||
36 | |||
37 | /** | ||
38 | * Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET | ||
39 | */ | ||
40 | struct GNUNET_MessageHeader header; | ||
41 | |||
42 | /** | ||
43 | * Peer Identity | ||
44 | */ | ||
45 | struct GNUNET_PeerIdentity peer; | ||
46 | |||
47 | /** | ||
48 | * Size of the sub_system string | ||
49 | * Allocated at position 0 after this struct | ||
50 | */ | ||
51 | size_t sub_system_size; | ||
52 | |||
53 | /** | ||
54 | * Size of value blob | ||
55 | * Allocated at position 1 after this struct | ||
56 | */ | ||
57 | size_t value_size; | ||
58 | |||
59 | /** | ||
60 | * Lifetime of entry | ||
61 | */ | ||
62 | struct GNUNET_TIME_Relative lifetime; | ||
63 | |||
64 | }; | ||
31 | 65 | ||
32 | GNUNET_NETWORK_STRUCT_END | 66 | GNUNET_NETWORK_STRUCT_END |