- fixes
[oweals/gnunet.git] / src / scalarproduct / scalarproduct_testing.h
index c2c6921293f933de16abe720f8e0fc93c0605ee6..5e7baa23515e47d2b771247888e36b8494ca00f8 100644 (file)
@@ -1,6 +1,27 @@
-/* 
- * File:   scalarproduct_testing.h
- * Author: gnunet
+/*
+     This file is part of GNUnet.
+     (C) 2013 Christian Grothoff (and other contributing authors)
+
+     GNUnet is free software; you can redistribute it and/or modify
+     it under the terms of the GNU General Public License as published
+     by the Free Software Foundation; either version 3, or (at your
+     option) any later version.
+
+     GNUnet is distributed in the hope that it will be useful, but
+     WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+     General Public License for more details.
+
+     You should have received a copy of the GNU General Public License
+     along with GNUnet; see the file COPYING.  If not, write to the
+     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+     Boston, MA 02111-1307, USA.
+ */
+/**
+ * @file scalarproduct/scalarproduct_testing.h
+ * @brief VectorProduct testcase common declarations
+ * @author Gaurav Kukreja
+ * @author Christian Fuchs
  *
  * Created on June 29, 2013, 7:39 PM
  */
 #ifdef __cplusplus
 extern "C" {
 #endif
-    
+
 struct GNUNET_SCALARPRODUCT_TESTING_handle
 {
   /**
    * Testing library system handle
    */
   struct GNUNET_TESTING_System *tl_system;
-  
+
   /**
    * head DLL of peers
    */
@@ -30,7 +51,7 @@ struct GNUNET_SCALARPRODUCT_TESTING_handle
   struct PeerContext *p_tail;
 };
 
-struct PeerContext 
+struct PeerContext
 {
   /**
    * Next element in the DLL
@@ -51,17 +72,17 @@ struct PeerContext
    * Peer identity
    */
   struct GNUNET_PeerIdentity id;
-  
+
   /**
    * Handle for the peer's ARM process
    */
   struct GNUNET_OS_Process *arm_proc;
-  
+
   /**
    * Pointer to Vector Product Handle
    */
   struct GNUNET_SCALARPRODUCT_Handle *vh;
-  
+
   /**
    * Closure for the callbacks
    */
@@ -71,23 +92,23 @@ struct PeerContext
    * An unique number to identify the peer
    */
   unsigned int no;
-  
+
   /**
    * Peer's configuration
    */
   struct GNUNET_CONFIGURATION_Handle *cfg;
-  
+
   /**
    * Pointer to the master testing handle
    */
   struct GNUNET_SCALARPRODUCT_TESTING_handle * vth;
-  
+
   /**
     * Callback when two peers are connected and both have called the connect callback
     * to notify clients about a new peer
     */
    void (*start_cb) (struct PeerContext * p, void *cls);
-  
+
 //  /**
 //   * Pointer to function where the test occurs
 //   */