aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_plugins.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/gnunet-service-ats_plugins.h')
-rw-r--r--src/ats/gnunet-service-ats_plugins.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/ats/gnunet-service-ats_plugins.h b/src/ats/gnunet-service-ats_plugins.h
index 70ae1d597..e2256f691 100644
--- a/src/ats/gnunet-service-ats_plugins.h
+++ b/src/ats/gnunet-service-ats_plugins.h
@@ -1,19 +1,19 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2011-2014 GNUnet e.V. 3 Copyright (C) 2011-2014 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License, 7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version. 8 or (at your option) any later version.
9 9
10 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
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 */
@@ -41,14 +41,14 @@
41 * solver plugin) 41 * solver plugin)
42 */ 42 */
43int 43int
44GAS_plugin_init (const struct GNUNET_CONFIGURATION_Handle *cfg); 44GAS_plugin_init(const struct GNUNET_CONFIGURATION_Handle *cfg);
45 45
46 46
47/** 47/**
48 * Shutdown address subsystem. 48 * Shutdown address subsystem.
49 */ 49 */
50void 50void
51GAS_plugin_done (void); 51GAS_plugin_done(void);
52 52
53 53
54/** 54/**
@@ -59,9 +59,9 @@ GAS_plugin_done (void);
59 * @param pref_rel the new relative preference value 59 * @param pref_rel the new relative preference value
60 */ 60 */
61void 61void
62GAS_plugin_notify_preference_changed (const struct GNUNET_PeerIdentity *peer, 62GAS_plugin_notify_preference_changed(const struct GNUNET_PeerIdentity *peer,
63 enum GNUNET_ATS_PreferenceKind kind, 63 enum GNUNET_ATS_PreferenceKind kind,
64 double pref_rel); 64 double pref_rel);
65 65
66 66
67/** 67/**
@@ -70,7 +70,7 @@ GAS_plugin_notify_preference_changed (const struct GNUNET_PeerIdentity *peer,
70 * @param address the peer 70 * @param address the peer
71 */ 71 */
72void 72void
73GAS_plugin_notify_property_changed (struct ATS_Address *address); 73GAS_plugin_notify_property_changed(struct ATS_Address *address);
74 74
75 75
76/** 76/**
@@ -81,7 +81,7 @@ GAS_plugin_notify_property_changed (struct ATS_Address *address);
81 * @param addr_net network scope the address is in 81 * @param addr_net network scope the address is in
82 */ 82 */
83void 83void
84GAS_plugin_new_address (struct ATS_Address *new_address); 84GAS_plugin_new_address(struct ATS_Address *new_address);
85 85
86 86
87/** 87/**
@@ -91,7 +91,7 @@ GAS_plugin_new_address (struct ATS_Address *new_address);
91 * @param address address that was deleted 91 * @param address address that was deleted
92 */ 92 */
93void 93void
94GAS_plugin_delete_address (struct ATS_Address *address); 94GAS_plugin_delete_address(struct ATS_Address *address);
95 95
96 96
97/** 97/**
@@ -105,11 +105,11 @@ GAS_plugin_delete_address (struct ATS_Address *address);
105 * @param score_abs degree of the appreciation 105 * @param score_abs degree of the appreciation
106 */ 106 */
107void 107void
108GAS_plugin_notify_feedback (struct GNUNET_SERVICE_Client *application, 108GAS_plugin_notify_feedback(struct GNUNET_SERVICE_Client *application,
109 const struct GNUNET_PeerIdentity *peer, 109 const struct GNUNET_PeerIdentity *peer,
110 const struct GNUNET_TIME_Relative scope, 110 const struct GNUNET_TIME_Relative scope,
111 enum GNUNET_ATS_PreferenceKind kind, 111 enum GNUNET_ATS_PreferenceKind kind,
112 float score_abs); 112 float score_abs);
113 113
114 114
115/** 115/**
@@ -117,14 +117,14 @@ GAS_plugin_notify_feedback (struct GNUNET_SERVICE_Client *application,
117 * happening in bulk right now. 117 * happening in bulk right now.
118 */ 118 */
119void 119void
120GAS_plugin_solver_lock (void); 120GAS_plugin_solver_lock(void);
121 121
122 122
123/** 123/**
124 * Resume instant solving, we are done with the bulk state updates. 124 * Resume instant solving, we are done with the bulk state updates.
125 */ 125 */
126void 126void
127GAS_plugin_solver_unlock (void); 127GAS_plugin_solver_unlock(void);
128 128
129 129
130/** 130/**
@@ -134,7 +134,7 @@ GAS_plugin_solver_unlock (void);
134 * @param pid identity of peer we now care about 134 * @param pid identity of peer we now care about
135 */ 135 */
136void 136void
137GAS_plugin_request_connect_start (const struct GNUNET_PeerIdentity *pid); 137GAS_plugin_request_connect_start(const struct GNUNET_PeerIdentity *pid);
138 138
139 139
140/** 140/**
@@ -144,7 +144,7 @@ GAS_plugin_request_connect_start (const struct GNUNET_PeerIdentity *pid);
144 * @param pid identity of peer we care now less about 144 * @param pid identity of peer we care now less about
145 */ 145 */
146void 146void
147GAS_plugin_request_connect_stop (const struct GNUNET_PeerIdentity *pid); 147GAS_plugin_request_connect_stop(const struct GNUNET_PeerIdentity *pid);
148 148
149 149
150#endif 150#endif