diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-13 20:05:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-13 20:05:40 +0000 |
commit | 4e1d85bac66209e6655f3fb4d3ddef7929f0f3fc (patch) | |
tree | df5c5a0d972f35d741b51c3a3fc8d2298ac8b4fd /src/include/gnunet_datacache_plugin.h | |
parent | 855362e698928b0a5a8f72fc6427c2ea42af4e79 (diff) | |
download | gnunet-4e1d85bac66209e6655f3fb4d3ddef7929f0f3fc.tar.gz gnunet-4e1d85bac66209e6655f3fb4d3ddef7929f0f3fc.zip |
changing datacache API to separate put-paths from data (so that plugins can test for duplicates), removing support for MySQL
Diffstat (limited to 'src/include/gnunet_datacache_plugin.h')
-rw-r--r-- | src/include/gnunet_datacache_plugin.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/include/gnunet_datacache_plugin.h b/src/include/gnunet_datacache_plugin.h index 18268efd7..2e0750160 100644 --- a/src/include/gnunet_datacache_plugin.h +++ b/src/include/gnunet_datacache_plugin.h | |||
@@ -107,11 +107,15 @@ struct GNUNET_DATACACHE_PluginFunctions | |||
107 | * @param data data to store | 107 | * @param data data to store |
108 | * @param type type of the value | 108 | * @param type type of the value |
109 | * @param discard_time when to discard the value in any case | 109 | * @param discard_time when to discard the value in any case |
110 | * @return 0 on error, number of bytes used otherwise | 110 | * @param path_info_len number of entries in 'path_info' |
111 | * @param path_info a path through the network | ||
112 | * @return 0 if duplicate, -1 on error, number of bytes used otherwise | ||
111 | */ | 113 | */ |
112 | size_t (*put) (void *cls, const struct GNUNET_HashCode * key, size_t size, | 114 | ssize_t (*put) (void *cls, const struct GNUNET_HashCode * key, size_t size, |
113 | const char *data, enum GNUNET_BLOCK_Type type, | 115 | const char *data, enum GNUNET_BLOCK_Type type, |
114 | struct GNUNET_TIME_Absolute discard_time); | 116 | struct GNUNET_TIME_Absolute discard_time, |
117 | unsigned int path_info_len, | ||
118 | const struct GNUNET_PeerIdentity *path_info); | ||
115 | 119 | ||
116 | 120 | ||
117 | /** | 121 | /** |