aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-14 08:46:34 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-14 08:46:34 +0000
commitd86cd012c0372c1746fed2a50b7cccca9de99be3 (patch)
tree4adf4679c8cd5c961e8dea5167843a6301fa0398 /src/ats/gnunet-service-ats.c
parent530b88b4942a070b1ab2ee43f9d1e084497dd769 (diff)
downloadgnunet-d86cd012c0372c1746fed2a50b7cccca9de99be3.tar.gz
gnunet-d86cd012c0372c1746fed2a50b7cccca9de99be3.zip
parsing reservations
Diffstat (limited to 'src/ats/gnunet-service-ats.c')
-rw-r--r--src/ats/gnunet-service-ats.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats.c b/src/ats/gnunet-service-ats.c
index 91ffd9c9d..10972190f 100644
--- a/src/ats/gnunet-service-ats.c
+++ b/src/ats/gnunet-service-ats.c
@@ -45,19 +45,22 @@ handle_ats_start (void *cls, struct GNUNET_SERVER_Client *client,
45 const struct GNUNET_MessageHeader *message) 45 const struct GNUNET_MessageHeader *message)
46{ 46{
47 const struct ClientStartMessage * msg = (const struct ClientStartMessage *) message; 47 const struct ClientStartMessage * msg = (const struct ClientStartMessage *) message;
48 enum StartFlag flag;
48 49
49 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 50 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
50 "Received `%s' message\n", 51 "Received `%s' message\n",
51 "ATS_START"); 52 "ATS_START");
52 switch (ntohl (msg->start_flag)) 53 flag = ntohl (msg->start_flag);
54 switch (flag)
53 { 55 {
54 case START_FLAG_SCHEDULING: 56 case START_FLAG_SCHEDULING:
55 GAS_scheduling_add_client (client); 57 GAS_scheduling_add_client (client);
56 break; 58 break;
57 case START_FLAG_PERFORMANCE_WITH_PIC: 59 case START_FLAG_PERFORMANCE_WITH_PIC:
58 GAS_performance_add_client (client); 60 GAS_performance_add_client (client, flag);
59 break; 61 break;
60 case START_FLAG_PERFORMANCE_NO_PIC: 62 case START_FLAG_PERFORMANCE_NO_PIC:
63 GAS_performance_add_client (client, flag);
61 break; 64 break;
62 default: 65 default:
63 GNUNET_break (0); 66 GNUNET_break (0);