diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_plugins.h')
-rw-r--r-- | src/ats/gnunet-service-ats_plugins.h | 58 |
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 | */ |
43 | int | 43 | int |
44 | GAS_plugin_init (const struct GNUNET_CONFIGURATION_Handle *cfg); | 44 | GAS_plugin_init(const struct GNUNET_CONFIGURATION_Handle *cfg); |
45 | 45 | ||
46 | 46 | ||
47 | /** | 47 | /** |
48 | * Shutdown address subsystem. | 48 | * Shutdown address subsystem. |
49 | */ | 49 | */ |
50 | void | 50 | void |
51 | GAS_plugin_done (void); | 51 | GAS_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 | */ |
61 | void | 61 | void |
62 | GAS_plugin_notify_preference_changed (const struct GNUNET_PeerIdentity *peer, | 62 | GAS_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 | */ |
72 | void | 72 | void |
73 | GAS_plugin_notify_property_changed (struct ATS_Address *address); | 73 | GAS_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 | */ |
83 | void | 83 | void |
84 | GAS_plugin_new_address (struct ATS_Address *new_address); | 84 | GAS_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 | */ |
93 | void | 93 | void |
94 | GAS_plugin_delete_address (struct ATS_Address *address); | 94 | GAS_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 | */ |
107 | void | 107 | void |
108 | GAS_plugin_notify_feedback (struct GNUNET_SERVICE_Client *application, | 108 | GAS_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 | */ |
119 | void | 119 | void |
120 | GAS_plugin_solver_lock (void); | 120 | GAS_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 | */ |
126 | void | 126 | void |
127 | GAS_plugin_solver_unlock (void); | 127 | GAS_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 | */ |
136 | void | 136 | void |
137 | GAS_plugin_request_connect_start (const struct GNUNET_PeerIdentity *pid); | 137 | GAS_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 | */ |
146 | void | 146 | void |
147 | GAS_plugin_request_connect_stop (const struct GNUNET_PeerIdentity *pid); | 147 | GAS_plugin_request_connect_stop(const struct GNUNET_PeerIdentity *pid); |
148 | 148 | ||
149 | 149 | ||
150 | #endif | 150 | #endif |