aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-05-25 15:05:16 +0000
committerChristian Grothoff <christian@grothoff.org>2015-05-25 15:05:16 +0000
commitb0eee0f554ecc36df76338021da57e3831ee74ad (patch)
tree6164e3ecaed9c092e149295c6d1f8be4fee1de8b
parentff9dca51fb5bf1c513ee2241307f30a909bee9a1 (diff)
downloadgnunet-b0eee0f554ecc36df76338021da57e3831ee74ad.tar.gz
gnunet-b0eee0f554ecc36df76338021da57e3831ee74ad.zip
-fix indent
-rw-r--r--src/include/gnunet_program_lib.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/include/gnunet_program_lib.h b/src/include/gnunet_program_lib.h
index c89212dcb..9a3023e44 100644
--- a/src/include/gnunet_program_lib.h
+++ b/src/include/gnunet_program_lib.h
@@ -49,10 +49,11 @@ extern "C"
49 * @param cfgfile name of the configuration file used (for saving, can be NULL!) 49 * @param cfgfile name of the configuration file used (for saving, can be NULL!)
50 * @param cfg configuration 50 * @param cfg configuration
51 */ 51 */
52typedef void (*GNUNET_PROGRAM_Main) (void *cls, char *const *args, 52typedef void
53 const char *cfgfile, 53(*GNUNET_PROGRAM_Main) (void *cls,
54 const struct GNUNET_CONFIGURATION_Handle * 54 char *const *args,
55 cfg); 55 const char *cfgfile,
56 const struct GNUNET_CONFIGURATION_Handle *cfg);
56 57
57 58
58/** 59/**
@@ -71,11 +72,14 @@ typedef void (*GNUNET_PROGRAM_Main) (void *cls, char *const *args,
71 * @return #GNUNET_SYSERR on error, #GNUNET_OK on success 72 * @return #GNUNET_SYSERR on error, #GNUNET_OK on success
72 */ 73 */
73int 74int
74GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName, 75GNUNET_PROGRAM_run2 (int argc,
75 const char *binaryHelp, 76 char *const *argv,
76 const struct GNUNET_GETOPT_CommandLineOption *options, 77 const char *binaryName,
77 GNUNET_PROGRAM_Main task, void *task_cls, 78 const char *binaryHelp,
78 int run_without_scheduler); 79 const struct GNUNET_GETOPT_CommandLineOption *options,
80 GNUNET_PROGRAM_Main task,
81 void *task_cls,
82 int run_without_scheduler);
79 83
80/** 84/**
81 * Run a standard GNUnet command startup sequence (initialize loggers 85 * Run a standard GNUnet command startup sequence (initialize loggers
@@ -91,7 +95,9 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
91 * @return #GNUNET_SYSERR on error, #GNUNET_OK on success 95 * @return #GNUNET_SYSERR on error, #GNUNET_OK on success
92 */ 96 */
93int 97int
94GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName, 98GNUNET_PROGRAM_run (int argc,
99 char *const *argv,
100 const char *binaryName,
95 const char *binaryHelp, 101 const char *binaryHelp,
96 const struct GNUNET_GETOPT_CommandLineOption *options, 102 const struct GNUNET_GETOPT_CommandLineOption *options,
97 GNUNET_PROGRAM_Main task, void *task_cls); 103 GNUNET_PROGRAM_Main task, void *task_cls);