aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/peerstore_common.h
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-05-16 16:45:43 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-05-16 16:45:43 +0000
commit3c9e8b1b0f7f83f27fefb02bd67b481c67cad0c8 (patch)
tree525ae2f8cec03f298783aa693d465f789171cf51 /src/peerstore/peerstore_common.h
parentaeaf5c97d7d115d99f30e86be66c622b7a6ebf4f (diff)
downloadgnunet-3c9e8b1b0f7f83f27fefb02bd67b481c67cad0c8.tar.gz
gnunet-3c9e8b1b0f7f83f27fefb02bd67b481c67cad0c8.zip
peerstore API now uses MQ
Diffstat (limited to 'src/peerstore/peerstore_common.h')
-rw-r--r--src/peerstore/peerstore_common.h44
1 files changed, 3 insertions, 41 deletions
diff --git a/src/peerstore/peerstore_common.h b/src/peerstore/peerstore_common.h
index 4795edbb1..a15302ed4 100644
--- a/src/peerstore/peerstore_common.h
+++ b/src/peerstore/peerstore_common.h
@@ -27,45 +27,7 @@
27#include "peerstore.h" 27#include "peerstore.h"
28 28
29/** 29/**
30 * PEERSTORE single record 30 * Creates a MQ envelope for a single record
31 */
32struct GNUNET_PEERSTORE_Record
33{
34
35 /**
36 * Responsible sub system string
37 */
38 char *sub_system;
39
40 /**
41 * Peer Identity
42 */
43 struct GNUNET_PeerIdentity *peer;
44
45 /**
46 * Record key string
47 */
48 char *key;
49
50 /**
51 * Record value BLOB
52 */
53 void *value;
54
55 /**
56 * Size of value BLOB
57 */
58 size_t value_size;
59
60 /**
61 * Expiry time of record
62 */
63 struct GNUNET_TIME_Absolute expiry;
64
65};
66
67/**
68 * Creates a record message ready to be sent
69 * 31 *
70 * @param sub_system sub system string 32 * @param sub_system sub system string
71 * @param peer Peer identity (can be NULL) 33 * @param peer Peer identity (can be NULL)
@@ -76,8 +38,8 @@ struct GNUNET_PEERSTORE_Record
76 * @param msg_type message type to be set in header 38 * @param msg_type message type to be set in header
77 * @return pointer to record message struct 39 * @return pointer to record message struct
78 */ 40 */
79struct StoreRecordMessage * 41struct GNUNET_MQ_Envelope *
80PEERSTORE_create_record_message(const char *sub_system, 42PEERSTORE_create_record_mq_envelope(const char *sub_system,
81 const struct GNUNET_PeerIdentity *peer, 43 const struct GNUNET_PeerIdentity *peer,
82 const char *key, 44 const char *key,
83 const void *value, 45 const void *value,