aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/peerstore_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerstore/peerstore_common.h')
-rw-r--r--src/peerstore/peerstore_common.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/peerstore/peerstore_common.h b/src/peerstore/peerstore_common.h
index 93fb9931b..4795edbb1 100644
--- a/src/peerstore/peerstore_common.h
+++ b/src/peerstore/peerstore_common.h
@@ -58,9 +58,9 @@ struct GNUNET_PEERSTORE_Record
58 size_t value_size; 58 size_t value_size;
59 59
60 /** 60 /**
61 * Lifetime of record 61 * Expiry time of record
62 */ 62 */
63 struct GNUNET_TIME_Relative lifetime; 63 struct GNUNET_TIME_Absolute expiry;
64 64
65}; 65};
66 66
@@ -72,7 +72,8 @@ struct GNUNET_PEERSTORE_Record
72 * @param key record key string (can be NULL) 72 * @param key record key string (can be NULL)
73 * @param value record value BLOB (can be NULL) 73 * @param value record value BLOB (can be NULL)
74 * @param value_size record value size in bytes (set to 0 if value is NULL) 74 * @param value_size record value size in bytes (set to 0 if value is NULL)
75 * @param lifetime relative time after which the record expires 75 * @param expiry time after which the record expires
76 * @param msg_type message type to be set in header
76 * @return pointer to record message struct 77 * @return pointer to record message struct
77 */ 78 */
78struct StoreRecordMessage * 79struct StoreRecordMessage *
@@ -81,7 +82,8 @@ PEERSTORE_create_record_message(const char *sub_system,
81 const char *key, 82 const char *key,
82 const void *value, 83 const void *value,
83 size_t value_size, 84 size_t value_size,
84 struct GNUNET_TIME_Relative lifetime); 85 struct GNUNET_TIME_Absolute expiry,
86 uint16_t msg_type);
85 87
86/** 88/**
87 * Parses a message carrying a record 89 * Parses a message carrying a record