fix pointer indentation
[oweals/gnunet.git] / src / testbed / testbed_api.h
index 981a6311b316e96a97c4c93bb7005c82051d2b2f..17cd38df35c755e2ce3b0de0f4dc486870828880 100644 (file)
       WITHOUT ANY WARRANTY; without even the implied warranty of
       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       Affero General Public License for more details.
+
+      You should have received a copy of the GNU Affero General Public License
+      along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
  */
 
 /**
  */
 enum OperationType
 {
-    /**
-     * Peer create operation
-     */
+  /**
+   * Peer create operation
+   */
   OP_PEER_CREATE,
 
-    /**
-     * Peer start operation
-     */
+  /**
+   * Peer start operation
+   */
   OP_PEER_START,
 
-    /**
-     * Peer stop operation
-     */
+  /**
+   * Peer stop operation
+   */
   OP_PEER_STOP,
 
-    /**
-     * Peer destroy operation
-     */
+  /**
+   * Peer destroy operation
+   */
   OP_PEER_DESTROY,
 
-    /**
-     * Get peer information operation
-     */
+  /**
+   * Get peer information operation
+   */
   OP_PEER_INFO,
 
   /**
@@ -68,19 +73,19 @@ enum OperationType
    */
   OP_PEER_RECONFIGURE,
 
-    /**
-     * Overlay connection operation
-     */
+  /**
+   * Overlay connection operation
+   */
   OP_OVERLAY_CONNECT,
 
-    /**
-     * Forwarded operation
-     */
+  /**
+   * Forwarded operation
+   */
   OP_FORWARDED,
 
-    /**
-     * Link controllers operation
-     */
+  /**
+   * Link controllers operation
+   */
   OP_LINK_CONTROLLERS,
 
   /**
@@ -100,7 +105,6 @@ enum OperationType
 };
 
 
-
 /**
  * Enumeration of states of OperationContext
  */
@@ -264,7 +268,6 @@ struct GNUNET_TESTBED_Controller
    * The operation id counter. use current value and increment
    */
   uint32_t operation_counter;
-
 };
 
 
@@ -305,7 +308,6 @@ struct GNUNET_TESTBED_Barrier
 };
 
 
-
 /**
  * Queues a message in send queue for sending to the service
  *
@@ -389,7 +391,8 @@ GNUNET_TESTBED_compress_cfg_ (const struct GNUNET_CONFIGURATION_Handle *cfg,
 struct GNUNET_TESTBED_HelperInit *
 GNUNET_TESTBED_create_helper_init_msg_ (const char *cname,
                                         const char *hostname,
-                                        const struct GNUNET_CONFIGURATION_Handle *cfg);
+                                        const struct
+                                        GNUNET_CONFIGURATION_Handle *cfg);
 
 
 /**
@@ -407,7 +410,8 @@ GNUNET_TESTBED_create_helper_init_msg_ (const char *cname,
  *           operation
  */
 struct OperationContext *
-GNUNET_TESTBED_forward_operation_msg_ (struct GNUNET_TESTBED_Controller *controller,
+GNUNET_TESTBED_forward_operation_msg_ (struct
+                                       GNUNET_TESTBED_Controller *controller,
                                        uint64_t operation_id,
                                        const struct GNUNET_MessageHeader *msg,
                                        GNUNET_MQ_MessageCallback cc,
@@ -444,7 +448,9 @@ GNUNET_TESTBED_extract_config_ (const struct GNUNET_MessageHeader *msg);
  * @return the error message
  */
 const char *
-GNUNET_TESTBED_parse_error_string_ (const struct GNUNET_TESTBED_OperationFailureEventMessage *msg);
+GNUNET_TESTBED_parse_error_string_ (const struct
+                                    GNUNET_TESTBED_OperationFailureEventMessage
+                                    *msg);
 
 
 /**
@@ -476,7 +482,6 @@ GNUNET_TESTBED_get_slave_config_ (void *op_cls,
                                   uint32_t slave_host_id);
 
 
-
 /**
  * Initialise a barrier and call the given callback when the required percentage
  * of peers (quorum) reach the barrier OR upon error.
@@ -512,6 +517,5 @@ void
 GNUNET_TESTBED_barrier_remove_ (struct GNUNET_TESTBED_Barrier *barrier);
 
 
-
 #endif
 /* end of testbed_api.h */