indentation
[oweals/gnunet.git] / src / include / gnunet_service_lib.h
index c17af065fe7c780ff9757ccf29064032b5ee0088..fca2ff329bdc3cde07e9ed1a2d25406c93cd10cb 100644 (file)
@@ -61,9 +61,9 @@ extern "C"
  */
 int
 GNUNET_SERVICE_get_server_addresses (const char *serviceName,
-                                    const struct GNUNET_CONFIGURATION_Handle *cfg,
-                                    struct sockaddr ***addrs,
-                                    socklen_t **addr_lens);
+                                     const struct GNUNET_CONFIGURATION_Handle
+                                     *cfg, struct sockaddr ***addrs,
+                                     socklen_t ** addr_lens);
 
 
 /**
@@ -71,12 +71,10 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
  * method to run service-specific setup code.
  *
  * @param cls closure
- * @param sched scheduler to use
  * @param server the initialized server
  * @param cfg configuration to use
  */
 typedef void (*GNUNET_SERVICE_Main) (void *cls,
-                                     struct GNUNET_SCHEDULER_Handle * sched,
                                      struct GNUNET_SERVER_Handle * server,
                                      const struct GNUNET_CONFIGURATION_Handle *
                                      cfg);
@@ -86,18 +84,18 @@ typedef void (*GNUNET_SERVICE_Main) (void *cls,
  * Options for the service (bitmask).
  */
 enum GNUNET_SERVICE_Options
-  {
+{
     /**
      * Use defaults.
      */
-    GNUNET_SERVICE_OPTION_NONE = 0,
+  GNUNET_SERVICE_OPTION_NONE = 0,
 
     /**
      * Do not trigger server shutdown on signals, allow for the user
      * to terminate the server explicitly when needed.
      */
-    GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN = 1
-  };
+  GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN = 1
+};
 
 
 /**
@@ -113,12 +111,12 @@ enum GNUNET_SERVICE_Options
  * @return GNUNET_SYSERR on error, GNUNET_OK
  *         if we shutdown nicely
  */
-int GNUNET_SERVICE_run (int argc,
-                        char *const *argv,
-                        const char *serviceName,
-                       enum GNUNET_SERVICE_Options opt,
-                        GNUNET_SERVICE_Main task,
-                        void *task_cls);
+int
+GNUNET_SERVICE_run (int argc,
+                    char *const *argv,
+                    const char *serviceName,
+                    enum GNUNET_SERVICE_Options opt,
+                    GNUNET_SERVICE_Main task, void *task_cls);
 
 
 struct GNUNET_SERVICE_Context;
@@ -128,14 +126,10 @@ struct GNUNET_SERVICE_Context;
  * initialized system.
  *
  * @param serviceName our service name
- * @param sched scheduler to use
  * @param cfg configuration to use
  * @return NULL on error, service handle
  */
 struct GNUNET_SERVICE_Context *GNUNET_SERVICE_start (const char *serviceName,
-                                                     struct
-                                                     GNUNET_SCHEDULER_Handle
-                                                     *sched,
                                                      const struct
                                                      GNUNET_CONFIGURATION_Handle
                                                      *cfg);