diff options
Diffstat (limited to 'src/include/gnunet_namestore_plugin.h')
-rw-r--r-- | src/include/gnunet_namestore_plugin.h | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index 3b603b4c0..b942bb592 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h | |||
@@ -16,7 +16,7 @@ | |||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @author Christian Grothoff | 22 | * @author Christian Grothoff |
@@ -56,19 +56,17 @@ extern "C" | |||
56 | */ | 56 | */ |
57 | typedef void | 57 | typedef void |
58 | (*GNUNET_NAMESTORE_RecordIterator) (void *cls, | 58 | (*GNUNET_NAMESTORE_RecordIterator) (void *cls, |
59 | uint64_t serial, | 59 | uint64_t serial, |
60 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, | 60 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, |
61 | const char *label, | 61 | const char *label, |
62 | unsigned int rd_count, | 62 | unsigned int rd_count, |
63 | const struct GNUNET_GNSRECORD_Data *rd); | 63 | const struct GNUNET_GNSRECORD_Data *rd); |
64 | 64 | ||
65 | 65 | ||
66 | /** | 66 | /** |
67 | * @brief struct returned by the initialization function of the plugin | 67 | * @brief struct returned by the initialization function of the plugin |
68 | */ | 68 | */ |
69 | struct GNUNET_NAMESTORE_PluginFunctions | 69 | struct GNUNET_NAMESTORE_PluginFunctions { |
70 | { | ||
71 | |||
72 | /** | 70 | /** |
73 | * Closure to pass to all plugin functions. | 71 | * Closure to pass to all plugin functions. |
74 | */ | 72 | */ |
@@ -87,10 +85,10 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
87 | */ | 85 | */ |
88 | int | 86 | int |
89 | (*store_records) (void *cls, | 87 | (*store_records) (void *cls, |
90 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 88 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
91 | const char *label, | 89 | const char *label, |
92 | unsigned int rd_count, | 90 | unsigned int rd_count, |
93 | const struct GNUNET_GNSRECORD_Data *rd); | 91 | const struct GNUNET_GNSRECORD_Data *rd); |
94 | 92 | ||
95 | /** | 93 | /** |
96 | * Lookup records in the datastore for which we are the authority. | 94 | * Lookup records in the datastore for which we are the authority. |
@@ -104,10 +102,10 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
104 | */ | 102 | */ |
105 | int | 103 | int |
106 | (*lookup_records) (void *cls, | 104 | (*lookup_records) (void *cls, |
107 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 105 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
108 | const char *label, | 106 | const char *label, |
109 | GNUNET_NAMESTORE_RecordIterator iter, | 107 | GNUNET_NAMESTORE_RecordIterator iter, |
110 | void *iter_cls); | 108 | void *iter_cls); |
111 | 109 | ||
112 | 110 | ||
113 | /** | 111 | /** |
@@ -126,11 +124,11 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
126 | */ | 124 | */ |
127 | int | 125 | int |
128 | (*iterate_records) (void *cls, | 126 | (*iterate_records) (void *cls, |
129 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 127 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
130 | uint64_t serial, | 128 | uint64_t serial, |
131 | uint64_t limit, | 129 | uint64_t limit, |
132 | GNUNET_NAMESTORE_RecordIterator iter, | 130 | GNUNET_NAMESTORE_RecordIterator iter, |
133 | void *iter_cls); | 131 | void *iter_cls); |
134 | 132 | ||
135 | 133 | ||
136 | /** | 134 | /** |
@@ -146,12 +144,10 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
146 | */ | 144 | */ |
147 | int | 145 | int |
148 | (*zone_to_name) (void *cls, | 146 | (*zone_to_name) (void *cls, |
149 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 147 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
150 | const struct GNUNET_CRYPTO_EcdsaPublicKey *value_zone, | 148 | const struct GNUNET_CRYPTO_EcdsaPublicKey *value_zone, |
151 | GNUNET_NAMESTORE_RecordIterator iter, | 149 | GNUNET_NAMESTORE_RecordIterator iter, |
152 | void *iter_cls); | 150 | void *iter_cls); |
153 | |||
154 | |||
155 | }; | 151 | }; |
156 | 152 | ||
157 | 153 | ||