diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-10 13:02:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-10 13:02:51 +0200 |
commit | 0cd0e3a5287af73bb81219ebc9548395a8945ce8 (patch) | |
tree | b5bb24d78a4eed519b37e6fb8f9291a6282d06d4 /src/include/gnunet_namestore_plugin.h | |
parent | 3eae3e43d6f94449cb89998a676e6696438cc604 (diff) | |
download | gnunet-0cd0e3a5287af73bb81219ebc9548395a8945ce8.tar.gz gnunet-0cd0e3a5287af73bb81219ebc9548395a8945ce8.zip |
more work on gnunet-zoneimport, some bugfix in flat namestore, misc. style fixes
Diffstat (limited to 'src/include/gnunet_namestore_plugin.h')
-rw-r--r-- | src/include/gnunet_namestore_plugin.h | 55 |
1 files changed, 31 insertions, 24 deletions
diff --git a/src/include/gnunet_namestore_plugin.h b/src/include/gnunet_namestore_plugin.h index 3ec0299ba..48965b3b6 100644 --- a/src/include/gnunet_namestore_plugin.h +++ b/src/include/gnunet_namestore_plugin.h | |||
@@ -52,11 +52,12 @@ extern "C" | |||
52 | * @param rd_count number of entries in @a rd array | 52 | * @param rd_count number of entries in @a rd array |
53 | * @param rd array of records with data to store | 53 | * @param rd array of records with data to store |
54 | */ | 54 | */ |
55 | typedef void (*GNUNET_NAMESTORE_RecordIterator) (void *cls, | 55 | typedef void |
56 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, | 56 | (*GNUNET_NAMESTORE_RecordIterator) (void *cls, |
57 | const char *label, | 57 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *private_key, |
58 | unsigned int rd_count, | 58 | const char *label, |
59 | const struct GNUNET_GNSRECORD_Data *rd); | 59 | unsigned int rd_count, |
60 | const struct GNUNET_GNSRECORD_Data *rd); | ||
60 | 61 | ||
61 | 62 | ||
62 | /** | 63 | /** |
@@ -81,12 +82,13 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
81 | * @param rd array of records with data to store | 82 | * @param rd array of records with data to store |
82 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR | 83 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR |
83 | */ | 84 | */ |
84 | int (*store_records) (void *cls, | 85 | int |
85 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 86 | (*store_records) (void *cls, |
86 | const char *label, | 87 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
87 | unsigned int rd_count, | 88 | const char *label, |
88 | const struct GNUNET_GNSRECORD_Data *rd); | 89 | unsigned int rd_count, |
89 | 90 | const struct GNUNET_GNSRECORD_Data *rd); | |
91 | |||
90 | /** | 92 | /** |
91 | * Lookup records in the datastore for which we are the authority. | 93 | * Lookup records in the datastore for which we are the authority. |
92 | * | 94 | * |
@@ -97,11 +99,12 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
97 | * @param iter_cls closure for @a iter | 99 | * @param iter_cls closure for @a iter |
98 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR | 100 | * @return #GNUNET_OK on success, else #GNUNET_SYSERR |
99 | */ | 101 | */ |
100 | int (*lookup_records) (void *cls, | 102 | int |
101 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 103 | (*lookup_records) (void *cls, |
102 | const char *label, | 104 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
103 | GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls); | 105 | const char *label, |
104 | 106 | GNUNET_NAMESTORE_RecordIterator iter, | |
107 | void *iter_cls); | ||
105 | 108 | ||
106 | 109 | ||
107 | /** | 110 | /** |
@@ -115,10 +118,12 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
115 | * @param iter_cls closure for @a iter | 118 | * @param iter_cls closure for @a iter |
116 | * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error | 119 | * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error |
117 | */ | 120 | */ |
118 | int (*iterate_records) (void *cls, | 121 | int |
119 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 122 | (*iterate_records) (void *cls, |
120 | uint64_t offset, | 123 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
121 | GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls); | 124 | uint64_t offset, |
125 | GNUNET_NAMESTORE_RecordIterator iter, | ||
126 | void *iter_cls); | ||
122 | 127 | ||
123 | 128 | ||
124 | /** | 129 | /** |
@@ -132,10 +137,12 @@ struct GNUNET_NAMESTORE_PluginFunctions | |||
132 | * @param iter_cls closure for @a iter | 137 | * @param iter_cls closure for @a iter |
133 | * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error | 138 | * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error |
134 | */ | 139 | */ |
135 | int (*zone_to_name) (void *cls, | 140 | int |
136 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 141 | (*zone_to_name) (void *cls, |
137 | const struct GNUNET_CRYPTO_EcdsaPublicKey *value_zone, | 142 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
138 | GNUNET_NAMESTORE_RecordIterator iter, void *iter_cls); | 143 | const struct GNUNET_CRYPTO_EcdsaPublicKey *value_zone, |
144 | GNUNET_NAMESTORE_RecordIterator iter, | ||
145 | void *iter_cls); | ||
139 | 146 | ||
140 | 147 | ||
141 | }; | 148 | }; |