move to new client API: remove old client API
[oweals/gnunet.git] / src / include / gnunet_program_lib.h
index c89212dcb071f068f8c19a14024eb25e08ef2abb..526760bdd38fc59a25639d47005ad7065164117a 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     Copyright (C) 2001-2013 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2001-2013 GNUnet e.V.
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
 
      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.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 
 /**
- * @file include/gnunet_program_lib.h
- * @brief functions related to starting programs
  * @author Christian Grothoff
- * @defgroup program functions for writing command-line programs
+ *
+ * @file
+ * Functions related to starting programs
+ *
+ * @defgroup program  Program library
+ * Start command-line programs.
  * @{
  */
 
@@ -49,10 +52,11 @@ extern "C"
  * @param cfgfile name of the configuration file used (for saving, can be NULL!)
  * @param cfg configuration
  */
-typedef void (*GNUNET_PROGRAM_Main) (void *cls, char *const *args,
-                                     const char *cfgfile,
-                                     const struct GNUNET_CONFIGURATION_Handle *
-                                     cfg);
+typedef void
+(*GNUNET_PROGRAM_Main) (void *cls,
+                        char *const *args,
+                        const char *cfgfile,
+                        const struct GNUNET_CONFIGURATION_Handle *cfg);
 
 
 /**
@@ -71,11 +75,14 @@ typedef void (*GNUNET_PROGRAM_Main) (void *cls, char *const *args,
  * @return #GNUNET_SYSERR on error, #GNUNET_OK on success
  */
 int
-GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
-                    const char *binaryHelp,
-                    const struct GNUNET_GETOPT_CommandLineOption *options,
-                    GNUNET_PROGRAM_Main task, void *task_cls,
-                    int run_without_scheduler);
+GNUNET_PROGRAM_run2 (int argc,
+                     char *const *argv,
+                     const char *binaryName,
+                     const char *binaryHelp,
+                     const struct GNUNET_GETOPT_CommandLineOption *options,
+                     GNUNET_PROGRAM_Main task,
+                     void *task_cls,
+                     int run_without_scheduler);
 
 /**
  * Run a standard GNUnet command startup sequence (initialize loggers
@@ -91,13 +98,14 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
  * @return #GNUNET_SYSERR on error, #GNUNET_OK on success
  */
 int
-GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName,
+GNUNET_PROGRAM_run (int argc,
+                    char *const *argv,
+                    const char *binaryName,
                     const char *binaryHelp,
                     const struct GNUNET_GETOPT_CommandLineOption *options,
                     GNUNET_PROGRAM_Main task, void *task_cls);
 
 
-
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
 #endif
@@ -105,8 +113,9 @@ GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName,
 }
 #endif
 
-/** @} */ /* end of group program */
-
 /* ifndef GNUNET_PROGRAM_LIB_H */
 #endif
+
+/** @} */  /* end of group program */
+
 /* end of gnunet_program_lib.h */