aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_preferences.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/gnunet-service-ats_preferences.h')
-rw-r--r--src/ats/gnunet-service-ats_preferences.h93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/ats/gnunet-service-ats_preferences.h b/src/ats/gnunet-service-ats_preferences.h
deleted file mode 100644
index 49bf2ddbd..000000000
--- a/src/ats/gnunet-service-ats_preferences.h
+++ /dev/null
@@ -1,93 +0,0 @@
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2011-2014 GNUnet e.V.
4
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
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
14
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/>.
17
18 SPDX-License-Identifier: AGPL3.0-or-later
19 */
20/**
21 * @file ats/gnunet-service-ats_preferences.h
22 * @brief manage preferences expressed by clients
23 * @author Matthias Wachs
24 * @author Christian Grothoff
25 */
26#ifndef GNUNET_SERVICE_ATS_PREFERENCES_H
27#define GNUNET_SERVICE_ATS_PREFERENCES_H
28
29#include "gnunet_util_lib.h"
30#include "gnunet_ats_service.h"
31#include "gnunet-service-ats.h"
32#include "gnunet_statistics_service.h"
33#include "ats.h"
34
35/**
36 * Default preference value we assume if we know nothing.
37 */
38#define DEFAULT_ABS_PREFERENCE 0.0
39
40/**
41 * Default relative preference value we assume if we know nothing.
42 */
43#define DEFAULT_REL_PREFERENCE 0.0
44
45
46/**
47 * Handle 'preference change' messages from clients.
48 *
49 * @param client the client that sent the request
50 * @param msg the request message
51 */
52void
53GAS_handle_preference_change (struct GNUNET_SERVICE_Client *client,
54 const struct ChangePreferenceMessage *msg);
55
56
57/**
58 * Initialize preferences subsystem.
59 */
60void
61GAS_preference_init (void);
62
63
64/**
65 * Shutdown preferences subsystem.
66 */
67void
68GAS_preference_done (void);
69
70
71/**
72 * Get the normalized preference values for a specific peer.
73 *
74 * @param cls ignored
75 * @param id the peer
76 * @return pointer to the values, can be indexed
77 * with `enum GNUNET_ATS_PreferenceKind`, never NULL
78 */
79const double *
80GAS_preference_get_by_peer (void *cls,
81 const struct GNUNET_PeerIdentity *id);
82
83
84/**
85 * A performance client disconnected
86 *
87 * @param client the disconnecting client
88 */
89void
90GAS_preference_client_disconnect (struct GNUNET_SERVICE_Client *client);
91
92
93#endif