-nicer name
authorChristian Grothoff <christian@grothoff.org>
Thu, 14 Jun 2012 08:12:16 +0000 (08:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 14 Jun 2012 08:12:16 +0000 (08:12 +0000)
src/testbed/gnunet-service-testbed.c
src/testbed/testbed.h
src/testbed/testbed_api.c

index db8c7cff1dce42567e4ff5a1ef7ed32c1345ab2d..665af9d3aa20cb355fb6a0b68b6baf320c35f0f3 100644 (file)
@@ -77,7 +77,7 @@ handle_init (void *cls,
              struct GNUNET_SERVER_Client *client,
              const struct GNUNET_MessageHeader *message)
 {
-  const struct GNUNET_TESTBED_Message *msg;
+  const struct GNUNET_TESTBED_InitMessage *msg;
 
   if (NULL != master_context)
   {
@@ -85,7 +85,7 @@ handle_init (void *cls,
     GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
     return;
   }
-  msg = (const struct GNUNET_TESTBED_Message *) message;  
+  msg = (const struct GNUNET_TESTBED_InitMessage *) message;  
   master_context = GNUNET_malloc (sizeof (struct Context));
   master_context->client = client;
   master_context->host_id = ntohl (msg->host_id);
@@ -193,7 +193,7 @@ testbed_run (void *cls,
   static const struct GNUNET_SERVER_MessageHandler message_handlers[] =
     {
       {&handle_init, NULL, GNUNET_MESSAGE_TYPE_TESTBED_INIT,
-       sizeof (struct GNUNET_TESTBED_Message)},
+       sizeof (struct GNUNET_TESTBED_InitMessage)},
       {&handle_addhost, NULL, GNUNET_MESSAGE_TYPE_TESTBED_ADDHOST, 0},
       {NULL}
     };
index 3c096399a394b9ebb66a080061c28277b90a21bf..680649be1bf59a5d472310564d3ad0c9881841f7 100644 (file)
@@ -33,7 +33,7 @@
 /**
  * Initial message from a client to a testing control service.
  */
-struct GNUNET_TESTBED_Message
+struct GNUNET_TESTBED_InitMessage
 {
 
   /**
index cc4bbbe259df55a09a8a99bedc844b9f552a3460..5d34640fa3e09fe85911a151384de32885917765 100644 (file)
@@ -235,16 +235,16 @@ server_mst_cb (void *cls, void *client,
                const struct GNUNET_MessageHeader *message)
 {
   struct GNUNET_TESTBED_Controller *c = cls;
-  struct GNUNET_TESTBED_Message *msg;
+  struct GNUNET_TESTBED_InitMessage *msg;
   
   c->client = GNUNET_CLIENT_connect ("testbed", c->cfg);
   if (NULL == c->client)
     return GNUNET_SYSERR;       /* FIXME: Call controller startup_cb ? */
   GNUNET_CLIENT_receive (c->client, &message_handler, c,
                          GNUNET_TIME_UNIT_FOREVER_REL);
-  msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Message));
+  msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_InitMessage));
   msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_INIT);
-  msg->header.size = htons (sizeof (struct GNUNET_TESTBED_Message));
+  msg->header.size = htons (sizeof (struct GNUNET_TESTBED_InitMessage));
   msg->host_id = htonl (GNUNET_TESTBED_host_get_id_ (c->host));
   msg->event_mask = GNUNET_htonll (c->event_mask);
   queue_message (c, (struct GNUNET_MessageHeader *) msg);