diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-14 08:46:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-14 08:46:34 +0000 |
commit | d86cd012c0372c1746fed2a50b7cccca9de99be3 (patch) | |
tree | 4adf4679c8cd5c961e8dea5167843a6301fa0398 /src/ats/gnunet-service-ats_performance.h | |
parent | 530b88b4942a070b1ab2ee43f9d1e084497dd769 (diff) | |
download | gnunet-d86cd012c0372c1746fed2a50b7cccca9de99be3.tar.gz gnunet-d86cd012c0372c1746fed2a50b7cccca9de99be3.zip |
parsing reservations
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.h')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/ats/gnunet-service-ats_performance.h b/src/ats/gnunet-service-ats_performance.h index e3a5aa394..24f65ed92 100644 --- a/src/ats/gnunet-service-ats_performance.h +++ b/src/ats/gnunet-service-ats_performance.h | |||
@@ -28,14 +28,17 @@ | |||
28 | #define GNUNET_SERVICE_ATS_PERFORMANCE_H | 28 | #define GNUNET_SERVICE_ATS_PERFORMANCE_H |
29 | 29 | ||
30 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
31 | #include "ats.h" | ||
31 | 32 | ||
32 | /** | 33 | /** |
33 | * Register a new performance client. | 34 | * Register a new performance client. |
34 | * | 35 | * |
35 | * @param client handle of the new client | 36 | * @param client handle of the new client |
37 | * @param flag options for the client | ||
36 | */ | 38 | */ |
37 | void | 39 | void |
38 | GAS_performance_add_client (struct GNUNET_SERVER_Client *client); | 40 | GAS_performance_add_client (struct GNUNET_SERVER_Client *client, |
41 | enum StartFlag flag); | ||
39 | 42 | ||
40 | 43 | ||
41 | /** | 44 | /** |
@@ -48,11 +51,25 @@ void | |||
48 | GAS_performance_remove_client (struct GNUNET_SERVER_Client *client); | 51 | GAS_performance_remove_client (struct GNUNET_SERVER_Client *client); |
49 | 52 | ||
50 | 53 | ||
54 | /** | ||
55 | * Handle 'reservation request' messages from clients. | ||
56 | * | ||
57 | * @param cls unused, NULL | ||
58 | * @param client client that sent the request | ||
59 | * @param message the request message | ||
60 | */ | ||
51 | void | 61 | void |
52 | GAS_handle_reservation_request (void *cls, struct GNUNET_SERVER_Client *client, | 62 | GAS_handle_reservation_request (void *cls, struct GNUNET_SERVER_Client *client, |
53 | const struct GNUNET_MessageHeader *message); | 63 | const struct GNUNET_MessageHeader *message); |
54 | 64 | ||
55 | 65 | ||
66 | /** | ||
67 | * Handle 'preference change' messages from clients. | ||
68 | * | ||
69 | * @param cls unused, NULL | ||
70 | * @param client client that sent the request | ||
71 | * @param message the request message | ||
72 | */ | ||
56 | void | 73 | void |
57 | GAS_handle_preference_change (void *cls, struct GNUNET_SERVER_Client *client, | 74 | GAS_handle_preference_change (void *cls, struct GNUNET_SERVER_Client *client, |
58 | const struct GNUNET_MessageHeader *message); | 75 | const struct GNUNET_MessageHeader *message); |