aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/peerstore.h
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-05-07 17:13:47 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-05-07 17:13:47 +0000
commit603d264417198385513b09844ddf4557dcc44952 (patch)
treef6a38a068f8e0e88a31debb064dce21d3790ecc2 /src/peerstore/peerstore.h
parent87d9416ddb4d60f3ad057da83bc45f9f16cdcae2 (diff)
downloadgnunet-603d264417198385513b09844ddf4557dcc44952.tar.gz
gnunet-603d264417198385513b09844ddf4557dcc44952.zip
update to PEERSTORE api
Diffstat (limited to 'src/peerstore/peerstore.h')
-rw-r--r--src/peerstore/peerstore.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/peerstore/peerstore.h b/src/peerstore/peerstore.h
index 36ee8c16f..a97f3ee78 100644
--- a/src/peerstore/peerstore.h
+++ b/src/peerstore/peerstore.h
@@ -29,9 +29,9 @@
29GNUNET_NETWORK_STRUCT_BEGIN 29GNUNET_NETWORK_STRUCT_BEGIN
30 30
31/** 31/**
32 * Message carrying a peerstore entry 32 * Message carrying a PEERSTORE store request
33 */ 33 */
34struct AddEntryMessage 34struct StoreRequestMessage
35{ 35{
36 36
37 /** 37 /**
@@ -63,4 +63,20 @@ struct AddEntryMessage
63 63
64}; 64};
65 65
66/**
67 * Message carrying a PEERSTORE store response
68 */
69struct StoreResponseMessage
70{
71 /**
72 * Was the store operation successful (#GNUNET_YES / #GNUNET_NO)
73 */
74 int success;
75
76 /**
77 * Size of the error message (0 if no error)
78 */
79 size_t emsg_size;
80};
81
66GNUNET_NETWORK_STRUCT_END 82GNUNET_NETWORK_STRUCT_END