diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-05-04 22:16:24 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-05-04 22:16:24 +0200 |
commit | 80f480c752fd8dfa1be51d78fce314d9f0650b50 (patch) | |
tree | 459c21a3fde3b5f66194ac9960632de53586c5f0 /src/core/gnunet-service-core.h | |
parent | 3d2a951fa12546c09809f0a4d7e789ef8e971b03 (diff) | |
download | gnunet-80f480c752fd8dfa1be51d78fce314d9f0650b50.tar.gz gnunet-80f480c752fd8dfa1be51d78fce314d9f0650b50.zip |
simplify MQ logic to always carry the same kinds of flags, and extend transport API to pass them to (TNG) service
Diffstat (limited to 'src/core/gnunet-service-core.h')
-rw-r--r-- | src/core/gnunet-service-core.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/core/gnunet-service-core.h b/src/core/gnunet-service-core.h index 00461c5ab..154596933 100644 --- a/src/core/gnunet-service-core.h +++ b/src/core/gnunet-service-core.h | |||
@@ -11,7 +11,7 @@ | |||
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 | ||
@@ -81,7 +81,7 @@ struct GSC_ClientActiveRequest | |||
81 | /** | 81 | /** |
82 | * How important is this request. | 82 | * How important is this request. |
83 | */ | 83 | */ |
84 | enum GNUNET_CORE_Priority priority; | 84 | enum GNUNET_MQ_PriorityPreferences priority; |
85 | 85 | ||
86 | /** | 86 | /** |
87 | * Has this request been solicited yet? | 87 | * Has this request been solicited yet? |
@@ -97,7 +97,6 @@ struct GSC_ClientActiveRequest | |||
97 | * Unique request ID (in big endian). | 97 | * Unique request ID (in big endian). |
98 | */ | 98 | */ |
99 | uint16_t smr_id; | 99 | uint16_t smr_id; |
100 | |||
101 | }; | 100 | }; |
102 | 101 | ||
103 | 102 | ||
@@ -140,10 +139,11 @@ GSC_CLIENTS_reject_request (struct GSC_ClientActiveRequest *car, | |||
140 | * @param tmap_new updated type map for the neighbour, NULL for disconnect | 139 | * @param tmap_new updated type map for the neighbour, NULL for disconnect |
141 | */ | 140 | */ |
142 | void | 141 | void |
143 | GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | 142 | GSC_CLIENTS_notify_client_about_neighbour ( |
144 | const struct GNUNET_PeerIdentity *neighbour, | 143 | struct GSC_Client *client, |
145 | const struct GSC_TypeMap *tmap_old, | 144 | const struct GNUNET_PeerIdentity *neighbour, |
146 | const struct GSC_TypeMap *tmap_new); | 145 | const struct GSC_TypeMap *tmap_old, |
146 | const struct GSC_TypeMap *tmap_new); | ||
147 | 147 | ||
148 | 148 | ||
149 | /** | 149 | /** |
@@ -174,9 +174,10 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, | |||
174 | * @param tmap_new updated type map for the neighbour, NULL for disconnect | 174 | * @param tmap_new updated type map for the neighbour, NULL for disconnect |
175 | */ | 175 | */ |
176 | void | 176 | void |
177 | GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour, | 177 | GSC_CLIENTS_notify_clients_about_neighbour ( |
178 | const struct GSC_TypeMap *tmap_old, | 178 | const struct GNUNET_PeerIdentity *neighbour, |
179 | const struct GSC_TypeMap *tmap_new); | 179 | const struct GSC_TypeMap *tmap_old, |
180 | const struct GSC_TypeMap *tmap_new); | ||
180 | 181 | ||
181 | 182 | ||
182 | /** | 183 | /** |