aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_namecache_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_namecache_plugin.h')
-rw-r--r--src/include/gnunet_namecache_plugin.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/include/gnunet_namecache_plugin.h b/src/include/gnunet_namecache_plugin.h
index 5281fd3dc..8d3c4fb61 100644
--- a/src/include/gnunet_namecache_plugin.h
+++ b/src/include/gnunet_namecache_plugin.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
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
@@ -54,15 +54,13 @@ extern "C"
54 * @param block lookup result 54 * @param block lookup result
55 */ 55 */
56typedef void (*GNUNET_NAMECACHE_BlockCallback) (void *cls, 56typedef void (*GNUNET_NAMECACHE_BlockCallback) (void *cls,
57 const struct GNUNET_GNSRECORD_Block *block); 57 const struct GNUNET_GNSRECORD_Block *block);
58 58
59 59
60/** 60/**
61 * @brief struct returned by the initialization function of the plugin 61 * @brief struct returned by the initialization function of the plugin
62 */ 62 */
63struct GNUNET_NAMECACHE_PluginFunctions 63struct GNUNET_NAMECACHE_PluginFunctions {
64{
65
66 /** 64 /**
67 * Closure to pass to all plugin functions. 65 * Closure to pass to all plugin functions.
68 */ 66 */
@@ -77,7 +75,7 @@ struct GNUNET_NAMECACHE_PluginFunctions
77 * @return #GNUNET_OK on success, else #GNUNET_SYSERR 75 * @return #GNUNET_OK on success, else #GNUNET_SYSERR
78 */ 76 */
79 int (*cache_block) (void *cls, 77 int (*cache_block) (void *cls,
80 const struct GNUNET_GNSRECORD_Block *block); 78 const struct GNUNET_GNSRECORD_Block *block);
81 79
82 80
83 /** 81 /**
@@ -91,10 +89,8 @@ struct GNUNET_NAMECACHE_PluginFunctions
91 * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error 89 * @return #GNUNET_OK on success, #GNUNET_NO if there were no results, #GNUNET_SYSERR on error
92 */ 90 */
93 int (*lookup_block) (void *cls, 91 int (*lookup_block) (void *cls,
94 const struct GNUNET_HashCode *query, 92 const struct GNUNET_HashCode *query,
95 GNUNET_NAMECACHE_BlockCallback iter, void *iter_cls); 93 GNUNET_NAMECACHE_BlockCallback iter, void *iter_cls);
96
97
98}; 94};
99 95
100 96