diff options
Diffstat (limited to 'src/include/gnunet_peerstore_plugin.h')
-rw-r--r-- | src/include/gnunet_peerstore_plugin.h | 19 |
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 | ||