aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_peerstore_plugin.h
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-04-27 18:40:04 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-04-27 18:40:04 +0000
commita8504a84ee0161e36180811b1d44fd1dc3ab9b17 (patch)
treeee2fe1ae4fddd83759d906deeaae8d70eae98fd7 /src/include/gnunet_peerstore_plugin.h
parent4637bb9965f3b945426d888f353e566da75ee32a (diff)
downloadgnunet-a8504a84ee0161e36180811b1d44fd1dc3ab9b17.tar.gz
gnunet-a8504a84ee0161e36180811b1d44fd1dc3ab9b17.zip
PEERSTORE sqlite plugin store function
Diffstat (limited to 'src/include/gnunet_peerstore_plugin.h')
-rw-r--r--src/include/gnunet_peerstore_plugin.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/gnunet_peerstore_plugin.h b/src/include/gnunet_peerstore_plugin.h
index dc2322459..8dcc1ec2a 100644
--- a/src/include/gnunet_peerstore_plugin.h
+++ b/src/include/gnunet_peerstore_plugin.h
@@ -49,6 +49,25 @@ struct GNUNET_PEERSTORE_PluginFunctions
49 */ 49 */
50 void *cls; 50 void *cls;
51 51
52 /**
53 * Store a record in the peerstore.
54 * Key is the combination of sub system and peer identity.
55 * One key can store multiple values.
56 *
57 * @param cls closure (internal context for the plugin)
58 * @param sub_system name of the GNUnet sub system responsible
59 * @param peer peer identity
60 * @param value value to be stored
61 * @param size size of value to be stored
62 * @return #GNUNET_OK on success, else #GNUNET_SYSERR
63 */
64 int
65 (*store_record) (void *cls,
66 const char *sub_system,
67 const struct GNUNET_PeerIdentity *peer,
68 const void *value,
69 size_t size);
70
52}; 71};
53 72
54 73