diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-16 21:52:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-16 21:52:04 +0000 |
commit | dbc823a07a03e1085172038125b0edf15b0dc6fe (patch) | |
tree | 4e7c3bf60ce83e801c69a6566ea36d514b571cba /src/include/gnunet_namestore_plugin.h | |
parent | eec0e5088ec9437f5c0cf9d3ffef87603ad2777a (diff) | |
download | gnunet-dbc823a07a03e1085172038125b0edf15b0dc6fe.tar.gz gnunet-dbc823a07a03e1085172038125b0edf15b0dc6fe.zip |
-finishing split of namestore into namestore and namecache (#3065) -- in theory; in practice, somehow something broke badly, so the tests are now failing
Diffstat (limited to 'src/include/gnunet_namestore_plugin.h')
-rw-r--r-- | src/include/gnunet_namestore_plugin.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index 037c6927a..5c3298d98 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h | |||
@@ -39,16 +39,6 @@ extern "C" | |||
39 | 39 | ||
40 | 40 | ||
41 | /** | 41 | /** |
42 | * Function called for matching blocks. | ||
43 | * | ||
44 | * @param cls closure | ||
45 | * @param block lookup result | ||
46 | */ | ||
47 | typedef void (*GNUNET_GNSRECORD_BlockCallback) (void *cls, | ||
48 | const struct GNUNET_GNSRECORD_Block *block); | ||
49 | |||
50 | |||
51 | /** | ||
52 | * Function called by for each matching record. | 42 | * Function called by for each matching record. |
53 | * | 43 | * |
54 | * @param cls closure | 44 | * @param cls closure |
@@ -76,34 +66,6 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
76 | void *cls; | 66 | void *cls; |
77 | 67 | ||
78 | /** | 68 | /** |
79 | * Cache a block in the datastore. Overwrites existing blocks | ||
80 | * for the same zone and label. | ||
81 | * | ||
82 | * @param cls closure (internal context for the plugin) | ||
83 | * @param block block to cache | ||
84 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR | ||
85 | */ | ||
86 | int (*cache_block) (void *cls, | ||
87 | const struct GNUNET_GNSRECORD_Block *block); | ||
88 | |||
89 | |||
90 | /** | ||
91 | * Get the block for a particular zone and label in the | ||
92 | * datastore. Will return at most one result to the iterator. | ||
93 | * | ||
94 | * @param cls closure (internal context for the plugin) | ||
95 | * @param query hash of public key derived from the zone and the label | ||
96 | * @param iter function to call with the result | ||
97 | * @param iter_cls closure for @a iter | ||
98 | * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error | ||
99 | */ | ||
100 | int (*lookup_block) (void *cls, | ||
101 | const struct GNUNET_HashCode *query, | ||
102 | GNUNET_GNSRECORD_BlockCallback iter, void *iter_cls); | ||
103 | |||
104 | |||
105 | |||
106 | /** | ||
107 | * Store a record in the datastore for which we are the authority. | 69 | * Store a record in the datastore for which we are the authority. |
108 | * Removes any existing record in the same zone with the same name. | 70 | * Removes any existing record in the same zone with the same name. |
109 | * | 71 | * |