first batch of license fixes (boring)
[oweals/gnunet.git] / src / auction / gnunet-auction-join.c
1 /*
2      This file is part of GNUnet.
3      Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2009 GNUnet e.V.
4
5      GNUnet is free software: you can redistribute it and/or modify it
6      under the terms of the GNU General Public License as published
7      by the Free Software Foundation, either version 3 of the License,
8      or (at your option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      Affero General Public License for more details.
14 */
15
16 /**
17  * @file auction/gnunet-auction.c
18  * @brief auction for writing a tool
19  * @author Christian Grothoff
20  */
21 #include "platform.h"
22 #include "gnunet_util_lib.h"
23 /* #include "gnunet_auction_service.h" */
24
25 /**
26  * Final status code.
27  */
28 static int ret;
29
30
31 /**
32  * Main function that will be run by the scheduler.
33  *
34  * @param cls closure
35  * @param args remaining command-line arguments
36  * @param cfgfile name of the configuration file used (for saving, can be NULL!)
37  * @param cfg configuration
38  */
39 static void
40 run (void *cls,
41      char *const *args,
42      const char *cfgfile,
43      const struct GNUNET_CONFIGURATION_Handle *cfg)
44 {
45   /* main code here */
46 }
47
48
49 /**
50  * The main function.
51  *
52  * @param argc number of arguments from the command line
53  * @param argv command line arguments
54  * @return 0 ok, 1 on error
55  */
56 int
57 main (int argc, char *const *argv)
58 {
59   static const struct GNUNET_GETOPT_CommandLineOption options[] = {
60     /* FIMXE: add options here */
61     GNUNET_GETOPT_OPTION_END
62   };
63   if (GNUNET_OK !=
64       GNUNET_STRINGS_get_utf8_args (argc, argv,
65                                     &argc, &argv))
66     return 2;
67
68   ret = (GNUNET_OK ==
69          GNUNET_PROGRAM_run (argc, argv,
70                              "gnunet-auction",
71                              gettext_noop ("help text"),
72                              options,
73                              &run,
74                              NULL)) ? ret : 1;
75   GNUNET_free ((void*) argv);
76   return ret;
77 }
78
79 /* end of gnunet-auction.c */